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

    }
Exemple #2
0
 /**
  * @param $key
  * @param null $conn
  * @return bool|mixed
  * @throws Exception
  */
 public function escPgSQLBytea($key, $conn = null)
 {
     if (isset($conn)) {
         return Inspekt::escPgSQLBytea($this->getValue($key), $conn);
     } else {
         return Inspekt::escPgSQLBytea($this->getValue($key));
     }
 }