[*] 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:
+11
-3
@@ -30,15 +30,23 @@ class RequestSqlCore extends ObjectModel
|
||||
public $name;
|
||||
public $sql;
|
||||
|
||||
protected $fieldsRequired = array('name', 'sql');
|
||||
protected $fieldsSize = array('name' => 200 , 'sql' => 400);
|
||||
protected $fieldsValidate = array('name' => 'isString', 'sql' => 'isString');
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
public static $definition = array(
|
||||
'table' => 'request_sql',
|
||||
'primary' => 'id_request_sql',
|
||||
'fields' => array(
|
||||
'name' => array('type' => 'FILL_ME', 'validate' => 'isString', 'required' => true, 'size' => 200),
|
||||
'sql' => array('type' => 'FILL_ME', 'validate' => 'isString', 'required' => true, 'size' => 400),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
public $tested = array('required' => array ('SELECT', 'FROM'),
|
||||
'option' => array('WHERE', 'ORDER', 'LIMIT', 'HAVING', 'GROUP', 'UNION'),
|
||||
'operator' => array('AND', '&&', 'BETWEEN', 'AND', 'BINARY', '&', '~', '|', '^', 'CASE', 'WHEN', 'END', 'DIV', '/', '<=>', '=', '>=',
|
||||
|
||||
Reference in New Issue
Block a user