PHP Class DataTemplateComponent

Datei anzeigen Open project: openeyes/openeyes

Protected Properties

Property Type Description
$value

Public Methods

Method Description
__construct ( mixed $value )
generate ( array $values ) : mixed Generate a data structure from the template using the values supplied.
match ( mixed $structure, &$warnings = [] ) : array | null Match the template against a structure and extract values.

Method Details

__construct() public method

public __construct ( mixed $value )
$value mixed

generate() abstract public method

Generate a data structure from the template using the values supplied.
abstract public generate ( array $values ) : mixed
$values array
return mixed

match() abstract public method

Match the template against a structure and extract values.
abstract public match ( mixed $structure, &$warnings = [] ) : array | null
$structure mixed
return array | null Extracted values, or null if matching failed

Property Details

$value protected_oe property

protected $value