[*] 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:
@@ -55,22 +55,28 @@ class OrderCarrierCore extends ObjectModel
|
||||
/** @var string Object creation date */
|
||||
public $date_add;
|
||||
|
||||
protected $fieldsRequired = array ('id_order', 'id_carrier');
|
||||
protected $fieldsValidate = array (
|
||||
'id_order_carrier' => 'isUnsignedId',
|
||||
'id_order' => 'isUnsignedId',
|
||||
'id_carrier' => 'isUnsignedId',
|
||||
'id_order_invoice' => 'isUnsignedId',
|
||||
'weight' => 'isFloat',
|
||||
'shipping_cost_tax_excl' => 'isFloat',
|
||||
'shipping_cost_tax_incl' => 'isFloat',
|
||||
'tracking_number' => 'isAnything');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
public static $definition = array(
|
||||
'table' => 'order_carrier',
|
||||
'primary' => 'id_order_carrier',
|
||||
'fields' => array(
|
||||
'id_order_carrier' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId'),
|
||||
'id_order' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'id_carrier' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'id_order_invoice' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId'),
|
||||
'weight' => array('type' => 'FILL_ME', 'validate' => 'isFloat'),
|
||||
'shipping_cost_tax_excl' => array('type' => 'FILL_ME', 'validate' => 'isFloat'),
|
||||
'shipping_cost_tax_incl' => array('type' => 'FILL_ME', 'validate' => 'isFloat'),
|
||||
'tracking_number' => array('type' => 'FILL_ME', 'validate' => 'isAnything'),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
protected $webserviceParameters = array(
|
||||
'fields' => array(
|
||||
'id_order' => array('xlink_resource' => 'orders'),
|
||||
|
||||
Reference in New Issue
Block a user