// Format definitions

This commit is contained in:
rMalie
2011-12-12 21:06:59 +00:00
parent 568fca377c
commit 39b9c7cfa1
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