예제 #1
0
 public function __construct(AeDatabase_Query $query, $table, $type = null)
 {
     if ($type === null) {
         $type = '';
     }
     $type = strtoupper($type);
     if ($type != '' && !in_array($type, $this->_types)) {
         throw new AeDatabaseQueryJoinException('Invalid join type', 400);
     }
     $this->query = $query;
     $this->type = trim($type . ' JOIN');
     $this->table = $table;
     $this->on = $query->clause();
 }
예제 #2
0
 public function __construct(AeDatabase_Driver_Mysql $database)
 {
     parent::__construct($database);
 }