Exemple #1
0
 /**
  * 
  * @desc see renderTree() and displayErrors() of this Class
  * @param object $model RbacController
  * @param string $context method of item renderer
  */
 public function __construct($model, $context)
 {
     $this->colUsername = Yii::app()->controller->module->columnUsername;
     $this->colUserid = Yii::app()->controller->module->columnUserid;
     $this->_model = $model;
     $this->treeFormat = array('groupIn' => '<table id="rbacFolder" ><tr><td>' . "\n", 'groupOut' => '</td></tr></table>' . "\n", 'itemIn' => '<tr><td id="rbacFolder">' . "\n", 'itemOut' => '</td></tr>' . "\n");
     $this->_context = $context;
     $treeBuilder = new RBACTree();
     $this->_rbacTree = $treeBuilder->getItemTree();
 }