[*] 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 9c19cf79a3
commit 58d7f37130
33 changed files with 245 additions and 451 deletions
+1 -7
View File
@@ -72,7 +72,7 @@ class ImageCore extends ObjectModel
'cover' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
// Lang fields
'legend' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 128),
'legend' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 128),
),
);
@@ -85,12 +85,6 @@ class ImageCore extends ObjectModel
$this->source_index = _PS_PROD_IMG_DIR_.'index.php';
}
public function getTranslationsFieldsChild()
{
$this->validateFieldsLang();
return $this->getTranslationsFields(array('legend'));
}
public function add($autodate = true, $null_values = false)
{
if ($this->position <= 0)