コード例 #1
0
ファイル: storeCategory.php プロジェクト: notzen/exponent-cms
 public function __construct($params = array(), $get_assoc = true, $get_attached = true)
 {
     global $db;
     parent::__construct($params, $get_assoc, $get_attached);
     // if this is an empty category object we'll set the lft & rgt to the max
     // so they encompass the all of the categories, in essence creating an
     // unnamed  parent category to everything.
     if (empty($this->id)) {
         $this->lft = $db->min($this->table, 'lft');
         $this->rgt = $db->max($this->table, 'rgt');
     }
 }
コード例 #2
0
ファイル: product_type.php プロジェクト: notzen/exponent-cms
 public function __construct($params = array(), $get_assoc = true, $get_attached = true)
 {
     global $db;
     parent::__construct($params, $get_assoc, $get_attached);
 }