示例#1
0
 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();
 }
示例#2
0
 public function __construct(iPwDataSource $ds, PwUserBo $user)
 {
     $this->data = $ds->getData();
     $this->user = $user;
     parent::__construct();
 }
示例#3
0
 public function __construct(iPwDataSource $ds)
 {
     $this->data = $ds->getData();
     parent::__construct();
 }
示例#4
0
 public function __construct(iPwDataSource $dataSource)
 {
     $this->pollData = $dataSource->getData();
     $this->_init();
 }