HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
RAssignmentSitesDataProvider.php
Go to the documentation of this file.
1 <?php
2 
3 class RAssignmentSitesDataProvider extends CActiveDataProvider
4 {
8  private $_authorizer;
9 
16  public function __construct($config = array())
17  {
18  $module = Rights::module();
19  $userClass = $module->userClass;
20  parent::__construct($userClass, $config);
21 
22  $this->_authorizer = $module->getAuthorizer();
23  }
24 
30  protected function fetchData()
31  {
33 
34  foreach ($data as $model) {
35  $this->_authorizer->attachUserBehavior($model);
36  }
37 
38  return $data;
39  }
40 }