// Format definitions

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11157 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-12 21:06:59 +00:00
parent 5a2d80bd50
commit b8f5b693b9
13 changed files with 171 additions and 413 deletions
+3 -18
View File
@@ -31,10 +31,6 @@ class AliasCore extends ObjectModel
public $search;
public $active = true;
/**
* @see ObjectModel::$definition
*/
@@ -42,13 +38,12 @@ class AliasCore extends ObjectModel
'table' => 'alias',
'primary' => 'id_alias',
'fields' => array(
'search' => array('type' => 'FILL_ME', 'validate' => 'isValidSearch', 'required' => true, 'size' => 255),
'alias' => array('type' => 'FILL_ME', 'validate' => 'isValidSearch', 'required' => true, 'size' => 255),
'active' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
'search' => array('type' => self::TYPE_STRING, 'validate' => 'isValidSearch', 'required' => true, 'size' => 255),
'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isValidSearch', 'required' => true, 'size' => 255),
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
),
);
public function __construct($id = NULL, $alias = NULL, $search = NULL, $id_lang = NULL)
{
if ($id)
@@ -118,16 +113,6 @@ class AliasCore extends ObjectModel
return implode(', ', $aliases);
}
public function getFields()
{
$this->validateFields();
$fields['alias'] = pSQL($this->alias);
$fields['search'] = pSQL($this->search);
$fields['active'] = (int)$this->active;
return $fields;
}
/**
* This method is allow to know if a feature is used or active
* @since 1.5.0.1