[+] BO : added a new option for the products : do they appear in the catalog, in the search, both or neither

This commit is contained in:
dMetzger
2012-02-27 15:55:40 +00:00
parent 2df28a854f
commit 16cfca9bff
15 changed files with 134 additions and 30 deletions
+11
View File
@@ -608,6 +608,17 @@ class ValidateCore
return preg_match('/^[^!<>;?=+#"°{}_$%]*$/u', $list);
}
/**
* Check for product visibility
*
* @param string $s visibility to check
* @return boolean Validity is ok or not
*/
public static function isProductVisibility($s)
{
return preg_match('/^both|catalog|search|none$/i', $s);
}
/**
* Check for an integer validity
*