PHP Class Scalr\UI\Request\JsonData

Convert input json string to array object
Since: 5.0.0 (19.06.2014)
Author: Igor Vodiasov ([email protected])
Inheritance: extends ArrayObjec\ArrayObject, implements Scalr\UI\Request\ObjectInitializingInterface
显示文件 Open project: scalr/scalr Class Usage Examples

Public Methods

Method Description
has ( mixed $needle, boolean $strict = false ) : boolean Checks if a value exists in an array
initFromRequest ( $value, $name = '' ) : JsonData
search ( mixed $needle, boolean $strict = false ) : mixed Searches the array for a given value and returns the corresponding key if successful

Method Details

has() public method

Checks if a value exists in an array
public has ( mixed $needle, boolean $strict = false ) : boolean
$needle mixed A value
$strict boolean optional If it is set to TRUE then function will also check the types of the needle in the haystack.
return boolean Returns TRUE if needle is found in the array, FALSE otherwise.

initFromRequest() public static method

See also: ObjectInitializingInterface::initFromRequest()
public static initFromRequest ( $value, $name = '' ) : JsonData
return JsonData