// Format definitions

This commit is contained in:
rMalie
2011-12-13 13:41:54 +00:00
parent a40f3c304c
commit c022f4e0e5
71 changed files with 710 additions and 1791 deletions
+9 -23
View File
@@ -50,21 +50,14 @@ class SceneCore extends ObjectModel
'primary' => 'id_scene',
'multilang' => true,
'fields' => array(
'active' => array('type' => 'FILL_ME', 'validate' => 'isBool', 'required' => true),
'zones' => array('type' => 'FILL_ME', 'validate' => 'isSceneZones'),
'categories' => array('type' => 'FILL_ME', 'validate' => 'isArrayWithIds'),
'name' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 100),
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true),
// Lang fields
'name' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 100),
),
);
protected static $feature_active = null;
protected static $feature_active = null;
public function __construct($id = NULL, $id_lang = NULL, $liteResult = true, $hideScenePosition = false)
{
@@ -77,18 +70,11 @@ class SceneCore extends ObjectModel
$this->image_dir = _PS_SCENE_IMG_DIR_;
}
public function getFields()
{
$this->validateFields();
$fields['active'] = (int)($this->active);
return $fields;
}
/**
* Check then return multilingual fields for database interaction
*
* @return array Multilingual fields
*/
* Check then return multilingual fields for database interaction
*
* @return array Multilingual fields
*/
public function getTranslationsFieldsChild()
{
$this->validateFieldsLang();