public function __construct($args) { parent::__construct($args); if ($this->product_qty) { $this->product_qty += 0; } }
public function __construct($args) { parent::__construct($args); if (!$this->data_type) { $this->data_type = 'text'; } }
public function __construct($args) { parent::__construct($args); if (!$this->network_id) { $this->network_id = NULL; } }
/** * Constructor. Accepts following arguments: * guidType required string Guid-type for this class. * guidTypeProp optional string Name of "guid-type" property. Default is "guid_type" * * If you decide NOT TO PASS some of required object - reimplement dependent methods * * @param args hash Arguments * @return */ public function __construct($args) { parent::__construct($args); if (!$this->_guidTypeProp) { $this->_guidTypeProp = 'guid_type'; } if ($this->_guidType and isset($this->_props[$this->_guidTypeProp])) { $this->{$this->_guidTypeProp} = $this->_guidType; } }
public function __construct($args) { parent::__construct($args); $this->_setStrategy(); }
/** * Enter description here... * * @param hash $args * @return void */ public function __construct($args) { parent::__construct($args); $this->_initItems(); $this->_state($this->state); }
/** * Description... * * @return void **/ public function __construct($args) { parent::__construct($args); $this->table_name = $this->table_function ? M('Tools')->misc()->exec($this->table_function) : $this->table_name; $this->what = $this->what_function ? M('Tools')->misc()->exec($this->what_function) : $this->what; }