OXID eShop CE  4.8.11
 All Classes Files Functions Variables Pages
oxstate.php
Go to the documentation of this file.
1 <?php
2 
7 class oxState extends oxI18n
8 {
14  protected $_sClassName = 'oxstate';
15 
19  public function __construct()
20  {
22  $this->init("oxstates");
23  }
24 
33  public function getIdByCode( $sCode, $sCountryId )
34  {
35  $oDb = oxDb::getDb();
36  return $oDb->getOne( "select oxid from oxstates where oxisoalpha2 = ".$oDb->quote( $sCode )." AND oxcountryid = ".$oDb->quote( $sCountryId ));
37  }
38 
39 }