| @@ 25-49 (lines=25) @@ | ||
| 22 | /** |
|
| 23 | * Class Oledrion_location |
|
| 24 | */ |
|
| 25 | class Oledrion_location extends Oledrion_Object |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * constructor |
|
| 29 | * |
|
| 30 | * normally, this is called from child classes only |
|
| 31 | * |
|
| 32 | * @access public |
|
| 33 | */ |
|
| 34 | public function __construct() |
|
| 35 | { |
|
| 36 | $this->initVar('location_id', XOBJ_DTYPE_INT, null, false); |
|
| 37 | $this->initVar('location_pid', XOBJ_DTYPE_INT, null, false); |
|
| 38 | $this->initVar('location_title', XOBJ_DTYPE_TXTBOX, null, false); |
|
| 39 | $this->initVar('location_online', XOBJ_DTYPE_INT, null, false); |
|
| 40 | $this->initVar('location_type', XOBJ_DTYPE_TXTBOX, null, false); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * Retourne les éléments du produits formatés pour affichage |
|
| 45 | * |
|
| 46 | * @param string $format |
|
| 47 | * @return array |
|
| 48 | */ |
|
| 49 | public function toArray($format = 's') |
|
| 50 | { |
|
| 51 | $ret = array(); |
|
| 52 | $ret = parent::toArray($format); |
|
| @@ 25-49 (lines=25) @@ | ||
| 22 | /** |
|
| 23 | * Class Oledrion_location_delivery |
|
| 24 | */ |
|
| 25 | class Oledrion_location_delivery extends Oledrion_Object |
|
| 26 | { |
|
| 27 | /** |
|
| 28 | * constructor |
|
| 29 | * |
|
| 30 | * normally, this is called from child classes only |
|
| 31 | * |
|
| 32 | * @access public |
|
| 33 | */ |
|
| 34 | public function __construct() |
|
| 35 | { |
|
| 36 | $this->initVar('ld_id', XOBJ_DTYPE_INT, null, false); |
|
| 37 | $this->initVar('ld_location', XOBJ_DTYPE_INT, null, false); |
|
| 38 | $this->initVar('ld_delivery', XOBJ_DTYPE_INT, null, false); |
|
| 39 | $this->initVar('ld_price', XOBJ_DTYPE_INT, null, false); |
|
| 40 | $this->initVar('ld_delivery_time', XOBJ_DTYPE_INT, null, false); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * Retourne les éléments du produits formatés pour affichage |
|
| 45 | * |
|
| 46 | * @param string $format |
|
| 47 | * @return array |
|
| 48 | */ |
|
| 49 | public function toArray($format = 's') |
|
| 50 | { |
|
| 51 | $ret = array(); |
|
| 52 | $ret = parent::toArray($format); |
|