예제 #1
0
 public function __construct($db, $id = 0)
 {
     parent::__construct($db, 'Item');
     if ($id != 0) {
         $this->load(['id = ?', $id]);
     }
 }
예제 #2
0
파일: User.php 프로젝트: srccn/hy
 public function __construct(DB\SQL $db)
 {
     if ($_SESSION['is_admin']) {
     } else {
     }
     parent::__construct($db, 'users');
 }
예제 #3
0
파일: Article.php 프로젝트: srccn/hy
 public function __construct(DB\SQL $db, $table_name, $cols)
 {
     if ($_SESSION['userid']) {
         $userId = $_SESSION['userid'];
         $_POST['user_id'] = $userId;
         if ($_SESSION['is_admin']) {
             $this->filter = null;
         } else {
             $this->filter = 'user_id = ' . $userId;
         }
     }
     parent::__construct($db, $table_name, $cols);
 }
예제 #4
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'products');
 }
예제 #5
0
파일: Meters.php 프로젝트: adamjdev/opps
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'nawec_cash_reg');
 }
예제 #6
0
파일: Customer.php 프로젝트: srccn/f3
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'customer');
 }
예제 #7
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'catgroup');
 }
예제 #8
0
파일: User.php 프로젝트: adamjdev/opps
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'users');
 }
예제 #9
0
파일: Verify.php 프로젝트: adamjdev/opps
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'verification');
 }
예제 #10
0
파일: Stream.php 프로젝트: XaaT/ttb
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'stream');
 }
예제 #11
0
 public function __construct($db)
 {
     parent::__construct($db, 'Admin');
 }
예제 #12
0
파일: data.php 프로젝트: buluq/lapakpintar
 public function __construct(DB\SQL $database, $table)
 {
     parent::__construct($database, $tabel);
 }
예제 #13
0
파일: Actu.php 프로젝트: XaaT/ttb
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'actu');
 }
예제 #14
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'affiliates');
 }
예제 #15
0
파일: UserInputForm.php 프로젝트: srccn/f3
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'user_input_form');
 }
예제 #16
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'upcoming');
 }
예제 #17
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'itemstag');
 }
예제 #18
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'drivetrains');
 }
예제 #19
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'features');
 }
예제 #20
0
 function __construct($table)
 {
     $db = Base::instance()->get('DATABASE');
     parent::__construct($db, $table);
 }
예제 #21
0
파일: CrFormat.php 프로젝트: XaaT/ttb
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'cr_format');
 }
예제 #22
0
파일: Info.php 프로젝트: bigopon/fg
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'information');
 }
예제 #23
0
파일: CrType.php 프로젝트: XaaT/ttb
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'cr_type');
 }
예제 #24
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'messages');
 }
예제 #25
0
파일: model.php 프로젝트: Alanaktion/reader
 /**
  * Initialize model instance
  */
 function __construct()
 {
     parent::__construct(\Base::instance()->get('db.instance'), $this->getTableName());
 }
예제 #26
0
파일: Model.php 프로젝트: Jay-En/Angular-f3
 function __construct($table)
 {
     $this->initializeDatabase();
     parent::__construct($this->db, $table);
 }
예제 #27
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'tag2item');
 }
예제 #28
0
파일: Category.php 프로젝트: bigopon/fg
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'categories');
 }
예제 #29
0
 public function __construct(DB\SQL $db)
 {
     parent::__construct($db, 'albumtracks');
 }