PHP Class Pimcore\Model\Staticroute

Inheritance: extends AbstractModel
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Méthodes publiques

Свойство Type Description
$_values array Associative array filled on match() that holds matched path values for given variable names.
$action string
$controller string
$creationDate integer
$defaults string
$id integer
$modificationDate integer
$module string
$name string
$pattern string
$priority integer
$reverse string
$siteId integer
$variables string

Protected Properties

Свойство Type Description
$_currentRoute Staticroute contains the static route which the current request matches (it he does), this is used in the view to get the current route
$nameIdMappingCache array this is a small per request cache to know which route is which is, this info is used in self::getByName()

Méthodes publiques

Méthode Description
assemble ( array $urlOptions = [], boolean $reset = false, boolean $encode = true ) : mixed | string
create ( ) : Staticroute
getAction ( ) : string
getById ( integer $id ) : Staticroute
getByName ( string $name, $siteId = null ) : Staticroute
getController ( ) : string
getCreationDate ( ) : integer
getCurrentRoute ( ) : Staticroute
getDefaults ( ) : string
getDefaultsArray ( ) : array Get the defaults defined in a string as array
getId ( ) : integer
getModificationDate ( ) : integer
getModule ( ) : string
getName ( ) : string
getPattern ( ) : string
getPriority ( ) : integer
getReverse ( ) : string
getSiteId ( ) : integer
getVariables ( ) : string
match ( string $path, array $params = [] ) : array | boolean
setAction ( string $action ) : void
setController ( string $controller ) : void
setCreationDate ( $creationDate )
setCurrentRoute ( $route ) : void
setDefaults ( string $defaults ) : void
setId ( integer $id )
setModificationDate ( $modificationDate )
setModule ( string $module )
setName ( string $name ) : void
setPattern ( string $pattern )
setPriority ( integer $priority ) : void
setReverse ( string $reverse ) : void
setSiteId ( integer $siteId )
setVariables ( string $variables ) : void

Method Details

assemble() public méthode

public assemble ( array $urlOptions = [], boolean $reset = false, boolean $encode = true ) : mixed | string
$urlOptions array
$reset boolean
$encode boolean
Résultat mixed | string

create() public static méthode

public static create ( ) : Staticroute
Résultat Staticroute

getAction() public méthode

public getAction ( ) : string
Résultat string

getById() public static méthode

public static getById ( integer $id ) : Staticroute
$id integer
Résultat Staticroute

getByName() public static méthode

public static getByName ( string $name, $siteId = null ) : Staticroute
$name string
Résultat Staticroute

getController() public méthode

public getController ( ) : string
Résultat string

getCreationDate() public méthode

public getCreationDate ( ) : integer
Résultat integer

getCurrentRoute() public static méthode

public static getCurrentRoute ( ) : Staticroute
Résultat Staticroute

getDefaults() public méthode

public getDefaults ( ) : string
Résultat string

getDefaultsArray() public méthode

Get the defaults defined in a string as array
public getDefaultsArray ( ) : array
Résultat array

getId() public méthode

public getId ( ) : integer
Résultat integer

getModificationDate() public méthode

public getModificationDate ( ) : integer
Résultat integer

getModule() public méthode

public getModule ( ) : string
Résultat string

getName() public méthode

public getName ( ) : string
Résultat string

getPattern() public méthode

public getPattern ( ) : string
Résultat string

getPriority() public méthode

public getPriority ( ) : integer
Résultat integer

getReverse() public méthode

public getReverse ( ) : string
Résultat string

getSiteId() public méthode

public getSiteId ( ) : integer
Résultat integer

getVariables() public méthode

public getVariables ( ) : string
Résultat string

match() public méthode

public match ( string $path, array $params = [] ) : array | boolean
$path string
$params array
Résultat array | boolean

setAction() public méthode

public setAction ( string $action ) : void
$action string
Résultat void

setController() public méthode

public setController ( string $controller ) : void
$controller string
Résultat void

setCreationDate() public méthode

public setCreationDate ( $creationDate )
$creationDate

setCurrentRoute() public static méthode

public static setCurrentRoute ( $route ) : void
$route
Résultat void

setDefaults() public méthode

public setDefaults ( string $defaults ) : void
$defaults string
Résultat void

setId() public méthode

public setId ( integer $id )
$id integer

setModificationDate() public méthode

public setModificationDate ( $modificationDate )
$modificationDate

setModule() public méthode

public setModule ( string $module )
$module string

setName() public méthode

public setName ( string $name ) : void
$name string
Résultat void

setPattern() public méthode

public setPattern ( string $pattern )
$pattern string

setPriority() public méthode

public setPriority ( integer $priority ) : void
$priority integer
Résultat void

setReverse() public méthode

public setReverse ( string $reverse ) : void
$reverse string
Résultat void

setSiteId() public méthode

public setSiteId ( integer $siteId )
$siteId integer

setVariables() public méthode

public setVariables ( string $variables ) : void
$variables string
Résultat void

Property Details

$_currentRoute protected_oe static_oe property

contains the static route which the current request matches (it he does), this is used in the view to get the current route
protected static Staticroute,Pimcore\Model $_currentRoute
Résultat Staticroute

$_values public_oe property

Associative array filled on match() that holds matched path values for given variable names.
public array $_values
Résultat array

$action public_oe property

public string $action
Résultat string

$controller public_oe property

public string $controller
Résultat string

$creationDate public_oe property

public int $creationDate
Résultat integer

$defaults public_oe property

public string $defaults
Résultat string

$id public_oe property

public int $id
Résultat integer

$modificationDate public_oe property

public int $modificationDate
Résultat integer

$module public_oe property

public string $module
Résultat string

$name public_oe property

public string $name
Résultat string

$nameIdMappingCache protected_oe static_oe property

this is a small per request cache to know which route is which is, this info is used in self::getByName()
protected static array $nameIdMappingCache
Résultat array

$pattern public_oe property

public string $pattern
Résultat string

$priority public_oe property

public int $priority
Résultat integer

$reverse public_oe property

public string $reverse
Résultat string

$siteId public_oe property

public int $siteId
Résultat integer

$variables public_oe property

public string $variables
Résultat string