[*] Classes: Remove $fieldsRequired, $fieldsSize and $fieldsValidate (and lang properties) properties, use $definition instead

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11155 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-12 18:10:38 +00:00
parent c97bac9160
commit fddf4fb89b
92 changed files with 1495 additions and 854 deletions
+9 -2
View File
@@ -29,14 +29,21 @@ class ThemeCore extends ObjectModel
{
public $name;
protected $fieldsSize = array('name' => 64);
protected $fieldsValidate = array('name' => 'isGenericName');
/**
* @see ObjectModel::$definition
*/
public static $definition = array(
'table' => 'theme',
'primary' => 'id_theme',
'fields' => array(
'name' => array('type' => 'FILL_ME', 'validate' => 'isGenericName', 'size' => 64),
),
);
public function getFields()
{
$this->validateFields();