Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* HTML View class for the Media component
* @package Joomla.Administrator
public function display($tpl =
null)
return $app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'warning');
JHtml::_('behavior.framework', true);
window.addEvent('domready', function()
window.parent.document.updateUploader();
$$('a.img-preview').each(function(el)
el.addEvent('click', function(e)
window.top.document.preview.fromElement(el);
$images =
$this->get('images');
$documents =
$this->get('documents');
$folders =
$this->get('folders');
$state =
$this->get('state');
// Check for invalid folder name
if (empty($state->folder)) {
$this->images =
&$images;
$this->documents =
&$documents;
$this->folders =
&$folders;
if (isset
($this->folders[$index]))
$this->_tmp_folder =
&$this->folders[$index];
if (isset
($this->images[$index]))
$this->_tmp_img =
&$this->images[$index];
if (isset
($this->documents[$index]))
$this->_tmp_doc =
&$this->documents[$index];
Documentation generated on Tue, 19 Nov 2013 15:18:11 +0100 by phpDocumentor 1.4.3