Свойство | Тип | Описание | |
---|---|---|---|
$defaultValue | mixed | Default value of the Route Part. | |
$isOptional | boolean | Specifies whether this Route Part is optional. Which means it's put in parentheses in the routes URI pattern. | |
$lowerCase | boolean | Specifies whether this Route Part should be converted to lower case when resolved. | |
$name | string | Name of the Route Part | |
$options | array | Contains options for this Route Part. | |
$value | mixed | Value of the Route Part after decoding. |
Метод | Описание | |
---|---|---|
getDefaultValue ( ) : mixed | Gets default value of the Route Part. | |
getName ( ) : string | Returns name of the Route Part. | |
getOptions ( ) : array | ||
getValue ( ) : mixed | Returns value of the Route Part. Before match() is called this returns NULL. | |
hasDefaultValue ( ) : boolean | Returns TRUE if a default value is set for this Route Part, otherwise FALSE. | |
hasValue ( ) : boolean | Returns TRUE if a value is set for this Route Part, otherwise FALSE. | |
isLowerCase ( ) : boolean | Getter for $this->lowerCase. | |
isOptional ( ) : boolean | Getter for $this->isOptional. | |
setDefaultValue ( mixed $defaultValue ) : void | Sets default value of the Route Part. | |
setLowerCase ( boolean $lowerCase ) : void | Specifies whether this Route part should be converted to lower case when resolved. | |
setName ( string $partName ) : void | Sets name of the Route Part. | |
setOptional ( boolean $isOptional ) : void | Specifies whether this Route part is optional. | |
setOptions ( array $options ) : void | Defines options for this Route Part. |
public getDefaultValue ( ) : mixed | ||
Результат | mixed | $defaultValue |
public getOptions ( ) : array | ||
Результат | array | options of this Route Part. |
public hasDefaultValue ( ) : boolean | ||
Результат | boolean |
public isLowerCase ( ) : boolean | ||
Результат | boolean | TRUE if this Route part will be converted to lower case, otherwise FALSE. |
public isOptional ( ) : boolean | ||
Результат | boolean | TRUE if this Route part is optional, otherwise FALSE. |
public setDefaultValue ( mixed $defaultValue ) : void | ||
$defaultValue | mixed | |
Результат | void |
public setLowerCase ( boolean $lowerCase ) : void | ||
$lowerCase | boolean | TRUE: this Route part is converted to lower case. FALSE: this Route part is not altered. |
Результат | void |
public setOptional ( boolean $isOptional ) : void | ||
$isOptional | boolean | TRUE: this Route part is optional. FALSE: this Route part is required. |
Результат | void |
public setOptions ( array $options ) : void | ||
$options | array | |
Результат | void |
protected mixed $defaultValue | ||
Результат | mixed |
protected bool $isOptional | ||
Результат | boolean |
protected bool $lowerCase | ||
Результат | boolean |
protected array $options | ||
Результат | array |
protected mixed $value | ||
Результат | mixed |