1 | <?php |
||
27 | class PaylaterProduct extends ObjectModel |
||
28 | { |
||
29 | /** @var string Name */ |
||
30 | public $id_paylater; |
||
31 | |||
32 | /** @var integer */ |
||
33 | public $id_product; |
||
34 | |||
35 | /** @var integer */ |
||
36 | public $is_discount; |
||
37 | |||
38 | /** |
||
39 | * @see ObjectModel::$definition |
||
40 | */ |
||
41 | public static $definition = array( |
||
42 | 'table' => 'paylater_product', |
||
43 | 'primary' => 'id_paylater', |
||
44 | 'multilang' => false, |
||
45 | 'fields' => array( |
||
46 | 'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isInt', 'required' => true), |
||
47 | 'is_discount' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), |
||
48 | ), |
||
49 | ); |
||
50 | |||
51 | public static function loadByIdProduct($id_product) |
||
62 | } |
||
63 |