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. class MediaViewImages extends JViewLegacy
  20. {
  21.     public function display($tpl null)
  22.     {
  23.         $config JComponentHelper::getParams('com_media');
  24.         $lang    JFactory::getLanguage();
  25.  
  26.         JHtml::_('behavior.framework'true);
  27.         JHtml::_('script''media/popup-imagemanager.js'truetrue);
  28.         JHtml::_('stylesheet''media/popup-imagemanager.css'array()true);
  29.  
  30.         if ($lang->isRTL())
  31.         {
  32.             JHtml::_('stylesheet''media/popup-imagemanager_rtl.css'array()true);
  33.         }
  34.  
  35.         /*
  36.          * Display form for FTP credentials?
  37.          * Don't set them here, as there are other functions called before this one if there is any file write operation
  38.          */
  39.         $ftp !JClientHelper::hasCredentials('ftp');
  40.  
  41.         $this->session JFactory::getSession();
  42.         $this->config $config;
  43.         $this->state $this->get('state');
  44.         $this->folderList $this->get('folderList');
  45.         $this->require_ftp $ftp;
  46.  
  47.         parent::display($tpl);
  48.     }
  49. }

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