Exemplo n.º 1
0
 function __construct($config = array())
 {
     //set the model state
     if (array_key_exists('state', $config)) {
         // Search for eav special states
         if (!property_exists($config['state'], '_eav')) {
             $config['state']->_eav = new JObject();
         }
     } else {
         // Add the _eav state
         $config['state'] = new JObject();
         $config['state']->_eav = new JObject();
     }
     parent::__construct($config);
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @since 1.5
  */
 function __construct()
 {
     parent::__construct();
     $id = JRequest::getVar('id', 0, '', 'int');
     $this->setId($id);
 }
Exemplo n.º 3
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->defaultShippingMethod = $this->defines->get('defaultShippingMethod', '2');
     $this->initial_order_state = $this->defines->get('initial_order_state', '15');
 }