PHP Class Flarum\Event\ConfigureApiController

Afficher le fichier Open project: flarum/core Class Usage Examples

Méthodes publiques

Свойство Type Description
$controller Flarum\Api\Controller\AbstractSerializeController

Méthodes publiques

Méthode Description
__construct ( AbstractSerializeController $controller )
addInclude ( string | array $name ) Include the given relationship by default.
addOptionalInclude ( string $name ) Make the given relationship available for inclusion.
addSortField ( string $field ) Allow sorting results by the given field.
isController ( string $controller ) : boolean
removeInclude ( string $name ) Don't include the given relationship by default.
removeOptionalInclude ( string $name ) Don't allow the given relationship to be included.
removeSortField ( string $field ) Disallow sorting results by the given field.
setLimit ( integer $limit ) Set the default number of results.
setMaxLimit ( integer $max ) Set the maximum number of results.
setSerializer ( string $serializer ) Set the serializer that will serialize data for the endpoint.
setSort ( array $sort ) Set the default sort order for the results.

Method Details

__construct() public méthode

public __construct ( AbstractSerializeController $controller )
$controller Flarum\Api\Controller\AbstractSerializeController

addInclude() public méthode

Include the given relationship by default.
public addInclude ( string | array $name )
$name string | array

addOptionalInclude() public méthode

Make the given relationship available for inclusion.
public addOptionalInclude ( string $name )
$name string

addSortField() public méthode

Allow sorting results by the given field.
public addSortField ( string $field )
$field string

isController() public méthode

public isController ( string $controller ) : boolean
$controller string
Résultat boolean

removeInclude() public méthode

Don't include the given relationship by default.
public removeInclude ( string $name )
$name string

removeOptionalInclude() public méthode

Don't allow the given relationship to be included.
public removeOptionalInclude ( string $name )
$name string

removeSortField() public méthode

Disallow sorting results by the given field.
public removeSortField ( string $field )
$field string

setLimit() public méthode

Set the default number of results.
public setLimit ( integer $limit )
$limit integer

setMaxLimit() public méthode

Set the maximum number of results.
public setMaxLimit ( integer $max )
$max integer

setSerializer() public méthode

Set the serializer that will serialize data for the endpoint.
public setSerializer ( string $serializer )
$serializer string

setSort() public méthode

Set the default sort order for the results.
public setSort ( array $sort )
$sort array

Property Details

$controller public_oe property

public AbstractSerializeController,Flarum\Api\Controller $controller
Résultat Flarum\Api\Controller\AbstractSerializeController