yii\db\Connection::quoteValue PHP Метод

quoteValue() публичный Метод

Note that if the parameter is not a string, it will be returned without change.
См. также: http://www.php.net/manual/en/function.PDO-quote.php
public quoteValue ( string $value ) : string
$value string string to be quoted
Результат string the properly quoted string
    public function quoteValue($value)
    {
        return $this->getSchema()->quoteValue($value);
    }

Usage Example

Пример #1
0
 /**
  * @deprecated this is broken by design, should use parameters instead
  * @param string $str
  * @return string
  */
 public function escapeSimple($str)
 {
     $str = $this->connection->quoteValue($str);
     if ($str[0] == "'") {
         return substr($str, 1, -1);
     }
     return $str;
 }
All Usage Examples Of yii\db\Connection::quoteValue