Esempio n. 1
0
 /**
  * PlayJoom view display method
  * @return void
  */
 function display($tpl = null)
 {
     if ($this->getLayout() !== 'modal') {
         PlayJoomHelper::addSubmenu('covers');
     }
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     $this->items = $this->get('Items');
     $this->state = $this->get('State');
     $this->filterForm = $this->get('FilterForm');
     $this->activeFilters = $this->get('ActiveFilters');
     $this->pagination = $this->get('Pagination');
     // We don't need toolbar in the modal window.
     if ($this->getLayout() !== 'modal') {
         $this->addToolbar();
         $this->sidebar = JHtmlSidebar::render();
     }
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
 }
Esempio n. 2
0
 /**
  * PlayJoom view display method
  * @return void
  */
 function display($tpl = null)
 {
     if ($this->getLayout() !== 'modal') {
         PlayJoomHelper::addSubmenu('albums');
     }
     // Get data from the model
     $items = $this->get('Items');
     $FilterOptionsArtists = $this->get('FilterOptionsArtists');
     $FilterOptionsGenres = $this->get('FilterOptionsGenres');
     $pagination = $this->get('Pagination');
     //For filter function
     $this->state = $this->get('State');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         //      JError::raiseError(500, implode('<br />', $errors));
         //    return false;
     }
     // Assign data to the view
     $this->items = $items;
     //For filter options
     $this->FilterItemsArtists = $FilterOptionsArtists;
     $this->FilterItemsGenres = $FilterOptionsGenres;
     $this->pagination = $pagination;
     // We don't need toolbar in the modal window.
     if ($this->getLayout() !== 'modal') {
         $this->addToolbar();
         $this->sidebar = JHtmlSidebar::render();
     }
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
     //echo "test aus view Datei: ";
 }
Esempio n. 3
0
 /**
  * Method to display the view
  *
  * @access public
  * @return	void
  */
 function display($tpl = null)
 {
     // Get data from the model
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // For filter function
     $this->state = $this->get('State');
     $this->filterForm = $this->get('FilterForm');
     $this->activeFilters = $this->get('ActiveFilters');
     //Get setting values from xml file
     $this->params = JComponentHelper::getParams('com_playjoom');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     PlayJoomHelper::addSubmenu('audiotracks');
     // We don't need toolbar in the modal window.
     if ($this->getLayout() !== 'modal') {
         $this->addToolbar();
         $this->sidebar = JHtmlSidebar::render();
     }
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
 }