// Remove $table and $identifier property from all classes, and add static $definition instead

This commit is contained in:
rMalie
2011-12-05 13:56:03 +00:00
parent e501530475
commit b59ddba454
87 changed files with 394 additions and 214 deletions
+5 -2
View File
@@ -42,8 +42,11 @@ class CMSCore extends ObjectModel
protected $fieldsSizeLang = array('meta_description' => 255, 'meta_keywords' => 255, 'meta_title' => 128, 'link_rewrite' => 128, 'content' => 3999999999999);
protected $fieldsValidateLang = array('meta_description' => 'isGenericName', 'meta_keywords' => 'isGenericName', 'meta_title' => 'isGenericName', 'link_rewrite' => 'isLinkRewrite', 'content' => 'isString');
protected $table = 'cms';
protected $identifier = 'id_cms';
public static $definition = array(
'table' => 'cms',
'primary' => 'id_cms',
'multilang' => true,
);
protected $webserviceParameters = array(
'objectNodeName' => 'content',