// 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
+5 -21
View File
@@ -36,13 +36,6 @@ class FeatureValueCore extends ObjectModel
/** @var boolean Custom */
public $custom = 0;
/**
* @see ObjectModel::$definition
*/
@@ -51,13 +44,14 @@ class FeatureValueCore extends ObjectModel
'primary' => 'id_feature_value',
'multilang' => true,
'fields' => array(
'id_feature' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
'custom' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
'value' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 255),
'id_feature' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'custom' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
// Lang fields
'value' => array('type' => 'FILL_ME', 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 255),
),
);
protected $webserviceParameters = array(
'objectsNodeName' => 'product_feature_values',
'objectNodeName' => 'product_feature_value',
@@ -66,16 +60,6 @@ class FeatureValueCore extends ObjectModel
),
);
public function getFields()
{
$this->validateFields();
$fields['id_feature'] = (int)$this->id_feature;
$fields['custom'] = (int)$this->custom;
return $fields;
}
/**
* Check then return multilingual fields for database interaction
*