PHP Class Ergo\Http\QueryString

Show file Open project: 99designs/ergo Class Usage Examples

Public Methods

Method Description
__construct ( $queryString ) Constructor
__get ( $prop ) Magic method for property getters
__isset ( $prop ) Magic method, determines whether the property exists
__set ( $prop, $value ) Magic method for property setters
__toString ( )
__unset ( $prop ) Magic method, unsets a property
addParameters ( array $newParams ) Adds params
setDefaultValue ( $value ) Sets the default value that is returned if a parameter isn't set
toArray ( ) Returns an array version of the query string
value ( $key, $default = false ) Returns a particular key, with a specific default value

Method Details

__construct() public method

Constructor
public __construct ( $queryString )

__get() public method

Magic method for property getters
public __get ( $prop )

__isset() public method

Magic method, determines whether the property exists
public __isset ( $prop )

__set() public method

Magic method for property setters
public __set ( $prop, $value )

__toString() public method

public __toString ( )

__unset() public method

Magic method, unsets a property
public __unset ( $prop )

addParameters() public method

Adds params
public addParameters ( array $newParams )
$newParams array

setDefaultValue() public method

Sets the default value that is returned if a parameter isn't set
public setDefaultValue ( $value )

toArray() public method

Returns an array version of the query string
public toArray ( )

value() public method

Returns a particular key, with a specific default value
public value ( $key, $default = false )