예제 #1
0
 public function __construct($args)
 {
     parent::__construct($args);
     if ($this->product_qty) {
         $this->product_qty += 0;
     }
 }
예제 #2
0
 public function __construct($args)
 {
     parent::__construct($args);
     if (!$this->data_type) {
         $this->data_type = 'text';
     }
 }
예제 #3
0
 public function __construct($args)
 {
     parent::__construct($args);
     if (!$this->network_id) {
         $this->network_id = NULL;
     }
 }
예제 #4
0
파일: Guid.class.php 프로젝트: evilgeny/bob
 /**
  *	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;
     }
 }
예제 #5
0
 public function __construct($args)
 {
     parent::__construct($args);
     $this->_setStrategy();
 }
예제 #6
0
 /**
  * Enter description here...
  *
  * @param	hash	$args
  * @return	void
  */
 public function __construct($args)
 {
     parent::__construct($args);
     $this->_initItems();
     $this->_state($this->state);
 }
예제 #7
0
 /**
  *	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;
 }