source/Application/Model/Country.php
public function getStates()
    {
        if (!is_null($this->_aStates)) {
            return $this->_aStates;
        }

        $sCountryId = $this->getId();
        $sViewName = getViewName("oxstates", $this->getLanguage());
        $sQ = "select * from {$sViewName} where `oxcountryid` = '$sCountryId' order by `oxtitle`  ";
        $this->_aStates = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
        $this->_aStates->init("oxstate");
        $this->_aStates->selectString($sQ);

        return $this->_aStates;
    }
public function getStates()
    {
        if (!is_null($this->_aStates)) {
            return $this->_aStates;
        }

        $sCountryId = $this->getId();
        $sViewName = getViewName("oxstates", $this->getLanguage());
        $sQ = "select * from {$sViewName} where `oxcountryid` = '$sCountryId' order by `oxtitle`  ";
        $this->_aStates = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
        $this->_aStates->init("oxstate");
        $this->_aStates->selectString($sQ);

        return $this->_aStates;
    }
public function getStates ( ) { if ( ! is_null ( $ this -> _aStates ) ) { return $ this -> _aStates ; } $ sCountryId = $ this -> getId ( ) ; $ sViewName = getViewName ( "oxstates" , $ this -> getLanguage ( ) ) ; $ sQ = "select * from {$sViewName} where `oxcountryid` = '$sCountryId' order by `oxtitle`  " ; $ this -> _aStates = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ ListModel :: class ) ; $ this -> _aStates -> init ( "oxstate" ) ; $ this -> _aStates -> selectString ( $ sQ ) ; return $ this -> _aStates ; }
Returns current state list

@return array
Returns current state list