/** * Render the grid itself. * @param HISTORY_ITEM[] $objects * @access private */ protected function _draw($objects) { foreach ($objects as $obj) { if (isset($this->_last_time)) { $this->_time_diffs[] = $this->_last_time->diff($obj->time_created); } $this->_last_time = $obj->time_created; } parent::_draw($objects); }
protected function _draw($objects) { $class_name = $this->app->final_class_name('SELECTION_COMMANDS', 'webcore/cmd/selection_commands.php'); /** @var $commands SELECTION_COMMANDS */ $commands = new $class_name($this->_form, 'subscriber_ids'); $menu_renderer = $this->app->make_menu_renderer(); $menu_renderer->set_size($this->menu_size); echo '<div class="button-content">'; $menu_renderer->display($commands); echo '</div>'; parent::_draw($objects); }
/** * @param CONTEXT $context Context to which this grid belongs. */ public function __construct($context) { parent::__construct($context); $this->css_class .= ' content-sized-tiles'; $this->box_css_class = 'image-without-text'; }
/** * Show the pager only if not printing. * @param boolean $include_anchor_id If true, renders the id for the * pager. * @access private */ protected function _draw_pager($include_anchor_id) { if ($this->_show_pager) { parent::_draw_pager($include_anchor_id); } }
/** * @param CONTEXT $context Context to which this grid belongs. */ public function __construct($context) { parent::__construct($context); $this->css_class .= ' tiny-tiles'; }
/** * @param CONTEXT $context Context to which this grid belongs. */ public function __construct($context) { parent::__construct($context); }