Zend_Db_Adapter_Pdo_Abstract::_quote PHP 메소드

_quote() 보호된 메소드

Quote a raw string.
protected _quote ( string $value ) : string
$value string Raw string
리턴 string Quoted string
    protected function _quote($value)
    {
        if (is_int($value) || is_float($value)) {
            return $value;
        }
        $this->_connect();
        return $this->_connection->quote($value);
    }

Usage Example

예제 #1
0
 /**
  * Quote a raw string.
  *
  * @param string $value     Raw string
  * @return string           Quoted string
  */
 protected function _quote($value)
 {
     if (!is_int($value) && !is_float($value)) {
         // Fix for null-byte injection
         $value = addcslashes($value, "");
     }
     return parent::_quote($value);
 }