Beispiel #1
0
 /**
  * Add a query string to the debugger.
  *
  * @param string $query
  *
  * @return bool Indication if query is added
  */
 protected function _addQuery($query)
 {
     if (!$this->m_isconsole) {
         // don't add queries executed by the console itself
         $data = $this->getDebuggerData();
         $data['queries'][] = array('query' => $query, 'trace' => Tools::atkGetTrace());
         Tools::atkdebug('[' . $this->consoleLink('query details', 'query', array('query_id' => count($data['queries']) - 1), true) . '] ' . htmlentities($query));
         return true;
     }
     return false;
 }