PHP Class Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration

Author: Paweł Jędrzejewski ([email protected])
Author: Saša Stamenković ([email protected])
Author: Gustavo Perdomo ([email protected])
Afficher le fichier Open project: sylius/sylius Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Request $request, Parameters $parameters )
getCriteria ( array $criteria = [] ) : array
getDefaultTemplate ( $name ) : null | string
getEvent ( ) : string | null
getFactoryArguments ( ) : array
getFactoryMethod ( ) : string | null
getFlashMessage ( null $message ) : mixed | null
getFormOptions ( ) : array
getFormType ( ) : string | null
getGrid ( ) : string
getLimit ( ) : integer | null
getMetadata ( ) : Sylius\Component\Resource\Metadata\MetadataInterface
getPaginationMaxPerPage ( ) : integer
getParameters ( ) : Parameters
getPermission ( string $name ) : string
getRedirectHash ( ) : null | string Get url hash fragment (#text) which is you configured.
getRedirectParameters ( object | null $resource = null ) : array
getRedirectReferer ( ) : null | string Get redirect referer, This will detected by configuration If not exists, The referrer from headers will be used.
getRedirectRoute ( $name ) : mixed | null | string
getRepositoryArguments ( ) : array
getRepositoryMethod ( ) : string | null
getRequest ( ) : Request
getRequestParameter ( $parameter, array $defaults = [] ) : array
getRouteName ( $name ) : string
getSection ( ) : string | null
getSerializationGroups ( ) : mixed | null
getSerializationVersion ( ) : mixed | null
getSortablePosition ( ) : mixed | null
getSorting ( array $sorting = [] ) : array
getStateMachineGraph ( ) : string
getStateMachineTransition ( ) : string
getTemplate ( $name ) : mixed | null
getVars ( )
hasGrid ( ) : boolean
hasPermission ( ) : boolean
hasStateMachine ( ) : boolean
isCsrfProtectionEnabled ( ) : boolean
isFilterable ( ) : boolean
isHeaderRedirection ( ) : boolean
isHtmlRequest ( ) : boolean
isLimited ( ) : boolean
isPaginated ( ) : boolean
isSortable ( ) : boolean

Private Methods

Méthode Description
areParametersIntentionallyEmptyArray ( mixed $redirect ) : boolean
parseResourceValues ( array $parameters, object $resource ) : array

Method Details

__construct() public méthode

public __construct ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata, Request $request, Parameters $parameters )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
$request Symfony\Component\HttpFoundation\Request
$parameters Parameters

getCriteria() public méthode

public getCriteria ( array $criteria = [] ) : array
$criteria array
Résultat array

getDefaultTemplate() public méthode

public getDefaultTemplate ( $name ) : null | string
$name
Résultat null | string

getEvent() public méthode

public getEvent ( ) : string | null
Résultat string | null

getFactoryArguments() public méthode

public getFactoryArguments ( ) : array
Résultat array

getFactoryMethod() public méthode

public getFactoryMethod ( ) : string | null
Résultat string | null

getFlashMessage() public méthode

public getFlashMessage ( null $message ) : mixed | null
$message null
Résultat mixed | null

getFormOptions() public méthode

public getFormOptions ( ) : array
Résultat array

getFormType() public méthode

public getFormType ( ) : string | null
Résultat string | null

getGrid() public méthode

public getGrid ( ) : string
Résultat string

getLimit() public méthode

public getLimit ( ) : integer | null
Résultat integer | null

getMetadata() public méthode

public getMetadata ( ) : Sylius\Component\Resource\Metadata\MetadataInterface
Résultat Sylius\Component\Resource\Metadata\MetadataInterface

getPaginationMaxPerPage() public méthode

public getPaginationMaxPerPage ( ) : integer
Résultat integer

getParameters() public méthode

public getParameters ( ) : Parameters
Résultat Parameters

getPermission() public méthode

public getPermission ( string $name ) : string
$name string
Résultat string

getRedirectHash() public méthode

Get url hash fragment (#text) which is you configured.
public getRedirectHash ( ) : null | string
Résultat null | string

getRedirectParameters() public méthode

public getRedirectParameters ( object | null $resource = null ) : array
$resource object | null
Résultat array

getRedirectReferer() public méthode

Get redirect referer, This will detected by configuration If not exists, The referrer from headers will be used.
public getRedirectReferer ( ) : null | string
Résultat null | string

getRedirectRoute() public méthode

public getRedirectRoute ( $name ) : mixed | null | string
$name
Résultat mixed | null | string

getRepositoryArguments() public méthode

public getRepositoryArguments ( ) : array
Résultat array

getRepositoryMethod() public méthode

public getRepositoryMethod ( ) : string | null
Résultat string | null

getRequest() public méthode

public getRequest ( ) : Request
Résultat Symfony\Component\HttpFoundation\Request

getRequestParameter() public méthode

public getRequestParameter ( $parameter, array $defaults = [] ) : array
$parameter
$defaults array
Résultat array

getRouteName() public méthode

public getRouteName ( $name ) : string
$name
Résultat string

getSection() public méthode

public getSection ( ) : string | null
Résultat string | null

getSerializationGroups() public méthode

public getSerializationGroups ( ) : mixed | null
Résultat mixed | null

getSerializationVersion() public méthode

public getSerializationVersion ( ) : mixed | null
Résultat mixed | null

getSortablePosition() public méthode

public getSortablePosition ( ) : mixed | null
Résultat mixed | null

getSorting() public méthode

public getSorting ( array $sorting = [] ) : array
$sorting array
Résultat array

getStateMachineGraph() public méthode

public getStateMachineGraph ( ) : string
Résultat string

getStateMachineTransition() public méthode

public getStateMachineTransition ( ) : string
Résultat string

getTemplate() public méthode

public getTemplate ( $name ) : mixed | null
$name
Résultat mixed | null

getVars() public méthode

public getVars ( )

hasGrid() public méthode

public hasGrid ( ) : boolean
Résultat boolean

hasPermission() public méthode

public hasPermission ( ) : boolean
Résultat boolean

hasStateMachine() public méthode

public hasStateMachine ( ) : boolean
Résultat boolean

isCsrfProtectionEnabled() public méthode

public isCsrfProtectionEnabled ( ) : boolean
Résultat boolean

isFilterable() public méthode

public isFilterable ( ) : boolean
Résultat boolean

isHeaderRedirection() public méthode

public isHeaderRedirection ( ) : boolean
Résultat boolean

isHtmlRequest() public méthode

public isHtmlRequest ( ) : boolean
Résultat boolean

isLimited() public méthode

public isLimited ( ) : boolean
Résultat boolean

isPaginated() public méthode

public isPaginated ( ) : boolean
Résultat boolean

isSortable() public méthode

public isSortable ( ) : boolean
Résultat boolean