Example #1
0
 /**
  * Set an ARO to inherit permission to an ACO.
  *
  * @return void
  */
 public function inherit()
 {
     extract($this->_getParams());
     if ($this->Acl->inherit($aro, $aco, $action)) {
         $this->out(__d('cake_console', 'Permission inherited.'), true);
     } else {
         $this->out(__d('cake_console', 'Permission was not inherited.'), true);
     }
 }
Example #2
0
 /**
  * Set an ARO to inhermit permission to an ACO.
  *
  * @access public
  */
 function inherit()
 {
     $this->_checkArgs(3, 'inherit');
     extract($this->__getParams());
     if ($this->Acl->inherit($aro, $aco, $action)) {
         $this->out(__("Permission inherited.", true), true);
     } else {
         $this->out(__("Permission was not inherited.", true), true);
     }
 }
 /**
  * Pass-thru function for ACL inherit instance. Inherit methods
  * modify the permission for an ARO to be that of its parent object.
  *
  * @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 inherit($aro, $aco, $action = "*")
 {
     $this->flushCache();
     return parent::inherit($aro, $aco, $action);
 }
 /**
  * Inherit 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 inherit($aro, $aco, $action = "*")
 {
     parent::inherit($aro, $aco, $action);
     $this->__deleteCache($aro, $aco, $action);
 }