Source for file view.html.php

Documentation is available at view.html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_media
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * HTML View class for the Media component
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_media
  17.  * @since       1.0
  18.  */
  19. {
  20.     public function display($tpl null)
  21.     {
  22.         // Do not allow cache
  23.         JFactory::getApplication()->allowCache(false);
  24.  
  25.         $lang    JFactory::getLanguage();
  26.  
  27.         JHtml::_('stylesheet''media/popup-imagelist.css'array()true);
  28.         if ($lang->isRTL()) {
  29.             JHtml::_('stylesheet''media/popup-imagelist_rtl.css'array()true);
  30.         }
  31.  
  32.         $document JFactory::getDocument();
  33.         $document->addScriptDeclaration("var ImageManager = window.parent.ImageManager;");
  34.  
  35.         $images $this->get('images');
  36.         $folders $this->get('folders');
  37.         $state $this->get('state');
  38.  
  39.         $this->baseURL COM_MEDIA_BASEURL;
  40.         $this->images &$images;
  41.         $this->folders &$folders;
  42.         $this->state &$state;
  43.  
  44.         parent::display($tpl);
  45.     }
  46.  
  47.     function setFolder($index 0)
  48.     {
  49.         if (isset($this->folders[$index]))
  50.         {
  51.             $this->_tmp_folder &$this->folders[$index];
  52.         }
  53.         else
  54.         {
  55.             $this->_tmp_folder new JObject;
  56.         }
  57.     }
  58.  
  59.     function setImage($index 0)
  60.     {
  61.         if (isset($this->images[$index]))
  62.         {
  63.             $this->_tmp_img &$this->images[$index];
  64.         }
  65.         else
  66.         {
  67.             $this->_tmp_img new JObject;
  68.         }
  69.     }
  70. }

Documentation generated on Tue, 19 Nov 2013 15:18:07 +0100 by phpDocumentor 1.4.3