VFS
[ class tree: VFS ] [ index: VFS ] [ all elements ]

Source for file Browser.php

Documentation is available at Browser.php

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

Documentation generated on Mon, 11 Mar 2019 14:31:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.