Create a new WireData instance and optionally add given associative array of data to it
Available since version 3.0.126.
Example
$data = WireData([ 'hello' => 'world', 'foo' => 'bar' ]);
Usage
// basic usage
$wireData = WireData ();
// usage with all arguments
$wireData = WireData ($data = array);
Arguments
Name | Type(s) | Description |
---|---|---|
data (optional) | array, \Traversable | Can be an associative array or Traversable object of data to set, or omit if not needed |
Return value
Functions methods and properties
API reference based on ProcessWire core version 3.0.236