예제 #1
0
 /**
  * void _setLastError($code, $msg, $query)
  * Set last database error context.
  * Aditionally expand placeholders.
  */
 function _setLastError($code, $msg, $query)
 {
     if (is_array($query)) {
         $this->_expandPlaceholders($query, false);
         $query = $query[0];
     }
     return DbSimple_Generic_LastError::_setLastError($code, $msg, $query);
 }
예제 #2
0
파일: Generic.php 프로젝트: grlf/eyedock
 /**
  * void _setLastError($code, $msg, $query)
  * Set last database error context.
  * Aditionally expand placeholders.
  */
 protected function _setLastError($code, $msg, $query)
 {
     if (is_array($query)) {
         $this->_expandPlaceholders($query, false);
         $query = $query[0];
     }
     return parent::_setLastError($code, $msg, $query);
 }