PHP Class Neos\Flow\Http\UriTemplate

ファイルを表示 Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$delimiters array
$encodedDelimiters array
$operators array
$variables array

Public Methods

Method Description
expand ( string $template, array $variables ) : string Expand the template string using the supplied variables

Protected Methods

Method 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 method

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

encodeArrayVariable() protected static method

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
return string

expand() public static method

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
return string

expandMatch() protected static method

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

isAssociative() protected static method

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
return boolean

parseExpression() protected static method

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

Property Details

$delimiters protected_oe static_oe property

protected static array $delimiters
return array

$encodedDelimiters protected_oe static_oe property

protected static array $encodedDelimiters
return array

$operators protected_oe static_oe property

protected static array $operators
return array

$variables protected_oe static_oe property

protected static array $variables
return array