/com_joomleague/components/com_joomleague/controllers/playground.php
https://gitlab.com/volleyuisp/joomleague · PHP · 64 lines · 39 code · 9 blank · 16 comment · 4 complexity · d5c199c898462178ff51b40b26126780 MD5 · raw file
- <?php
- /**
- * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved.
- * @license GNU/GPL,see LICENSE.php
- * Joomla! is free software. This version may have been modified pursuant
- * to the GNU General Public License,and as distributed it includes or
- * is derivative of works licensed under the GNU General Public License or
- * other free or open source software licenses.
- * See COPYRIGHT.php for copyright notices and details.
- */
- // Check to ensure this file is included in Joomla!
- defined('_JEXEC') or die('Restricted access');
- jimport('joomla.application.component.controller');
- class JoomleagueControllerPlayground extends JoomleagueController
- {
- public function display($cachable = false, $urlparams = false)
- {
- // Get the view name from the query string
- $viewName = JRequest::getVar( "view", "playground" );
- // Get the view
- $view = $this->getView( $viewName );
- // Get the joomleague model
- $jl = $this->getModel( "joomleague", "JoomleagueModel" );
- $jl->set( "_name", "joomleague" );
- if (!JError::isError( $jl ) )
- {
- $view->setModel ( $jl );
- }
- // Get the playground model
- $pg = $this->getModel( "playground", "JoomleagueModel" );
- $pg->set( "_name", "playground" );
- if (!JError::isError( $pg ) )
- {
- $view->setModel ( $pg );
- }
- // Get the countries model
- $cn = $this->getModel( "countries", "JoomleagueModel" );
- $cn->set( "_name", "countries" );
- if (!JError::isError( $cn ) )
- {
- $view->setModel ( $cn );
- }
- // Get the Google map model
- $gm = $this->getModel( "googlemap", "JoomleagueModel" );
- $gm->set( "_name", "googlemap" );
- if (!JError::isError( $gm ) )
- {
- $view->setModel ( $gm );
- }
- $this->showprojectheading();
- $view->display();
- $this->showbackbutton();
- $this->showfooter();
- }
- }