Go to the documentation of this file.00001 <?php
00002
00007 class oxOrderArticleList extends oxList
00008 {
00009
00013 public function __construct()
00014 {
00015 parent::__construct('oxorderarticle');
00016 }
00017
00025 public function loadOrderArticlesForUser($sOxId)
00026 {
00027 if (!$sOxId) {
00028 $this->clear();
00029
00030 return;
00031 }
00032
00033 $sSelect = "SELECT oxorderarticles.* FROM oxorder ";
00034 $sSelect .= "left join oxorderarticles on oxorderarticles.oxorderid = oxorder.oxid ";
00035 $sSelect .= "left join oxarticles on oxorderarticles.oxartid = oxarticles.oxid ";
00036 $sSelect .= "WHERE oxorder.oxuserid = " . oxDb::getDb()->quote($sOxId);
00037
00038 $this->selectString($sSelect);
00039
00040 }
00041 }