Exemple #1
0
 /**
  *
  * @param string $key
  * @param resource $conn
  * @return string|false
  *
  * @todo remove $conn check, redundant with Inspekt::escMySQL
  */
 public function escMySQL($key, $conn = null)
 {
     if (!$this->keyExists($key)) {
         return false;
     }
     if (isset($conn)) {
         return Inspekt::escMySQL($this->_getValue($key), $conn);
     } else {
         return Inspekt::escMySQL($this->_getValue($key));
     }
 }
Exemple #2
0
 /**
  * @param string $key
  * @param resource $conn a connection resource
  * @return bool|mixed
  * @throws Exception
  */
 public function escMySQL($key, $conn)
 {
     return Inspekt::escMySQL($this->getValue($key), $conn);
 }