You are here

function rules_data_type::construct in Rules 6

Constructor

Parameters

$type: The data type of this object

$info: If given, the info about this data type. If it's not given, it will be retrieved automatically.

File

rules/rules.data_types.inc, line 48
Defines the data type class

Class

rules_data_type
Base data type class, from which special data types can be derived.

Code

function construct($type, $info = NULL) {
  $this->type = $type;
  if (!isset($info)) {
    $info = rules_get_data_types($type);
  }
  $this->_info = isset($info) ? $info : array();
}