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); } }