/**
  * Constructor - instantiates one backup_optigroup_element
  *
  * @param string $name of the element
  * @param array $final_elements this element will handle (optional, defaults to null)
  * @param string $condition_param param (path) we are using as source for comparing (optional, defaults to null)
  * @param string $condition_value   value we are comparing to (optional, defaults to null)
  */
 public function __construct($name, $final_elements = null, $conditionparam = null, $conditionvalue = null)
 {
     parent::__construct($name, null, $final_elements);
     $this->set_condition($conditionparam, $conditionvalue);
 }
 /**
  * Constructor - instantiates one backup_nested_element, specifying its basic info.
  *
  * @param string $name name of the element
  * @param array  $attributes attributes this element will handle (optional, defaults to null)
  * @param array  $finalelements this element will handle (optional, defaults to null)
  */
 public function __construct($name, $attributes = null, $finalelements = null)
 {
     global $DB;
     parent::__construct($name, $attributes, $finalelements);
     $this->sourcedb = $DB;
 }