// Format definitions

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11173 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-13 13:41:54 +00:00
parent 225c8523e9
commit 03bd438c7d
71 changed files with 710 additions and 1791 deletions
+3 -17
View File
@@ -34,13 +34,6 @@ class GenderCore extends ObjectModel
public $name;
public $type;
/**
* @see ObjectModel::$definition
*/
@@ -49,12 +42,13 @@ class GenderCore extends ObjectModel
'primary' => 'id_gender',
'multilang' => true,
'fields' => array(
'type' => array('type' => 'FILL_ME', 'required' => true),
'type' => array('type' => self::TYPE_INT, 'required' => true),
// Lang fields
'name' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isString', 'required' => true, 'size' => 20),
),
);
public function __construct($id = null, $id_lang = null, $id_shop = null)
{
parent::__construct($id, $id_lang, $id_shop);
@@ -62,14 +56,6 @@ class GenderCore extends ObjectModel
$this->image_dir = _PS_GENDERS_DIR_;
}
public function getFields()
{
$this->validateFields();
$fields['id_gender'] = (int)$this->id_gender;
$fields['type'] = (int)$this->type;
return $fields;
}
/**
* Check then return multilingual fields for database interaction
*