File: /home/iestorre/informatica/modules/mod_filetree/helper.php
<?php
/**
* @package Joomla.Site
* @subpackage mod_filetree
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
class modFilesHelper
{
/**
* Retrieves the hello message
*
* @param array $params An object containing the module parameters
* @access public
*/
public static function getFiles( $params, $directory, $array )
{
if( empty($array))
{
return php_file_tree($directory, "[link]");
}
else
{
return php_file_tree($directory, "[link]", $array);
}
}
}
?>