public function quote($str, $type) { if ($type == 'integer') { $type = PDO::PARAM_INT; } elseif ($type == 'text') { $type = PDO::PARAM_STR; } return parent::quote($str, $type); }
/** * Quotes a string * * @param string $string * @param string $paramtype * @return string Returns quoted string */ public function quote($string, $paramtype = NULL) { if ($paramtype == 'integer') { $paramtype = PDO::PARAM_INT; } elseif ($paramtype == 'text') { $paramtype = PDO::PARAM_STR; } return parent::quote($string, $paramtype); }