[+] BO : added a new option for the products : do they appear in the catalog, in the search, both or neither
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13638 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user