framework/web/auth/CPhpAuthManager.php
public function load()
	{
		$this->clearAll();

		$items=$this->loadFromFile($this->authFile);

		foreach($items as $name=>$item)
			$this->_items[$name]=new CAuthItem($this,$name,$item['type'],$item['description'],$item['bizRule'],$item['data']);

		foreach($items as $name=>$item)
		{
			if(isset($item['children']))
			{
				foreach($item['children'] as $childName)
				{
					if(isset($this->_items[$childName]))
						$this->_children[$name][$childName]=$this->_items[$childName];
				}
			}
			if(isset($item['assignments']))
			{
				foreach($item['assignments'] as $userId=>$assignment)
				{
					$this->_assignments[$userId][$name]=new CAuthAssignment($this,$name,$userId,$assignment['bizRule'],$assignment['data']);
				}
			}
		}
	}
public function load()
	{
		$this->clearAll();

		$items=$this->loadFromFile($this->authFile);

		foreach($items as $name=>$item)
			$this->_items[$name]=new CAuthItem($this,$name,$item['type'],$item['description'],$item['bizRule'],$item['data']);

		foreach($items as $name=>$item)
		{
			if(isset($item['children']))
			{
				foreach($item['children'] as $childName)
				{
					if(isset($this->_items[$childName]))
						$this->_children[$name][$childName]=$this->_items[$childName];
				}
			}
			if(isset($item['assignments']))
			{
				foreach($item['assignments'] as $userId=>$assignment)
				{
					$this->_assignments[$userId][$name]=new CAuthAssignment($this,$name,$userId,$assignment['bizRule'],$assignment['data']);
				}
			}
		}
	}
public function load ( ) { $ this -> clearAll ( ) ; $ items = $ this -> loadFromFile ( $ this -> authFile ) ; foreach ( $ items as $ name => $ item ) $ this -> _items [ $ name ] = new CAuthItem ( $ this , $ name , $ item [ 'type' ] , $ item [ 'description' ] , $ item [ 'bizRule' ] , $ item [ 'data' ] ) ; foreach ( $ items as $ name => $ item ) { if ( isset ( $ item [ 'children' ] ) ) { foreach ( $ item [ 'children' ] as $ childName ) { if ( isset ( $ this -> _items [ $ childName ] ) ) $ this -> _children [ $ name ] [ $ childName ] = $ this -> _items [ $ childName ] ; } } if ( isset ( $ item [ 'assignments' ] ) ) { foreach ( $ item [ 'assignments' ] as $ userId => $ assignment ) { $ this -> _assignments [ $ userId ] [ $ name ] = new CAuthAssignment ( $ this , $ name , $ userId , $ assignment [ 'bizRule' ] , $ assignment [ 'data' ] ) ; } } } }
Loads authorization data.
Loads authorization data .