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
Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat boolean Returns TRUE if needle is found in the array, FALSE otherwise.

initFromRequest() public static méthode

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