public function display($tpl = null) { $this->version = new Itpmeta\Version(); // Load Prism library version if (!class_exists("Prism\\Version")) { $this->prismVersion = JText::_("COM_ITPMETA_ITPRISM_LIBRARY_DOWNLOAD"); } else { $prismVersion = new Prism\Version(); $this->prismVersion = $prismVersion->getShortVersion(); if (version_compare($this->prismVersion, $this->version->requiredPrismVersion, "<")) { $this->prismVersionLowerMessage = JText::_("COM_ITPMETA_PRISM_LIBRARY_LOWER_VERSION"); } } $basic = new Itpmeta\Statistics\Basic(JFactory::getDbo()); $this->totalUrls = $basic->getTotalUrls(); $this->totalTags = $basic->getTotalTags(); $this->totalGlobalTags = $basic->getTotalGlobalTags(); // Get latest items. jimport("itpmeta.statistics.urls.latest"); $this->latest = new Itpmeta\Statistics\Urls\Latest(JFactory::getDbo()); $this->latest->load(); // Get urls with scripts. jimport("itpmeta.statistics.urls.scripts"); $this->urlsScripts = new Itpmeta\Statistics\Urls\Scripts(JFactory::getDbo()); $this->urlsScripts->load(array("limit" => 10)); $uri = JUri::getInstance(); $this->domain = $uri->toString(array("scheme", "host")); // Add submenu ItpMetaHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->prepareSorting(); // Add submenu ItpMetaHelper::addSubmenu($this->getName()); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->numbers = $this->get("Numbers"); // Load HTML helper JHtml::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'html'); $this->prepareSorting(); // Add submenu ItpMetaHelper::addSubmenu($this->getName()); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }