コード例 #1
0
ファイル: orders_model.php プロジェクト: alexhava/elixirjuice
 public function delete($arr)
 {
     if ($arr) {
         parent::delete($arr);
         parent::delete($arr, 'order_items');
     }
 }
コード例 #2
0
 public function save($related_products, $parent_product_id)
 {
     $this->delete(array('parent_product_id' => $parent_product_id));
     foreach ($related_products as $k => $v) {
         $ins['product_id'] = $v;
         $ins['parent_product_id'] = $parent_product_id;
         parent::save($ins);
     }
 }
コード例 #3
0
 public function get_row($opts, $table = '', $type = 'result', $protect = true)
 {
     $product_id = isset($opts['where']) ? $opts['where']['product_id'] : $opts['product_id'];
     ci()->load->model('admin/related_products_model');
     $res = parent::get_row($opts, $table, $type, $protect);
     $related_products = ci()->related_products_model->format('product_id', array('parent_product_id' => $product_id));
     $res['related_products'] = $related_products;
     $res['product_options'] = json_decode(base64_decode($res['product_options']));
     return $res;
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'production_stores';
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'allergies';
 }
コード例 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'order_history';
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'members';
 }
コード例 #8
0
ファイル: cards_model.php プロジェクト: alexhava/elixirjuice
 public function __construct()
 {
     parent::__construct();
     $this->table = 'cards';
 }
コード例 #9
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'production_ingredients';
 }
コード例 #10
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'order_items';
 }
コード例 #11
0
ファイル: system_model.php プロジェクト: alexhava/elixirjuice
 public function __construct()
 {
     parent::__construct();
     $this->table = 'sys_settings';
 }
コード例 #12
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'shipping_types';
 }
コード例 #13
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'reoccuring_orders';
 }
コード例 #14
0
ファイル: query.php プロジェクト: alexhava/elixirjuice
 public function __construct()
 {
     parent::__construct();
 }
コード例 #15
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'addresses';
 }
コード例 #16
0
 public function __construct()
 {
     parent::__construct();
     $this->table = 'shipping_schedule';
 }