// Format definitions

This commit is contained in:
rMalie
2011-12-13 13:41:54 +00:00
parent d189fd8ed0
commit 1506dc39b3
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
*