コード例 #1
0
ファイル: OrderDetailModel.php プロジェクト: khoilv/cuongthuy
 public function __construct()
 {
     date_default_timezone_set('Asia/Ho_Chi_Minh');
     parent::__construct();
     $this->setTableName($this->table);
     $this->productModel = new ProductModel();
 }
コード例 #2
0
ファイル: CategoryModel.php プロジェクト: khoilv/cuongthuy
 public function __construct()
 {
     parent::__construct();
     $this->setTableName($this->table);
     $options = array('fields' => array('*'));
     // get list category
     $arrCategory = $this->find('all', $options);
     foreach ($arrCategory as $arrRow) {
         $this->data[$arrRow['id']] = $arrRow;
         if ($arrRow['category_parent'] == 0) {
             $this->parentList[$arrRow['id']] = $arrRow;
         } else {
             $this->childList[$arrRow['category_parent']][$arrRow['id']] = $arrRow;
         }
     }
 }
コード例 #3
0
ファイル: ProductModel.php プロジェクト: khoilv/cuongthuy
 public function __construct()
 {
     parent::__construct();
     $this->setTableName($this->table);
 }
コード例 #4
0
ファイル: OrderModel.php プロジェクト: khoilv/cuongthuy
 public function __construct()
 {
     parent::__construct();
     date_default_timezone_set('Asia/Ho_Chi_Minh');
     $this->setTableName($this->table);
 }