framework/web/auth/CPhpAuthManager.php
public function save()
	{
		$items=array();
		foreach($this->_items as $name=>$item)
		{
			$items[$name]=array(
				'type'=>$item->getType(),
				'description'=>$item->getDescription(),
				'bizRule'=>$item->getBizRule(),
				'data'=>$item->getData(),
			);
			if(isset($this->_children[$name]))
			{
				foreach($this->_children[$name] as $child)
					$items[$name]['children'][]=$child->getName();
			}
		}

		foreach($this->_assignments as $userId=>$assignments)
		{
			foreach($assignments as $name=>$assignment)
			{
				if(isset($items[$name]))
				{
					$items[$name]['assignments'][$userId]=array(
						'bizRule'=>$assignment->getBizRule(),
						'data'=>$assignment->getData(),
					);
				}
			}
		}

		$this->saveToFile($items,$this->authFile);
	}
public function save()
	{
		$items=array();
		foreach($this->_items as $name=>$item)
		{
			$items[$name]=array(
				'type'=>$item->getType(),
				'description'=>$item->getDescription(),
				'bizRule'=>$item->getBizRule(),
				'data'=>$item->getData(),
			);
			if(isset($this->_children[$name]))
			{
				foreach($this->_children[$name] as $child)
					$items[$name]['children'][]=$child->getName();
			}
		}

		foreach($this->_assignments as $userId=>$assignments)
		{
			foreach($assignments as $name=>$assignment)
			{
				if(isset($items[$name]))
				{
					$items[$name]['assignments'][$userId]=array(
						'bizRule'=>$assignment->getBizRule(),
						'data'=>$assignment->getData(),
					);
				}
			}
		}

		$this->saveToFile($items,$this->authFile);
	}
public function save ( ) { $ items = array ( ) ; foreach ( $ this -> _items as $ name => $ item ) { $ items [ $ name ] = array ( 'type' => $ item -> getType ( ) , 'description' => $ item -> getDescription ( ) , 'bizRule' => $ item -> getBizRule ( ) , 'data' => $ item -> getData ( ) , ) ; if ( isset ( $ this -> _children [ $ name ] ) ) { foreach ( $ this -> _children [ $ name ] as $ child ) $ items [ $ name ] [ 'children' ] [ ] = $ child -> getName ( ) ; } } foreach ( $ this -> _assignments as $ userId => $ assignments ) { foreach ( $ assignments as $ name => $ assignment ) { if ( isset ( $ items [ $ name ] ) ) { $ items [ $ name ] [ 'assignments' ] [ $ userId ] = array ( 'bizRule' => $ assignment -> getBizRule ( ) , 'data' => $ assignment -> getData ( ) , ) ; } } } $ this -> saveToFile ( $ items , $ this -> authFile ) ; }
Saves authorization data into persistent storage.
If any change is made to the authorization data, please make
sure you call this method to save the changed data into persistent storage.
Saves authorization data into persistent storage . If any change is made to the authorization data please make sure you call this method to save the changed data into persistent storage .