/** * Returns a string preprocessed to be used properly in the * database comparisons: trimmed, lowercased and quoted if * the magic_quotes_environment is not turned on. * * @param string $sString * @return string Preprocessed string value. */ function MAX_limitationsGetPreprocessedString($sString) { return MAX_limitationsGetQuotedString(strtolower(trim($sString))); }
/** * The same as compile(), but works on arbitrary data. * * @param string $data */ function compileData($data) { $result = 'MAX_check' . ucfirst($this->group) . '_' . $this->component . "('{$data}', '{$this->comparison}')"; return MAX_limitationsGetQuotedString($result); }