| 1 | {/list} /red,green,blue | {$value}*(?:,{$value}+)* | 2 | {/list*} /red/green/blue | {$value}+(?:{$sep}{$value}+)* | 3 | {/keys} /semi,%3B,dot,.,comma,%2C | /(\w+,?)+ | 4 | {/keys*} /semi=%3B/dot=./comma=%2C | /(?:\w+=\w+/?)*

CloneableInstantiable
ExtendsRize\UriTemplate\Operator\Abstraction
Properties
public Rize\UriTemplate\Operator\Abstraction::$empty
public Rize\UriTemplate\Operator\Abstraction::$first
public Rize\UriTemplate\Operator\Abstraction::$id
 
start - Variable offset position, level-2 operators start at 1 (exclude operator itself, e.g. {?query}) first - If variables found, prepend this value to it named - Whether or not the expansion includes the variable or key name reserved - union of (unreserved / reserved / pct-encoded)

public Rize\UriTemplate\Operator\Abstraction::$named
public Rize\UriTemplate\Operator\Abstraction::$reserved
public static Rize\UriTemplate\Operator\Abstraction::$reserved_chars
 
gen-delims | sub-delims

public Rize\UriTemplate\Operator\Abstraction::$sep
public Rize\UriTemplate\Operator\Abstraction::$start
Methods
public Rize\UriTemplate\Operator\Abstraction::__construct( $id, $named, $sep, $empty, $reserved, $start, $first)
public static Rize\UriTemplate\Operator\Abstraction::createById( $id)
public Rize\UriTemplate\Operator\Abstraction::decode(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var, $values)
 
Decodes variable

  • return string decoded string
public Rize\UriTemplate\Operator\Abstraction::encode(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var, $values)
 
Encodes variable according to spec (reserved or unreserved)

  • return string encoded string
public Rize\UriTemplate\Operator\Abstraction::expand(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var, array $params = [])
public Rize\UriTemplate\Operator\Abstraction::expandExplode(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var, array $val)
 
Explode modifier '*', '%'

  • return null|string
public Rize\UriTemplate\Operator\Abstraction::expandNonExplode(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var, array $val)
 
Non explode modifier ':'

  • return null|string
public Rize\UriTemplate\Operator\Abstraction::expandString(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var, $val)
public Rize\UriTemplate\Operator\Abstraction::extract(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var, $data)
 
Extracts value from variable

  • return string
public static Rize\UriTemplate\Operator\Abstraction::isValid( $id)
public toRegex(Rize\UriTemplate\Parser $parser, Rize\UriTemplate\Node\Variable $var)
Properties
protected static Rize\UriTemplate\Operator\Abstraction::$loaded
protected static Rize\UriTemplate\Operator\Abstraction::$pathRegex
 
RFC 3986 Allowed path characters regex except the path delimiter '/'.

  • var string
protected static Rize\UriTemplate\Operator\Abstraction::$queryRegex
 
RFC 3986 Allowed query characters regex except the query parameter delimiter '&'.

  • var string
protected static Rize\UriTemplate\Operator\Abstraction::$types
Methods
protected Rize\UriTemplate\Operator\Abstraction::getRegex()
 
Returns the correct regex given the variable location in the URI

  • return string
Properties
protected static Rize\UriTemplate\Operator\Abstraction::$loaded
protected static Rize\UriTemplate\Operator\Abstraction::$pathRegex
 
RFC 3986 Allowed path characters regex except the path delimiter '/'.

  • var string
protected static Rize\UriTemplate\Operator\Abstraction::$queryRegex
 
RFC 3986 Allowed query characters regex except the query parameter delimiter '&'.

  • var string
public static Rize\UriTemplate\Operator\Abstraction::$reserved_chars
 
gen-delims | sub-delims

protected static Rize\UriTemplate\Operator\Abstraction::$types
Methods
public static Rize\UriTemplate\Operator\Abstraction::createById( $id)
public static Rize\UriTemplate\Operator\Abstraction::isValid( $id)
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only