/** * Function to get the value if its safe to use for SQL Query (column). * @param <String> $key * @param <Boolean> $skipEmpty - Skip the check if string is empty * @return Value for the given key */ public function getForSql($key, $skipEmtpy = true) { return Vtiger_Util_Helper::validateStringForSql($this->get($key), $skipEmtpy); }