Source for file list.php
Documentation is available at list.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
jimport('joomla.filesystem.folder');
* Media Component List Model
* @package Joomla.Administrator
public function getState($property =
null, $default =
null)
$folder =
$input->get('folder', '', 'path');
$parent =
($parent ==
'.') ?
null :
$parent;
return parent::getState($property, $default);
* @param string $listFolder The image directory to display
// Only process the list once per request
// Get current path from request
// If undefined, set to empty
if ($current ==
'undefined')
// Get the list of files and folders from the given folder
// Iterate over the files if they exist
foreach ($fileList as $file)
$tmp->path_relative =
str_replace($mediaBase, '', $tmp->path);
$tmp->height =
@$info[1];
$tmp->mime =
@$info['mime'];
if (($info[0] >
60) ||
($info[1] >
60))
$tmp->width_60 =
$dimensions[0];
$tmp->height_60 =
$dimensions[1];
$tmp->width_60 =
$tmp->width;
$tmp->height_60 =
$tmp->height;
if (($info[0] >
16) ||
($info[1] >
16))
$tmp->width_16 =
$dimensions[0];
$tmp->height_16 =
$dimensions[1];
$tmp->width_16 =
$tmp->width;
$tmp->height_16 =
$tmp->height;
$tmp->icon_32 =
"media/mime-icon-32/".
$ext.
".png";
$tmp->icon_16 =
"media/mime-icon-16/".
$ext.
".png";
// Iterate over the folders if they exist
if ($folderList !==
false)
foreach ($folderList as $folder)
$tmp->path_relative =
str_replace($mediaBase, '', $tmp->path);
$tmp->folders =
$count[1];
$list =
array('folders' =>
$folders, 'docs' =>
$docs, 'images' =>
$images);
Documentation generated on Tue, 19 Nov 2013 15:07:15 +0100 by phpDocumentor 1.4.3