Esempio n. 1
0
 /**
  * An internal method used by other quote methods.  This was origianlly
  * _quote() in Zend_Db, but in PSR-2 code style, it had to be renamed to
  * avoid conflicting with the public method of the same name.  Because
  * this adapter only needs to work with MySQL (because that is the only
  * RDBMS supported by WP), this could likely be integrated directly with
  * the quote methods.
  *
  * @param mixed $value
  * @return mixed
  */
 protected function quoteInternal($value)
 {
     if (is_int($value) || is_float($value)) {
         return $value;
     }
     return $this->driver->quoteInternal($value);
 }