[*] Classes: Remove $fieldsRequired, $fieldsSize and $fieldsValidate (and lang properties) properties, use $definition instead

This commit is contained in:
rMalie
2011-12-12 18:10:38 +00:00
parent 7ca01e1619
commit 1c39ab4685
92 changed files with 1495 additions and 854 deletions
+15 -4
View File
@@ -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();