public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->params = $this->state->get("params"); // Get currencies foreach ($this->items as $item) { $currencies[] = $item->txn_currency; $currencies = array_unique($currencies); } if (!empty($currencies)) { jimport("crowdfunding.currencies"); $this->currencies = new CrowdFundingCurrencies(JFactory::getDbo()); $this->currencies->loadByAbbr($currencies); } // Get enabled specefic plugins. jimport("itprism.extensions"); $extensions = new ITPrismExtensions(JFactory::getDbo(), $this->speceficPlugins); $this->enabledSpeceficPlugins = $extensions->getEnabled(); // Add submenu CrowdFundingHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // 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->params = $this->state->get("params"); jimport("crowdfunding.currency"); $currencyId = $this->state->params->get("project_currency"); $this->currency = CrowdFundingCurrency::getInstance(JFactory::getDbo(), $currencyId, $this->params); // Get projects IDs $projectsIds = array(); foreach ($this->items as $item) { $projectsIds[] = $item->id; } // Get number of rewards. jimport("crowdfunding.projects"); $projects = new CrowdFundingProjects(JFactory::getDbo()); $this->rewards = $projects->getRewardsNumber($projectsIds); // Add submenu CrowdFundingHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { $this->state = $this->get('State'); $this->form = $this->get('Form'); $this->importType = $this->state->get("import.context"); switch ($this->importType) { case "locations": $this->legend = JText::_("COM_CROWDFUNDING_IMPORT_LOCATIONS_DATA"); $this->uploadTask = "import.locations"; break; case "countries": $this->legend = JText::_("COM_CROWDFUNDING_IMPORT_COUNTRIES_DATA"); $this->uploadTask = "import.countries"; break; case "states": $this->legend = JText::_("COM_CROWDFUNDING_IMPORT_STATES_DATA"); $this->uploadTask = "import.states"; break; default: // Currencies $this->legend = JText::_("COM_CROWDFUNDING_IMPORT_CURRENCY_DATA"); $this->uploadTask = "import.currencies"; break; } // Add submenu CrowdFundingHelper::addSubmenu($this->importType); // Prepare actions $this->addToolbar(); $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'); // Add submenu CrowdFundingHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // 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'); // Get log files and count them. jimport("crowdfunding.log.files"); $logFiles = new CrowdFundingLogFiles($this->includeFiles); $logFiles->load(); $this->numberLogFilse = count($logFiles); // Add submenu CrowdFundingHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // 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->params = $this->state->get("params"); jimport("crowdfunding.currency"); $currencyId = $this->state->params->get("project_currency"); $this->currency = CrowdFundingCurrency::getInstance(JFactory::getDbo(), $currencyId, $this->params); // Add submenu CrowdFundingHelper::addSubmenu("projects"); $projectId = $this->state->get("project_id"); $this->projectTitle = CrowdFundingHelper::getProjectTitle($projectId); // Prepare sorting data $this->prepareSorting(); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->state = $this->get("State"); $this->params = $this->state->get("params"); $this->version = new CrowdFundingVersion(); // Load ITPrism library version jimport("itprism.version"); if (!class_exists("ITPrismVersion")) { $this->itprismVersion = JText::_("COM_CROWDFUNDING_ITPRISM_LIBRARY_DOWNLOAD"); } else { $itprismVersion = new ITPrismVersion(); $this->itprismVersion = $itprismVersion->getShortVersion(); } // Get popular projects. jimport("crowdfunding.statistics.projects.popular"); $this->popular = new CrowdFundingStatisticsProjectsPopular(JFactory::getDbo()); $this->popular->load(5); // Get popular most funded. jimport("crowdfunding.statistics.projects.mostfunded"); $this->mostFunded = new CrowdFundingStatisticsProjectsMostFunded(JFactory::getDbo()); $this->mostFunded->load(5); // Get latest started. jimport("crowdfunding.statistics.projects.latest"); $this->latestStarted = new CrowdFundingStatisticsProjectsLatest(JFactory::getDbo()); $this->latestStarted->load(5); // Get latest created. $this->latestCreated = new CrowdFundingStatisticsProjectsLatest(JFactory::getDbo()); $this->latestCreated->loadByCreated(5); // Get currency. jimport("crowdfunding.currency"); $currencyId = $this->params->get("project_currency"); $this->currency = CrowdFundingCurrency::getInstance(JFactory::getDbo(), $currencyId, $this->params); // Add submenu CrowdFundingHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }