PHP Класс Imbo\Http\Request\Request

Автор: Christer Edvartsen ([email protected])
Наследование: extends Symfony\Component\HttpFoundation\Request
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getExtension ( ) : string | null Get the current requested extension (if any)
getImage ( ) : null | Image Get an image model attached to the request (on POST)
getImageIdentifier ( ) : string | null Get the image identifier from the URL
getPublicKey ( ) : string Get the public key found in the request
getRawUri ( ) : string Get the URI without the Symfony normalization applied to the query string, un-encoded
getRoute ( ) : Imbo\Router\Route Get the current route
getTransformations ( ) : array Get image transformations from the request
getUriAsIs ( ) : string Get the URI with no changes to the incoming formatting ("as is")
getUser ( ) : string Get the user found in the request
getUsers ( ) : array Get users specified in the request
setImage ( Image $image ) : Request Set an image model
setRoute ( Imbo\Router\Route $route ) : self Set the route
setTransformations ( array $transformations ) : self Set the transformation chain

Описание методов

getExtension() публичный Метод

Get the current requested extension (if any)
public getExtension ( ) : string | null
Результат string | null

getImage() публичный Метод

Get an image model attached to the request (on POST)
public getImage ( ) : null | Image
Результат null | Imbo\Model\Image

getImageIdentifier() публичный Метод

Get the image identifier from the URL
public getImageIdentifier ( ) : string | null
Результат string | null

getPublicKey() публичный Метод

Get the public key found in the request
public getPublicKey ( ) : string
Результат string

getRawUri() публичный Метод

Get the URI without the Symfony normalization applied to the query string, un-encoded
public getRawUri ( ) : string
Результат string

getRoute() публичный Метод

Get the current route
public getRoute ( ) : Imbo\Router\Route
Результат Imbo\Router\Route

getTransformations() публичный Метод

Get image transformations from the request
public getTransformations ( ) : array
Результат array

getUriAsIs() публичный Метод

Get the URI with no changes to the incoming formatting ("as is")
public getUriAsIs ( ) : string
Результат string

getUser() публичный Метод

Get the user found in the request
public getUser ( ) : string
Результат string

getUsers() публичный Метод

Get users specified in the request
public getUsers ( ) : array
Результат array Users specified in the request

setImage() публичный Метод

Set an image model
public setImage ( Image $image ) : Request
$image Imbo\Model\Image An image model instance
Результат Request

setRoute() публичный Метод

Set the route
public setRoute ( Imbo\Router\Route $route ) : self
$route Imbo\Router\Route The current route
Результат self

setTransformations() публичный Метод

Set the transformation chain
public setTransformations ( array $transformations ) : self
$transformations array The image transformations
Результат self