active_filter = $active_filter; $this->buttons = $buttons; $this->filters = $filters; } public function html_main() { echo '
'; foreach ($this->buttons as $button) echo ' ', $button['caption'], ''; if (!empty($this->filters)) { echo ' '; } echo '
'; } }