コード例 #1
0
ファイル: Abstract.php プロジェクト: cwcw/cms
 /**
  * Safely quotes a value for an SQL statement.
  *
  * If an array is passed as the value, the array values are quoted
  * and then returned as a comma-separated string.
  *
  * @param mixed $value The value to quote.
  * @param mixed $type  (optional) the SQL datatype name, or constant, or null.
  * @return mixed An SQL-safe quoted value (or string of separated values).
  */
 public function quote($value, $type = null)
 {
     return $this->_adapter->quote($value, $type);
 }