OXID eShop CE
4.8.10
Main Page
Related Pages
Classes
Files
File List
File Members
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
{
21
parent::__construct
();
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
}
application
models
oxstate.php
Generated by
1.8.1.2