Oihana PHP System

HttpMethodRoutesTrait uses trait:short

Table of Contents

Properties

$delete  : string|null
$get  : string|null
$hasCount  : bool
$hasDelete  : bool
$hasDeleteAll  : bool
$hasGet  : bool
$hasList  : bool
$hasPatch  : bool
$hasPost  : bool
$hasPut  : bool
$patch  : string|null
$post  : string|null
$put  : string|null

Methods

count()  : void
Generates a special GET count route reference.
delete()  : void
Generates a new DELETE route reference.
deleteAll()  : void
Generates a new DELETE (ALL) route reference.
get()  : void
Generates a new GET route reference.
initializeFlags()  : void
Initialize the internal flags.
initializeMethods()  : void
Initialize the internal flags.
list()  : void
Generates a new GET (LIST) route reference.
method()  : void
options()  : void
Generates a new OPTIONS route reference.
patch()  : void
Generates a new PATCH route reference.
post()  : void
Generates a new POST route reference.
put()  : void
Generates a new PUT route reference.

Properties

Methods

count()

Generates a special GET count route reference.

protected count(array<string|int, mixed> &$routes, string $route[, string|null $method = HttpMethod::count ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = HttpMethod::count

delete()

Generates a new DELETE route reference.

protected delete(array<string|int, mixed> &$routes, string $route[, string|null $method = null ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = null

deleteAll()

Generates a new DELETE (ALL) route reference.

protected deleteAll(array<string|int, mixed> &$routes, string $route[, string|null $method = HttpMethod::deleteAll ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = HttpMethod::deleteAll

get()

Generates a new GET route reference.

protected get(array<string|int, mixed> &$routes, string $route[, string|null $method = null ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = null

initializeFlags()

Initialize the internal flags.

protected initializeFlags([array<string|int, mixed> $init = [] ]) : void
Parameters
$init : array<string|int, mixed> = []

initializeMethods()

Initialize the internal flags.

protected initializeMethods([array<string|int, mixed> $init = [] ]) : void
Parameters
$init : array<string|int, mixed> = []

list()

Generates a new GET (LIST) route reference.

protected list(array<string|int, mixed> &$routes, string $route[, string|null $method = HttpMethod::list ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = HttpMethod::list

method()

protected method(string $clazz, array<string|int, mixed> &$routes, string $route[, string|null $method = null ]) : void
Parameters
$clazz : string
$routes : array<string|int, mixed>
$route : string
$method : string|null = null
Tags
protected

options()

Generates a new OPTIONS route reference.

protected options(array<string|int, mixed> &$routes, string $route[, bool $flag = true ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$flag : bool = true
Tags
throws
DependencyException
throws
NotFoundException

patch()

Generates a new PATCH route reference.

protected patch(array<string|int, mixed> &$routes, string $route[, string|null $method = null ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = null

post()

Generates a new POST route reference.

protected post(array<string|int, mixed> &$routes, string $route[, string|null $method = null ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = null

put()

Generates a new PUT route reference.

protected put(array<string|int, mixed> &$routes, string $route[, string|null $method = null ]) : void
Parameters
$routes : array<string|int, mixed>
$route : string
$method : string|null = null

        
On this page

Search results