/** * 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 $final_elements this element will handle (optional, defaults to null) */ public function __construct($name, $attributes = null, $final_elements = null) { parent::__construct($name, $attributes, $final_elements); $this->var_array = null; $this->table = null; $this->sql = null; $this->params = null; $this->procparams = null; $this->aliases = array(); $this->fileannotations = array(); $this->counter = 0; }
public function post_process_nested_element(base_nested_element $nested) { // Send close tag to xml_writer $this->writer->end_tag($nested->get_name()); if ($this->progress) { $this->progress->progress(); } }
/** * Set the parent of the optigroup and, at the same time, process all the * condition params in all the childs */ protected function set_parent($element) { parent::set_parent($element); // Force condition param calculation in all children foreach ($this->get_children() as $child) { $child->set_condition($child->get_condition_param(), $child->get_condition_value()); } }