/** * Log messages coming in from handlers * * @param string $handler Handler name * @param array $info Array of key => value information */ public function logHandlerInfo($handler, $info = array()) { $handler = $this->_db->quote($handler); $stmt = $this->_db->prepare("INSERT INTO messages (request_id, handler, key, value) VALUES ({$this->_currentReqId}, {$handler}, ?, ?)"); foreach ($info as $k => $v) { $stmt->execute(array($k, $v)); } }