Ntb\RestAPI\NestedTestController
Synopsis
class NestedTestController
extends NestedResourceRestController
implements
TestOnly
{
- // members
- private static array $allowed_actions = ;
- // Inherited members from NestedResourceRestController
- protected static string $no_id_message;
- protected static integer $no_id_error;
- // methods
- public void get()
- public void delete()
- protected void getRootResource()
- // Inherited methods from NestedResourceRestController
- public final array beforeCallActionHandler()
- protected abstract mixed getRootResource()
- // Inherited methods from BaseRestController
- public void init()
- public null head()
- protected HTMLText|SS_HTTPResponse handleAction()
- protected bool isAuthenticated()
- protected bool isAdmin()
- protected SS_HTTPResponse addCORSHeaders()
- protected Member currentUser()
Hierarchy
Tasks
Line | Task |
---|---|
165 | body could be an exception; check it before the response is generated |
Members
private
- $allowed_actions
protected
- $no_id_error — int
- $no_id_message — string
Methods
protected
public
Inherited from Ntb\RestAPI\NestedResourceRestController
protected
- getRootResource() — The result of this method will be injected in all method calls in the controller.
public
- beforeCallActionHandler() — Get called by the action handler of BaseRestController. Tries to fetch the root resource.
Inherited from Ntb\RestAPI\BaseRestController
protected
- addCORSHeaders()
- currentUser() — Return the current user from the request.
- handleAction() — handleAction implementation for rest controllers. This handles the requested action differently then the standard implementation.
- isAdmin() — Check if the user has admin privileges.
- isAuthenticated() — Check, if the request is authenticated.