public function quote($input, $type = null) { $this->connect(); list($value, $bindingType) = $this->getBindingInfo($input, $type); return $this->_conn->quote($value, $bindingType); }
/** * {@inheritDoc} */ protected function doSetAll(array $values) { $this->runSQL('DELETE FROM `' . $this->tableName . '`'); $rows = array(); foreach ($values as $key => $value) { $this->runSQL('INSERT INTO ' . $this->tableName . ' (`key`, `value`) VALUES (' . $this->connection->quote($key) . ',' . $this->connection->quote(json_encode($value)) . ');'); } }