/** * @param APPLICATION $context Main application. */ function __construct($context) { parent::__construct($context); $this->append_column(''); // Menu $this->append_column('Name'); $this->append_column('Users', 'numeric'); }
/** * @access private */ protected function _draw_header() { // $class_name = $this->app->final_class_name ('SELECTION_COMMANDS', 'webcore/cmd/selection_commands.php'); // /** @var $commands SELECTION_COMMANDS */ // // $commands = new $class_name ($form, $this->control_name); // // $menu_renderer = $this->app->make_menu_renderer(); // $menu_renderer->set_size(Menu_size_minimal); // $menu_renderer->alignment = Menu_align_inline; // // $menu_renderer->display($commands); $col = '<div>'; $col .= "<a href=\"#\" onclick=\"toggle_selected (document.getElementById('{$this->form_name}')['{$this->control_name}[]']); return false;\" title=\"{$this->toggle_title}\">"; if ($this->toggle_image) { $col .= $this->app->resolve_icon_as_html($this->toggle_image, '', $this->toggle_title); } else { $col .= $this->toggle_title; } $col .= "</a>"; $col .= '</div>'; $this->prepend_column($col); parent::_draw_header(); }