/** * Field Constructor. * * Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function * * @since ATT_Options 1.0 */ function __construct($field = array(), $value = '', $parent) { parent::__construct($parent->sections, $parent->args, $parent->extra_tabs); $this->field = $field; $this->value = $value; //$this->render(); }
/** * Field Constructor. */ function __construct($field = array(), $value = '', $parent = NULL) { if (is_object($parent)) { parent::__construct($parent->sections, $parent->args, $parent->extra_tabs); } $this->field = $field; $this->value = $value; }