PHP Class WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelper

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface
Datei anzeigen Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$request null | Symfony\Component\HttpFoundation\Request
$requestStack Symfony\Component\HttpFoundation\RequestStack

Public Methods

Method Description
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack ) Constructor
getAttributesBagParam ( string $name, $default = null, integer $filter = FILTER_SANITIZE_SPECIAL_CHARS )
getCurrentCurrency ( ) : string
getCurrentHost ( )
getCurrentLocale ( ) : string
getCurrentRequest ( )
getQueryBagParam ( string $name, $default = null, integer $filter = FILTER_SANITIZE_SPECIAL_CHARS )
getRequestBagParam ( string $name, $default = null, integer $filter = FILTER_SANITIZE_SPECIAL_CHARS )
getSessionAttribute ( string $name, $default = null )
getSessionId ( ) : string
getSessionName ( ) : string
hasAttributesBagParam ( string $name ) : boolean
hasAttributesBagParams ( array $params = [] ) : boolean
hasRequestBagParam ( string $name ) : boolean
hasRequestBagParams ( array $params = [] ) : boolean
hasSessionAttribute ( string $name ) : boolean
setSessionAttribute ( string $name, $value )

Method Details

__construct() public method

Constructor
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack )
$requestStack Symfony\Component\HttpFoundation\RequestStack

getAttributesBagParam() public method

public getAttributesBagParam ( string $name, $default = null, integer $filter = FILTER_SANITIZE_SPECIAL_CHARS )
$name string
$filter integer

getCurrentCurrency() public method

public getCurrentCurrency ( ) : string
return string

getCurrentHost() public method

public getCurrentHost ( )

getCurrentLocale() public method

public getCurrentLocale ( ) : string
return string

getCurrentRequest() public method

public getCurrentRequest ( )

getQueryBagParam() public method

public getQueryBagParam ( string $name, $default = null, integer $filter = FILTER_SANITIZE_SPECIAL_CHARS )
$name string
$filter integer

getRequestBagParam() public method

public getRequestBagParam ( string $name, $default = null, integer $filter = FILTER_SANITIZE_SPECIAL_CHARS )
$name string
$filter integer

getSessionAttribute() public method

public getSessionAttribute ( string $name, $default = null )
$name string

getSessionId() public method

public getSessionId ( ) : string
return string

getSessionName() public method

public getSessionName ( ) : string
return string

hasAttributesBagParam() public method

public hasAttributesBagParam ( string $name ) : boolean
$name string
return boolean

hasAttributesBagParams() public method

public hasAttributesBagParams ( array $params = [] ) : boolean
$params array
return boolean

hasRequestBagParam() public method

public hasRequestBagParam ( string $name ) : boolean
$name string
return boolean

hasRequestBagParams() public method

public hasRequestBagParams ( array $params = [] ) : boolean
$params array
return boolean

hasSessionAttribute() public method

public hasSessionAttribute ( string $name ) : boolean
$name string
return boolean

setSessionAttribute() public method

public setSessionAttribute ( string $name, $value )
$name string

Property Details

$request protected_oe property

protected null|Request,Symfony\Component\HttpFoundation $request
return null | Symfony\Component\HttpFoundation\Request

$requestStack protected_oe property

protected RequestStack,Symfony\Component\HttpFoundation $requestStack
return Symfony\Component\HttpFoundation\RequestStack