// Adding compare options
This commit is contained in:
+19
-17
@@ -54,6 +54,7 @@ class EmployeeCore extends ObjectModel
|
||||
|
||||
public $stats_compare_from;
|
||||
public $stats_compare_to;
|
||||
public $stats_compare_option = 1;
|
||||
|
||||
/** @var string Display back office background in the specified color */
|
||||
public $bo_color;
|
||||
@@ -84,23 +85,24 @@ class EmployeeCore extends ObjectModel
|
||||
'table' => 'employee',
|
||||
'primary' => 'id_employee',
|
||||
'fields' => array(
|
||||
'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
|
||||
'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
|
||||
'email' => array('type' => self::TYPE_STRING, 'validate' => 'isEmail', 'required' => true, 'size' => 128),
|
||||
'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
|
||||
'passwd' => array('type' => self::TYPE_STRING, 'validate' => 'isPasswdAdmin', 'required' => true, 'size' => 32),
|
||||
'last_passwd_gen' => array('type' => self::TYPE_STRING),
|
||||
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||
'id_profile' => array('type' => self::TYPE_INT, 'validate' => 'isInt', 'required' => true),
|
||||
'bo_color' => array('type' => self::TYPE_STRING, 'validate' => 'isColor', 'size' => 32),
|
||||
'default_tab' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
|
||||
'bo_theme' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 32),
|
||||
'bo_width' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
|
||||
'bo_menu' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||
'stats_date_from' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'stats_date_to' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'stats_compare_from' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'stats_compare_to' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
|
||||
'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
|
||||
'email' => array('type' => self::TYPE_STRING, 'validate' => 'isEmail', 'required' => true, 'size' => 128),
|
||||
'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true),
|
||||
'passwd' => array('type' => self::TYPE_STRING, 'validate' => 'isPasswdAdmin', 'required' => true, 'size' => 32),
|
||||
'last_passwd_gen' => array('type' => self::TYPE_STRING),
|
||||
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||
'id_profile' => array('type' => self::TYPE_INT, 'validate' => 'isInt', 'required' => true),
|
||||
'bo_color' => array('type' => self::TYPE_STRING, 'validate' => 'isColor', 'size' => 32),
|
||||
'default_tab' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
|
||||
'bo_theme' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 32),
|
||||
'bo_width' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
|
||||
'bo_menu' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||
'stats_date_from' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'stats_date_to' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'stats_compare_from' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'stats_compare_to' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
||||
'stats_compare_option' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user