示例#1
0
 protected function query()
 {
     if ($this->database !== false && !empty($this->sql)) {
         $this->connection =& ConnectionManager::connection($this->database);
         $this->result = $this->connection->query($this->sql)->fetchAll(PDO::FETCH_ASSOC);
     }
 }