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

This commit is contained in:
rMalie
2011-12-12 18:10:38 +00:00
parent fddae46d56
commit 48baf36558
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();