src/wcmf/lib/security/impl/DefaultPermissionManager.php
protected function createPermissionObject($resource, $context, $action, $roles) {
    $permission = $this->persistenceFacade->create($this->permissionType);
    $permission->setValue('resource', $resource);
    $permission->setValue('context', $context);
    $permission->setValue('action', $action);
    $permission->setValue('roles', $roles);
    return $permission;
  }
protected function createPermissionObject($resource, $context, $action, $roles) {
    $permission = $this->persistenceFacade->create($this->permissionType);
    $permission->setValue('resource', $resource);
    $permission->setValue('context', $context);
    $permission->setValue('action', $action);
    $permission->setValue('roles', $roles);
    return $permission;
  }
protected function createPermissionObject ( $ resource , $ context , $ action , $ roles ) { $ permission = $ this -> persistenceFacade -> create ( $ this -> permissionType ) ; $ permission -> setValue ( 'resource' , $ resource ) ; $ permission -> setValue ( 'context' , $ context ) ; $ permission -> setValue ( 'action' , $ action ) ; $ permission -> setValue ( 'roles' , $ roles ) ; return $ permission ; }
Create a permission object with the given parameters
@param $resource Resource
@param $context Context
@param $action Action
@param $roles String representing the permissions as returned from serializePermissions()
@return Instance of _permissionType
Create a permission object with the given parameters