eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::removePolicy PHP Метод

removePolicy() абстрактный публичный Метод

Removes a policy from a role.
abstract public removePolicy ( mixed $policyId )
$policyId mixed
    public abstract function removePolicy($policyId);

Usage Example

Пример #1
0
 /**
  * Removes a policy from a role.
  *
  * @param mixed $policyId
  */
 public function deletePolicy($policyId)
 {
     // Each policy can only be associated to exactly one role. Thus it is
     // sufficient to use the policyId for identification and just remove
     // the policy completely.
     $this->roleGateway->removePolicy($policyId);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::removePolicy