public function __construct($sql = null, StopwatchEvent $timeEvent = null, $conn = null, $res = null) { parent::__construct(); $this->name = "QueryInfo_" . uniqid(); // Contiene la stringa Sql utilizzata per la query $this->value->add('sql', new DbgInfoSqlItem('Executed Query', $sql)); // Contiene i dati dei risultati (num risultati, paginazione, etc..) $resultInfoArray = array('affected_rows' => new DbgInfoItem('affected_rows', 0, DbgInfoItem::TYPE_NUMERIC)); $this->value->add('exec_info', new DbgInfoArrayItem('Execution result info', $resultInfoArray, array('render_type' => 'list'))); $this->addTimeEventInfo($timeEvent); $this->addErrorInfo($conn); $this->addExtendedInfo($conn); $this->addFieldsInfo($res); }
function __construct(Request $request = null, $conn = null, $parameters = array()) { $this->request = $request; $this->conn = $conn; parent::__construct($parameters); }