51Degrees Pipeline PHP  4.1

51Degrees Pipeline for PHP

fiftyone\pipeline\core\ElementDataDictionary Class Reference

Detailed Description

An extension of ElementData with dictionary object storage / lookup.

Examples
CustomFlowElement.php.

Inheritance diagram for fiftyone\pipeline\core\ElementDataDictionary:

[legend]

Collaboration diagram for fiftyone\pipeline\core\ElementDataDictionary:

[legend]

Public Member Functions

 __construct ($flowElement, $contents)
Constructor for element data dictionary. More...
 asDictionary ()
Get the values contained in the ElementData instance as a dictionary of keys and values. More...
 getInternal ($key)
Internal getter for contents. More...

Public Member Functions inherited from fiftyone\pipeline\core\ElementData

 __construct ($flowElement)
Constructor for element data. More...
 get ($key)
Get a value from the ElementData contents This calls the ElementData class' (often overridden) getInternal method. More...
 __get ($key)
 asDictionary ()
Get the values contained in the ElementData instance as a dictionary of keys and values. More...
 getAsString ($key)
Helper method to get property as a string. More...
 getAsFloat ($key)
Helper method to get property as a float. More...
 getAsInteger ($key)
Helper method to get property as a int. More...

Constructor & Destructor Documentation

◆ __construct()

fiftyone\pipeline\core\ElementDataDictionary::__construct (   $flowElement,
  $contents  
)

Constructor for element data dictionary.

Parameters
FlowElement -
mixed[] - dicitonary contents

Member Function Documentation

◆ asDictionary()

fiftyone\pipeline\core\ElementDataDictionary::asDictionary ( )

Get the values contained in the ElementData instance as a dictionary of keys and values.

Returns
mixed[]

◆ getInternal()

fiftyone\pipeline\core\ElementDataDictionary::getInternal (   $key )

Internal getter for contents.

Parameters
string - key
Returns
mixed