Свойство | Тип | Описание | |
---|---|---|---|
$allowedRoles | |||
$deniedRoles | |||
$description | |||
$endpointsByName | |||
$name | |||
$postedDataMethod |
Метод | Описание | |
---|---|---|
__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 ) |
Метод | Описание | |
---|---|---|
createRouteName ( |
||
initialize ( ) | Use this method when you extend this class in order to define the collection |
public allow ( ) : static | ||
Результат | static |
protected createRouteName ( |
||
$endpoint |
public deny ( ) |
public description ( string $description ) : static | ||
$description | string | Description of the collection |
Результат | static |
public endpoint ( |
||
$endpoint | Endpoint to mount | |
Результат | static |
public expectsJsonData ( ) : static | ||
Результат | static |
public expectsPostData ( ) : static | ||
Результат | static |
public getAllowedRoles ( ) : string[] | ||
Результат | string[] | Array of allowed role-names |
public getDeniedRoles ( ) : string[] | ||
Результат | string[] | Array of denied role-names |
public getDescription ( ) : string | ||
Результат | string | Description of the collection |
public getEndpoint ( string $name ) : |
||
$name | string | Name for the endpoint to return |
Результат | Endpoint with the given name |
public getEndpoints ( ) : |
||
Результат | Array of all mounted endpoints |
public getIdentifier ( ) : string | ||
Результат | string | Unique identifier for this collection (returns the prefix) |
public getPostedDataMethod ( ) : string | ||
Результат | string | $method One of the method constants defined in PostedDataMethods |
protected initialize ( ) |
public mount ( |
||
$endpoint | Endpoint to mount (shortcut for endpoint function) | |
Результат | static |
public postedDataMethod ( string $method ) : static | ||
$method | string | One of the method constants defined in PostedDataMethods |
Результат | static |