protected function get_template($name) { $template = ''; foreach ($this->components as $key => $component) { $template .= ModUI::get_lwte_use($component->get_template_name(ModUI::get_child_name($name, $key)), ModUI::get_child_name($name, $key)); } return $template; }
public function input($name, $value) { if (strlen($name) !== 0) { $result = ModUI::get_name($name); $this->components[$result[0]]->input($result[1], $value); $this->hooks[$result[0]](); } else { foreach ($this->components as $key => $component) { $component->input('', $value[$key]); $this->hooks[$key](); } } }