oxcountrylist.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class oxCountryList extends oxList
00008 {
00016     public function __construct( $sObjectsInListName = 'oxcountry' )
00017     {
00018         parent::__construct( 'oxcountry' );
00019     }
00020 
00028     public function loadActiveCountries( $iLang = null )
00029     {
00030         $sSufix = oxLang::getInstance()->getLanguageTag( $iLang );
00031 
00032         $sSelect = "SELECT oxid, oxtitle$sSufix as oxtitle FROM oxcountry WHERE oxactive = '1' ORDER BY oxorder, oxtitle$sSufix ";
00033         $this->selectString( $sSelect );
00034     }
00035 
00036 }