[*] Classes: Remove $fieldsRequired, $fieldsSize and $fieldsValidate (and lang properties) properties, use $definition instead
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11155 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+15
-4
@@ -51,16 +51,27 @@ class LoggerCore extends ObjectModel
|
||||
/** @var string Object last modification date */
|
||||
public $date_upd;
|
||||
|
||||
protected $fieldsRequired = array('severity', 'message');
|
||||
protected $fieldsSize = array();
|
||||
protected $fieldsValidate = array('id_log' => 'isUnsignedId', 'severity' => 'isInt', 'error_code' => 'isUnsignedInt',
|
||||
'message' => 'isMessage', 'object_id' => 'isUnsignedInt', 'object_type' => 'isName');
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
public static $definition = array(
|
||||
'table' => 'log',
|
||||
'primary' => 'id_log',
|
||||
'fields' => array(
|
||||
'id_log' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId'),
|
||||
'severity' => array('type' => 'FILL_ME', 'validate' => 'isInt', 'required' => true),
|
||||
'error_code' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedInt'),
|
||||
'message' => array('type' => 'FILL_ME', 'validate' => 'isMessage', 'required' => true),
|
||||
'object_id' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedInt'),
|
||||
'object_type' => array('type' => 'FILL_ME', 'validate' => 'isName'),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
protected static $is_present = array();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user