| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: media.php 8660 2007-08-30 23:53:21Z louis $ 4 * @package Joomla 5 * @subpackage Massmail 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant to the 9 * GNU General Public License, and as distributed it includes or is derivative 10 * of works licensed under the GNU General Public License or other free or open 11 * source software licenses. See COPYRIGHT.php for copyright notices and 12 * details. 13 */ 14 15 // no direct access 16 defined('_JEXEC') or die('Restricted access'); 17 18 jimport( 'joomla.application.component.controller' ); 19 20 /** 21 * Media Manager Component Controller 22 * 23 * @package Joomla 24 * @subpackage Media 25 * @version 1.5 26 */ 27 class MediaController extends JController 28 { 29 /** 30 * Display the view 31 */ 32 function display() 33 { 34 global $mainframe; 35 36 $vName = JRequest::getCmd('view', 'images'); 37 switch ($vName) 38 { 39 case 'imagesList': 40 $mName = 'list'; 41 $vLayout = JRequest::getCmd( 'layout', 'default' ); 42 43 break; 44 45 case 'images': 46 default: 47 $vLayout = JRequest::getCmd( 'layout', 'default' ); 48 $mName = 'manager'; 49 $vName = 'images'; 50 51 break; 52 } 53 54 $document = &JFactory::getDocument(); 55 $vType = $document->getType(); 56 57 // Get/Create the view 58 $view = &$this->getView( $vName, $vType); 59 $view->addTemplatePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'views'.DS.strtolower($vName).DS.'tmpl'); 60 61 // Get/Create the model 62 if ($model = &$this->getModel($mName)) { 63 // Push the model into the view (as default) 64 $view->setModel($model, true); 65 } 66 67 // Set the layout 68 $view->setLayout($vLayout); 69 70 // Display the view 71 $view->display(); 72 } 73 74 function ftpValidate() 75 { 76 // Set FTP credentials, if given 77 jimport('joomla.client.helper'); 78 JClientHelper::setCredentialsFromRequest('ftp'); 79 } 80 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |