Example #1
0
 function postCallback($jp)
 {
     $this->trace['link'] = is_array($this->link) ? implode(';', $this->link) : $this->link;
     if (isset($this->args[0])) {
         $this->trace['cmd'] = is_array($this->args[0]) ? implode(' ', $this->args[0]) : $this->args[0];
     }
     parent::postCallback($jp);
 }
Example #2
0
 function postCallback($jp)
 {
     $this->trace['link'] = $this->getLink($this->object);
     if ($this->result === false) {
         list(, $errno, $error) = $this->object->errorInfo();
         $this->trace['errno'] = $errno;
         $this->trace['error'] = $error;
     }
     parent::postCallback($jp);
 }
Example #3
0
 function postCallback($jp)
 {
     if ($jp->getMethodName() !== 'initializeConnection') {
         $object_id = $this->getObjectId($this->object);
         if (isset($this->links[$object_id])) {
             $this->trace['link'] = $this->links[$object_id];
         }
         if (isset($this->args[0])) {
             $this->trace['cmd'] = $this->args[0] . ' ' . implode(" ", $this->args[1]);
         }
     }
     parent::postCallback($jp);
 }
Example #4
0
 function postCallback($jp)
 {
     if ($jp->getMethodName() !== '__construct') {
         $object_id = $this->getObjectId($this->object);
         if (isset($this->links[$object_id])) {
             $this->trace['link'] = $this->links[$object_id];
         }
         if (isset($this->args[0])) {
             $this->trace['cmd'] = is_array($this->args[0]) ? implode(' ', $this->args[0]) : $this->args[0];
         }
     }
     parent::postCallback($jp);
 }
Example #5
0
 function execute_post($jp)
 {
     $this->trace['classname'] = 'PDO';
     $this->trace['link'] = $this->link;
     $this->trace['cmd'] = $this->queryString($this->inputParams);
     $this->trace['options'] = $this->inputParams;
     if ($this->result === true) {
         $this->trace['rowcount'] = $this->object->rowCount();
     } else {
         list(, $errno, $error) = $this->object->errorInfo();
         $this->trace['errno'] = $errno;
         $this->trace['error'] = $error;
     }
     parent::postCallback($jp);
 }
Example #6
0
 function postCallback($jp)
 {
     $method = $jp->getMethodName();
     $this->currentKey = $this->getCurrentKey($method);
     $this->serverList = $this->object->getServerList();
     // those are Client Operations
     if (in_array($method, array('__construct', 'setOption', 'addServer', 'addServers'))) {
         $this->trace['link'] = '';
     } else {
         $this->trace['link'] = $this->getLink($this->serverList, $this->currentKey);
     }
     $this->trace['cmd'] = $this->getCmd();
     if ($this->result !== false) {
         $this->trace['status'] = $this->object->getResultCode();
     } else {
         $this->trace['errno'] = $this->object->getResultCode();
         $this->trace['error'] = $this->object->getResultMessage();
     }
     parent::postCallback($jp);
 }