Property Details

authFile
property

public string $authFile;

the path of the PHP script that contains the authorization data.
If not set, it will be using 'protected/data/auth.php' as the data file.
Make sure this file is writable by the Web server process if the authorization
needs to be changed.

public function addItemChild($itemName,$childName){ if(!isset($this->_items[$childName],$this->_items[$itemName])) throw new CException(Yii::t('yii','Either "{parent}" or "{child}" does not exist.',array('{child}'=>$childName,'{parent}'=>$itemName)));$child=$this->_items[$childName];$item=$this->_items[$itemName];$this->checkItemChildType($item->getType(),$child->getType()); if($this->detectLoop($itemName,$childName)) throw new CException(Yii::t('yii','Cannot add "{child}" as a child of "{parent}". A loop has been detected.', array('{child}'=>$childName,'{parent}'=>$itemName))); if(isset($this->_children[$itemName][$childName])) throw new CException(Yii::t('yii','The item "{parent}" already has a child "{child}".', array('{child}'=>$childName,'{parent}'=>$itemName)));$this->_children[$itemName][$childName]=$this->_items[$childName]; return true;}

the user ID. This can be either an integer or a string representing
the unique identifier of a user. See IWebUser::getId.

$params

array

name-value pairs that would be passed to biz rules associated
with the tasks and roles assigned to the user.
Since version 1.1.11 a param with name 'userId' is added to this array, which holds the value of $userId.

public function createAuthItem($name,$type,$description='',$bizRule=null,$data=null){ if(isset($this->_items[$name])) throw new CException(Yii::t('yii','Unable to add an item whose name is the same as an existing item.')); return $this->_items[$name]=new CAuthItem($this,$name,$type,$description,$bizRule,$data);}