OXID eShop CE  4.9.7
 All Classes Files Functions Variables Pages
oxorderarticlelist.php
Go to the documentation of this file.
1 <?php
2 
8 {
9 
13  public function __construct()
14  {
15  parent::__construct('oxorderarticle');
16  }
17 
25  public function loadOrderArticlesForUser($sOxId)
26  {
27  if (!$sOxId) {
28  $this->clear();
29 
30  return;
31  }
32 
33  $sSelect = "SELECT oxorderarticles.* FROM oxorder ";
34  $sSelect .= "left join oxorderarticles on oxorderarticles.oxorderid = oxorder.oxid ";
35  $sSelect .= "left join oxarticles on oxorderarticles.oxartid = oxarticles.oxid ";
36  $sSelect .= "WHERE oxorder.oxuserid = " . oxDb::getDb()->quote($sOxId);
37 
38  $this->selectString($sSelect);
39 
40  }
41 }