[*] BO : added a new Validate method "isPercentage"

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16285 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-07-09 13:05:31 +00:00
parent acc15c9e55
commit c51c83edc0
4 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class RiskCore extends ObjectModel
'fields' => array(
'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isString', 'required' => true, 'size' => 20),
'color' => array('type' => self::TYPE_STRING, 'validate' => 'isColor', 'size' => 32),
'percent' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt')
'percent' => array('type' => self::TYPE_INT, 'validate' => 'isPercentage')
),
);