[*] Classes: ObjectModel::getTranslationsField|Child() is now deprecated, use ObjectModel::getFieldsLang() if need instead

This commit is contained in:
rMalie
2011-12-15 13:24:03 +00:00
parent 32e27d7217
commit 8fa5ffc681
33 changed files with 245 additions and 451 deletions
+3 -12
View File
@@ -47,7 +47,9 @@ class AttributeCore extends ObjectModel
'id_attribute_group' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'color' => array('type' => self::TYPE_STRING, 'validate' => 'isColor'),
'position' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
'name' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 64),
// Lang fields
'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 64),
),
);
@@ -69,17 +71,6 @@ class AttributeCore extends ObjectModel
parent::__construct($id, $id_lang, $id_shop);
}
/**
* Check then return multilingual fields for database interaction
*
* @return array Multilingual fields
*/
public function getTranslationsFieldsChild()
{
$this->validateFieldsLang();
return $this->getTranslationsFields(array('name'));
}
public function delete()
{
$result = Db::getInstance()->executeS('