[*] 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:
rMalie
2011-12-12 18:10:38 +00:00
parent c97bac9160
commit fddf4fb89b
92 changed files with 1495 additions and 854 deletions
+13 -2
View File
@@ -35,13 +35,24 @@ class ConnectionsSourceCore extends ObjectModel
// Controler les keywords
protected $fieldsRequired = array('id_connections', 'date_add');
protected $fieldsValidate = array('id_connections' => 'isUnsignedId', 'http_referer' => 'isAbsoluteUrl', 'request_uri' => 'isUrl', 'keywords' => 'isMessage');
/**
* @see ObjectModel::$definition
*/
public static $definition = array(
'table' => 'connections_source',
'primary' => 'id_connections_source',
'fields' => array(
'id_connections' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
'http_referer' => array('type' => 'FILL_ME', 'validate' => 'isAbsoluteUrl'),
'request_uri' => array('type' => 'FILL_ME', 'validate' => 'isUrl'),
'keywords' => array('type' => 'FILL_ME', 'validate' => 'isMessage'),
'date_add' => array('type' => 'FILL_ME', 'required' => true),
),
);
public function getFields()
{