oxuseraddresslist.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class oxUserAddressList extends oxList
00007 {
00008 
00012     public function __construct()
00013     {
00014         parent::__construct('oxaddress');
00015     }
00016 
00022     public function load($sUserId)
00023     {
00024         $sViewName = getViewName('oxcountry');
00025         $oBaseObject = $this->getBaseObject();
00026         $sSelectFields = $oBaseObject->getSelectFields();
00027 
00028         $sSelect = "
00029                 SELECT {$sSelectFields}, `oxcountry`.`oxtitle` AS oxcountry
00030                 FROM oxaddress
00031                 LEFT JOIN {$sViewName} AS oxcountry ON oxaddress.oxcountryid = oxcountry.oxid
00032                 WHERE oxaddress.oxuserid = " . oxDb::getDb()->quote($sUserId);
00033         $this->selectString($sSelect);
00034     }
00035 }