public function getAllowed($identity)
	{
		// Sweep for the allowed actions.
		$allowed = new Obj;

		foreach ($this->data as $name => &$action)
		{
			if ($action->allow($identity))
			{
				$allowed->set($name, true);
			}
		}

		return $allowed;
	}
public function getAllowed($identity)
	{
		// Sweep for the allowed actions.
		$allowed = new Obj;

		foreach ($this->data as $name => &$action)
		{
			if ($action->allow($identity))
			{
				$allowed->set($name, true);
			}
		}

		return $allowed;
	}
public function getAllowed ( $ identity ) { // Sweep for the allowed actions. $ allowed = new Obj ; foreach ( $ this -> data as $ name => & $ action ) { if ( $ action -> allow ( $ identity ) ) { $ allowed -> set ( $ name , true ) ; } } return $ allowed ; }
Get the allowed actions for an identity.

@param   mixed   $identity  An integer representing the identity or an array of identities
@return  object  Allowed actions for the identity or identities
Get the allowed actions for an identity .