Zepi/Web/AccessControl/src/FilterHandler/RegisterGroupAccessLevels.php
public function execute(Framework $framework, RequestAbstract $request, Response $response, $value = null)
    {
        $accessLevels = $value;
        $dataRequest = new DataRequest(1, 0, 'name', 'ASC');
        
        $groups = $this->groupManager->find($dataRequest);
        
        if ($groups === false) {
            return $accessLevels;
        }
        
        foreach ($groups as $group) {
            $accessLevels[] = new GroupAccessLevel(
                '\\Group\\' . $group->getUuid(),
                $this->translationManager->translate('Group', '\\Zepi\\Web\\AccessControl') . ' ' . $group->getName(),
                $this->translationManager->translate('Inherits all permissions from this group.', '\\Zepi\\Web\\AccessControl'),
                '\\Group'
            );
        }
        
        return $accessLevels;
    }
public function execute(Framework $framework, RequestAbstract $request, Response $response, $value = null)
    {
        $accessLevels = $value;
        $dataRequest = new DataRequest(1, 0, 'name', 'ASC');
        
        $groups = $this->groupManager->find($dataRequest);
        
        if ($groups === false) {
            return $accessLevels;
        }
        
        foreach ($groups as $group) {
            $accessLevels[] = new GroupAccessLevel(
                '\\Group\\' . $group->getUuid(),
                $this->translationManager->translate('Group', '\\Zepi\\Web\\AccessControl') . ' ' . $group->getName(),
                $this->translationManager->translate('Inherits all permissions from this group.', '\\Zepi\\Web\\AccessControl'),
                '\\Group'
            );
        }
        
        return $accessLevels;
    }
public function execute ( Framework $ framework , RequestAbstract $ request , Response $ response , $ value = null ) { $ accessLevels = $ value ; $ dataRequest = new DataRequest ( 1 , 0 , 'name' , 'ASC' ) ; $ groups = $ this -> groupManager -> find ( $ dataRequest ) ; if ( $ groups === false ) { return $ accessLevels ; } foreach ( $ groups as $ group ) { $ accessLevels [ ] = new GroupAccessLevel ( '\\Group\\' . $ group -> getUuid ( ) , $ this -> translationManager -> translate ( 'Group' , '\\Zepi\\Web\\AccessControl' ) . ' ' . $ group -> getName ( ) , $ this -> translationManager -> translate ( 'Inherits all permissions from this group.' , '\\Zepi\\Web\\AccessControl' ) , '\\Group' ) ; } return $ accessLevels ; }
Registers the groups as access levels.

@access public
@param \Zepi\Turbo\Framework $framework
@param \Zepi\Turbo\Request\RequestAbstract $request
@param \Zepi\Turbo\Response\Response $response
@param mixed $value
@return mixed
Registers the groups as access levels .