Elgg  Version 5.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Elgg\Router\Middleware\PageOwnerGatekeeper Class Reference

Check if the current route has a page owner entity. More...

Inheritance diagram for Elgg\Router\Middleware\PageOwnerGatekeeper:
Elgg\Router\Middleware\GroupPageOwnerGatekeeper Elgg\Router\Middleware\PageOwnerCanEditGatekeeper Elgg\Router\Middleware\UserPageOwnerGatekeeper Elgg\Router\Middleware\GroupPageOwnerCanEditGatekeeper Elgg\Router\Middleware\UserPageOwnerCanEditGatekeeper

Public Member Functions

 __invoke (\Elgg\Request $request)
 Validate the current request. More...
 

Protected Member Functions

 assert (\Elgg\Request $request, Route $route)
 Performs assertions. More...
 
 assertPageOwner ()
 Asserts the pageowner. More...
 
 getType ()
 Returns the type of the page owner to validate. More...
 
 getSubtype ()
 Returns the subtype of the page owner to validate. More...
 

Protected Attributes

ElggEntity $page_owner
 

Detailed Description

Check if the current route has a page owner entity.

Since
5.0

Definition at line 13 of file PageOwnerGatekeeper.php.

Member Function Documentation

Elgg\Router\Middleware\PageOwnerGatekeeper::__invoke ( \Elgg\Request  $request)

Validate the current request.

Parameters
\Elgg\Request$requestthe current request
Returns
void
Exceptions
EntityNotFoundException

Definition at line 25 of file PageOwnerGatekeeper.php.

Elgg\Router\Middleware\PageOwnerGatekeeper::assert ( \Elgg\Request  $request,
Route  $route 
)
protected

Performs assertions.

Parameters
\Elgg\Request$requestthe current request
\Elgg\Router\Route$routethe current route
Returns
void

Definition at line 53 of file PageOwnerGatekeeper.php.

Elgg\Router\Middleware\PageOwnerGatekeeper::assertPageOwner ( )
protected

Asserts the pageowner.

Returns
void
Exceptions
EntityNotFoundException

Definition at line 63 of file PageOwnerGatekeeper.php.

Elgg\Router\Middleware\PageOwnerGatekeeper::getSubtype ( )
protected

Returns the subtype of the page owner to validate.

Returns
string

Definition at line 89 of file PageOwnerGatekeeper.php.

Elgg\Router\Middleware\PageOwnerGatekeeper::getType ( )
protected

Returns the type of the page owner to validate.

Returns
string

Definition at line 80 of file PageOwnerGatekeeper.php.

Member Data Documentation

ElggEntity Elgg\Router\Middleware\PageOwnerGatekeeper::$page_owner
protected

Definition at line 15 of file PageOwnerGatekeeper.php.


The documentation for this class was generated from the following file: