public function __construct(iPwDataSource $ds) { $this->fresh = $ds->getData(); $src_id = array(); foreach ($this->fresh as $key => $value) { $src_id[$value['type']][] = $value['src_id']; } foreach ($src_id as $key => $value) { $this->fresh_src[$key] = new $this->fresh_map[$key]($value); } $this->_init(); }
public function __construct(iPwDataSource $ds, PwUserBo $user) { $this->data = $ds->getData(); $this->user = $user; parent::__construct(); }
public function __construct(iPwDataSource $ds) { $this->data = $ds->getData(); parent::__construct(); }
public function __construct(iPwDataSource $dataSource) { $this->pollData = $dataSource->getData(); $this->_init(); }