PHP Class Neos\Flow\Http\UriTemplate

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$delimiters array
$encodedDelimiters array
$operators array
$variables array

Méthodes publiques

Méthode Description
expand ( string $template, array $variables ) : string Expand the template string using the supplied variables

Méthodes protégées

Méthode Description
decodeReservedDelimiters ( string $string ) : string Decodes percent encoding on delimiters (used with + and # modifiers)
encodeArrayVariable ( array $variable, array $value, string $operator, string $separator, &$useQueryString ) : string Encode arrays for use in the expanded URI string
expandMatch ( array $matches ) : string Process an expansion
isAssociative ( array $array ) : boolean Determines if an array is associative, i.e. contains at least one key that is a string.
parseExpression ( string $expression ) : array Parse an expression into parts

Method Details

decodeReservedDelimiters() protected static méthode

Decodes percent encoding on delimiters (used with + and # modifiers)
protected static decodeReservedDelimiters ( string $string ) : string
$string string
Résultat string

encodeArrayVariable() protected static méthode

Encode arrays for use in the expanded URI string
protected static encodeArrayVariable ( array $variable, array $value, string $operator, string $separator, &$useQueryString ) : string
$variable array
$value array
$operator string
$separator string
$useQueryString
Résultat string

expand() public static méthode

Expand the template string using the supplied variables
public static expand ( string $template, array $variables ) : string
$template string URI template to expand
$variables array variables to use with the expansion
Résultat string

expandMatch() protected static méthode

Process an expansion
protected static expandMatch ( array $matches ) : string
$matches array matches found in preg_replace_callback
Résultat string replacement string

isAssociative() protected static méthode

Determines if an array is associative, i.e. contains at least one key that is a string.
protected static isAssociative ( array $array ) : boolean
$array array
Résultat boolean

parseExpression() protected static méthode

Parse an expression into parts
protected static parseExpression ( string $expression ) : array
$expression string Expression to parse
Résultat array associative array of parts

Property Details

$delimiters protected_oe static_oe property

protected static array $delimiters
Résultat array

$encodedDelimiters protected_oe static_oe property

protected static array $encodedDelimiters
Résultat array

$operators protected_oe static_oe property

protected static array $operators
Résultat array

$variables protected_oe static_oe property

protected static array $variables
Résultat array