function RulesIdentifiableDataWrapper::__construct
Construct a new wrapper object.
Parameters
$type: The type of the passed data.
$data: (optional) The data to wrap or its identifier.
array $info: (optional) Used internally to pass info about properties down the tree.
File
-
includes/
rules.state.inc, line 700
Class
- RulesIdentifiableDataWrapper
- A wrapper class similar to the EntityDrupalWrapper, but for non-entities.
Code
public function __construct($type, $data = NULL, $info = array()) {
parent::__construct($type, $data, $info);
$this->setData($data);
}