english/administrator/components/com_cache/controller.php
/**
	 * @param	boolean			If true, the view output will be cached
	 * @param	array			An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
	 *
	 * @return	JController		This object to support chaining.
	 * @since	1.5
	 */
@param       boolean                 If true, the view output will be cached
@param       array                   An array of safe url parameters and their variable types, for valid values see  JFilterInput::clean().

@return      JController             This object to support chaining.
@param boolean If true the view output will be cached @param array An array of safe url parameters and their variable types for valid values see JFilterInput :: clean () . @return JController This object to support chaining .
public function display($cachable = false, $urlparams = false)
	{
		require_once JPATH_COMPONENT.'/helpers/cache.php';
		$document	= JFactory::getDocument();
		$vName		= JRequest::getCmd('view', 'cache');
		$vFormat	= $document->getType();
		$lName		= JRequest::getCmd('layout', 'default');
		if ($view = $this->getView($vName, $vFormat))
		{
			switch ($vName)
			{
				case 'purge':
					break;
				case 'cache':
				default:
					$model = $this->getModel($vName);
					$view->setModel($model, true);
					break;
			}
			$view->setLayout($lName);
			$view->assignRef('document', $document);
			CacheHelper::addSubmenu(JRequest::getCmd('view', 'cache'));
			$view->display();
		}
	}
public function display ( $ cachable = false , $ urlparams = false ) { require_once JPATH_COMPONENT . '/helpers/cache.php' ; $ document = JFactory :: getDocument ( ) ; $ vName = JRequest :: getCmd ( 'view' , 'cache' ) ; $ vFormat = $ document -> getType ( ) ; $ lName = JRequest :: getCmd ( 'layout' , 'default' ) ; if ( $ view = $ this -> getView ( $ vName , $ vFormat ) ) { switch ( $ vName ) { case 'purge' : break ; case 'cache' : default : $ model = $ this -> getModel ( $ vName ) ; $ view -> setModel ( $ model , true ) ; break ; } $ view -> setLayout ( $ lName ) ; $ view -> assignRef ( 'document' , $ document ) ; CacheHelper :: addSubmenu ( JRequest :: getCmd ( 'view' , 'cache' ) ) ; $ view -> display ( ) ; } }
@param       boolean                 If true, the view output will be cached
 @param       array                   An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
@param boolean If true the view output will be cached @param array An array of safe url parameters and their variable types for valid values see { @link JFilterInput :: clean () } .
// Get the document object. // Set the default view name and format from the Request. // Get and render the view. // Push document object into the view. // Load the submenu.