Пример #1
0
 public function __construct($data = null)
 {
     parent::__construct();
     if ($data != null) {
         $this->_attributes = $data;
     }
 }
 private function executeQuery()
 {
     return DbEntity::findDbEntityList($this->query);
 }
Пример #3
0
 public function delete()
 {
     return parent::delete('userId', $this->userId, 'user');
 }
Пример #4
0
 public function selectById($idValue)
 {
     return parent::selectById('tripId', $idValue, 'trip');
 }
 private static function getDatabaseInstance()
 {
     if (is_null(self::$database)) {
         self::$database = new Database();
     }
 }