[*] 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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user