1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<?php
/**
* Class for providing a generic UI for any VFS instance.
*
* $Horde: framework/VFS/VFS/Browser.php,v 1.8.10.1 2005/01/03 12:19:20 jan Exp $
*
* Copyright 2002-2005 Chuck Hagenbuch <chuck@horde.org>
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @version $Revision: 1.8.10.1 $
* @since Horde 2.2
* @package VFS
*/
class VFS_Browser {
/**
* The VFS instance that we are browsing.
*
* @var object VFS $_vfs
*/
var $_vfs;
/**
* The directory where the templates to use are.
*
* @var string $_templates
*/
var $_templates;
/**
* Constructor
*
* @access public
*
* @param object VFS &$vfs A VFS object.
* @param string $templates TODO
*/
function VFS_Browser(&$vfs, $templates)
{
if (isset($vfs)) {
$this->_vfs = $vfs;
}
$this->_templates = $templates;
}
/**
* Set the VFS object in the local object.
*
* @access public
*
* @param object VFS &$vfs A VFS object.
*/
function setVFSObject(&$vfs)
{
$this->_vfs = &$vfs;
}
/**
* TODO
*
* @access public
*
* @param string $path TODO
* @param optional boolean $dotfiles TODO
* @param optional boolean $dironly TODO
*/
function getUI($path, $dotfiles = false, $dironly = false)
{
$this->_vfs->listFolder($path, $dotfiles, $dironly);
}
}
|