예제 #1
0
 /**
  * Pass-thru function for ACL grant instance. An alias for AclComponent::allow()
  *
  * @param string $aro ARO The requesting object identifier.
  * @param string $aco ACO The controlled object identifier.
  * @param string $action Action (defaults to *)
  * @return boolean Success
  * @access public
  */
 function grant($aro, $aco, $action = "*")
 {
     $this->flushCache();
     return parent::grant($aro, $aco, $action);
 }
 /**
  * Grant method.
  *
  * This method overrides and uses the original
  * method. It only adds cache to it.
  *
  * @param string $aro ARO
  * @param string $aco ACO
  * @param string $action Action (defaults to *)
  * @access public
  */
 function grant($aro, $aco, $action = "*")
 {
     parent::grant($aro, $aco, $action);
     $this->__deleteCache($aro, $aco, $action);
 }