Class ArgMap
Convenience class for passing arguments to a panel request.
Automaticly casts all keys and values to strings.
-
Apptus\ESales\Connector\ArgMap
implements
ArrayAccess,
Countable,
IteratorAggregate
Methods summary
public
|
#
put( mixed $key, mixed $value )
Put an argument into the ArgMap. Both the key and the value will be casted to strings.
Put an argument into the ArgMap. Both the key and the value will be casted to strings.
Alternative syntax:
$argmap[$key] = $value;
Parameters
|
public
|
#
putAll( array|Apptus\ESales\Connector\ArgMap |null $args )
Put all arguments from an array or another ArgMap into the ArgMap.
Put all arguments from an array or another ArgMap into the ArgMap.
Parameters
|
public
boolean
|
#
hasKey( mixed $key )
Check if a key exists in the ArgMap.
Check if a key exists in the ArgMap.
Alternative syntax:
isset($argmap[$key]);
Parameters
Returns
boolean True if the key exists in the ArgMap, false otherwise.
|
public
string|mixed
|
#
get( mixed $key, mixed $default = null )
Get the value for a key.
Alternative syntax:
$argmap[$key];
Parameters
- $key
- to get the value for.
- $default
- to return if the key is not in the ArgMap. Defaults to null.
Returns
string|mixed The value if found, otherwise $default.
|
public
array
|
#
getArgs( )
Return an array representing the arguments in the ArgMap.
Return an array representing the arguments in the ArgMap.
Returns
array A regular array representing the arguments in the ArgMap.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|