resolve() public method

resolve an ARO identifier to an internal ARO string using the internal mapping information.
public resolve ( string | array $aro ) : string
$aro string | array ARO identifier (Users.jeff, ['Users' => ...], etc)
return string internal aro string (e.g. Users/jeff, Role/default)
Example #1
0
 /**
  * deny ARO access to ACO
  *
  * @param string $aro ARO The requesting object identifier.
  * @param string $aco ACO The controlled object identifier.
  * @param string $action Action (defaults to *)
  * @return bool Success
  */
 public function deny($aro, $aco, $action = "*")
 {
     return $this->Aco->access($this->Aro->resolve($aro), $aco, $action, 'deny');
 }