PHP Class Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration

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

Public Methods

Method 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

Method Description
areParametersIntentionallyEmptyArray ( mixed $redirect ) : boolean
parseResourceValues ( array $parameters, object $resource ) : array

Method Details

__construct() public method

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 method

public getCriteria ( array $criteria = [] ) : array
$criteria array
return array

getDefaultTemplate() public method

public getDefaultTemplate ( $name ) : null | string
$name
return null | string

getEvent() public method

public getEvent ( ) : string | null
return string | null

getFactoryArguments() public method

public getFactoryArguments ( ) : array
return array

getFactoryMethod() public method

public getFactoryMethod ( ) : string | null
return string | null

getFlashMessage() public method

public getFlashMessage ( null $message ) : mixed | null
$message null
return mixed | null

getFormOptions() public method

public getFormOptions ( ) : array
return array

getFormType() public method

public getFormType ( ) : string | null
return string | null

getGrid() public method

public getGrid ( ) : string
return string

getLimit() public method

public getLimit ( ) : integer | null
return integer | null

getMetadata() public method

public getMetadata ( ) : Sylius\Component\Resource\Metadata\MetadataInterface
return Sylius\Component\Resource\Metadata\MetadataInterface

getPaginationMaxPerPage() public method

getParameters() public method

public getParameters ( ) : Parameters
return Parameters

getPermission() public method

public getPermission ( string $name ) : string
$name string
return string

getRedirectHash() public method

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

getRedirectParameters() public method

public getRedirectParameters ( object | null $resource = null ) : array
$resource object | null
return array

getRedirectReferer() public method

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

getRedirectRoute() public method

public getRedirectRoute ( $name ) : mixed | null | string
$name
return mixed | null | string

getRepositoryArguments() public method

public getRepositoryArguments ( ) : array
return array

getRepositoryMethod() public method

public getRepositoryMethod ( ) : string | null
return string | null

getRequest() public method

public getRequest ( ) : Request
return Symfony\Component\HttpFoundation\Request

getRequestParameter() public method

public getRequestParameter ( $parameter, array $defaults = [] ) : array
$parameter
$defaults array
return array

getRouteName() public method

public getRouteName ( $name ) : string
$name
return string

getSection() public method

public getSection ( ) : string | null
return string | null

getSerializationGroups() public method

public getSerializationGroups ( ) : mixed | null
return mixed | null

getSerializationVersion() public method

public getSerializationVersion ( ) : mixed | null
return mixed | null

getSortablePosition() public method

public getSortablePosition ( ) : mixed | null
return mixed | null

getSorting() public method

public getSorting ( array $sorting = [] ) : array
$sorting array
return array

getStateMachineGraph() public method

public getStateMachineGraph ( ) : string
return string

getStateMachineTransition() public method

getTemplate() public method

public getTemplate ( $name ) : mixed | null
$name
return mixed | null

getVars() public method

public getVars ( )

hasGrid() public method

public hasGrid ( ) : boolean
return boolean

hasPermission() public method

public hasPermission ( ) : boolean
return boolean

hasStateMachine() public method

public hasStateMachine ( ) : boolean
return boolean

isCsrfProtectionEnabled() public method

isFilterable() public method

public isFilterable ( ) : boolean
return boolean

isHeaderRedirection() public method

public isHeaderRedirection ( ) : boolean
return boolean

isHtmlRequest() public method

public isHtmlRequest ( ) : boolean
return boolean

isLimited() public method

public isLimited ( ) : boolean
return boolean

isPaginated() public method

public isPaginated ( ) : boolean
return boolean

isSortable() public method

public isSortable ( ) : boolean
return boolean