| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: view.html.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @subpackage Media 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 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // Check to ensure this file is included in Joomla! 16 defined('_JEXEC') or die( 'Restricted access' ); 17 18 jimport( 'joomla.application.component.view'); 19 20 /** 21 * HTML View class for the WebLinks component 22 * 23 * @static 24 * @package Joomla 25 * @subpackage Media 26 * @since 1.0 27 */ 28 class MediaViewImagesList extends JView 29 { 30 function display($tpl = null) 31 { 32 global $mainframe; 33 34 // Do not allow cache 35 JResponse::allowCache(false); 36 37 $app = JFactory::getApplication(); 38 $append = ''; 39 if ($app->getClientId() == 1) $append = 'administrator/'; 40 41 JHTML::_('behavior.mootools'); 42 JHTML::_('stylesheet', 'popup-imagelist.css', $append .'components/com_media/assets/'); 43 44 $document =& JFactory::getDocument(); 45 $document->addScriptDeclaration("var ImageManager = window.parent.ImageManager;"); 46 47 $this->assign('baseURL', COM_MEDIA_BASEURL); 48 $this->assignRef('images', $this->get('images')); 49 $this->assignRef('folders', $this->get('folders')); 50 $this->assignRef('state', $this->get('state')); 51 52 parent::display($tpl); 53 } 54 55 56 function setFolder($index = 0) 57 { 58 if (isset($this->folders[$index])) { 59 $this->_tmp_folder = &$this->folders[$index]; 60 } else { 61 $this->_tmp_folder = new JObject; 62 } 63 } 64 65 function setImage($index = 0) 66 { 67 if (isset($this->images[$index])) { 68 $this->_tmp_img = &$this->images[$index]; 69 } else { 70 $this->_tmp_img = new JObject; 71 } 72 } 73 }
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 |