PHP Class PhalconRest\Api

Inheritance: extends PhalconApi\Api
Afficher le fichier Open project: olivierandriessen/phalcon-rest Class Usage Examples

Protected Properties

Свойство Type Description
$collectionsByIdentifier
$collectionsByName
$endpointsByIdentifier
$matchedRouteNameParts

Méthodes publiques

Méthode Description
collection ( ApiCollection $collection ) : static
getCollection ( $name ) : ApiCollection | null
getCollections ( ) : ApiCollection[]
getMatchedCollection ( ) : ApiCollection | null
getMatchedEndpoint ( ) : ApiEndpoint | null
mount ( Phalcon\Mvc\Micro\CollectionInterface $collection )
resource ( ApiResource $resource ) : static

Méthodes protégées

Méthode Description
getMatchedRouteNamePart ( $key )

Method Details

collection() public méthode

public collection ( ApiCollection $collection ) : static
$collection PhalconRest\Api\ApiCollection
Résultat static

getCollection() public méthode

public getCollection ( $name ) : ApiCollection | null
$name
Résultat PhalconRest\Api\ApiCollection | null

getCollections() public méthode

public getCollections ( ) : ApiCollection[]
Résultat PhalconRest\Api\ApiCollection[]

getMatchedCollection() public méthode

public getMatchedCollection ( ) : ApiCollection | null
Résultat PhalconRest\Api\ApiCollection | null The matched collection

getMatchedEndpoint() public méthode

public getMatchedEndpoint ( ) : ApiEndpoint | null
Résultat PhalconRest\Api\ApiEndpoint | null The matched endpoint

getMatchedRouteNamePart() protected méthode

protected getMatchedRouteNamePart ( $key )

mount() public méthode

public mount ( Phalcon\Mvc\Micro\CollectionInterface $collection )
$collection Phalcon\Mvc\Micro\CollectionInterface

resource() public méthode

public resource ( ApiResource $resource ) : static
$resource PhalconRest\Api\ApiResource
Résultat static

Property Details

$collectionsByIdentifier protected_oe property

protected $collectionsByIdentifier

$collectionsByName protected_oe property

protected $collectionsByName

$endpointsByIdentifier protected_oe property

protected $endpointsByIdentifier

$matchedRouteNameParts protected_oe property

protected $matchedRouteNameParts