Property | Type | Description | |
---|---|---|---|
$allowedRoles | |||
$deniedRoles | |||
$description | |||
$endpointsByName | |||
$name | |||
$postedDataMethod |
Method | Description | |
---|---|---|
__construct ( $prefix ) | ||
allow ( ) : static | Allows access to this collection for role with the given names. This can be overwritten on the Endpoint level. | |
deny ( ) | * Denies access to this collection for role with the given names. This can be overwritten on the Endpoint level. | |
description ( string $description ) : static | ||
endpoint ( |
Mounts endpoint to the collection | |
expectsJsonData ( ) : static | Sets the posted data method to JSON_BODY | |
expectsPostData ( ) : static | Sets the posted data method to POST | |
factory ( string $prefix, string $name = null ) : static | Returns collection with default values | |
getAclResources ( ) | ||
getAclRules ( array $roles ) | ||
getAllowedRoles ( ) : string[] | ||
getDeniedRoles ( ) : string[] | ||
getDescription ( ) : string | ||
getEndpoint ( string $name ) : |
||
getEndpoints ( ) : |
||
getIdentifier ( ) : string | ||
getName ( ) : string | null | ||
getPostedDataMethod ( ) : string | ||
handler ( $handler, $lazy = true ) | ||
mount ( |
Mounts endpoint to the collection | |
name ( string $name ) : static | ||
postedDataMethod ( string $method ) : static | ||
setPrefix ( $prefix ) |
Method | Description | |
---|---|---|
createRouteName ( |
||
initialize ( ) | Use this method when you extend this class in order to define the collection |
public allow ( ) : static | ||
return | static |
protected createRouteName ( |
||
$endpoint |
public deny ( ) |
public description ( string $description ) : static | ||
$description | string | Description of the collection |
return | static |
public endpoint ( |
||
$endpoint | Endpoint to mount | |
return | static |
public expectsJsonData ( ) : static | ||
return | static |
public expectsPostData ( ) : static | ||
return | static |
public getAllowedRoles ( ) : string[] | ||
return | string[] | Array of allowed role-names |
public getDeniedRoles ( ) : string[] | ||
return | string[] | Array of denied role-names |
public getDescription ( ) : string | ||
return | string | Description of the collection |
public getEndpoint ( string $name ) : |
||
$name | string | Name for the endpoint to return |
return | Endpoint with the given name |
public getEndpoints ( ) : |
||
return | Array of all mounted endpoints |
public getIdentifier ( ) : string | ||
return | string | Unique identifier for this collection (returns the prefix) |
public getPostedDataMethod ( ) : string | ||
return | string | $method One of the method constants defined in PostedDataMethods |
protected initialize ( ) |
public mount ( |
||
$endpoint | Endpoint to mount (shortcut for endpoint function) | |
return | static |
public postedDataMethod ( string $method ) : static | ||
$method | string | One of the method constants defined in PostedDataMethods |
return | static |