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/lib/VFS/Browser.php,v 1.1.2.3 2009/01/06 15:23:47 jan Exp $
  6.  *
  7.  * Copyright 2002-2009 The Horde Project (http://www.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.  * @package VFS
  14.  */
  15. class VFS_Browser {
  16.  
  17.     /**
  18.      * The VFS instance that we are browsing.
  19.      *
  20.      * @var VFS 
  21.      */
  22.     var $_vfs;
  23.  
  24.     /**
  25.      * The directory where the templates to use are.
  26.      *
  27.      * @var string 
  28.      */
  29.     var $_templates;
  30.  
  31.     /**
  32.      * Constructor
  33.      *
  34.      * @param VFS &$vfs          A VFS object.
  35.      * @param string $templates  TODO
  36.      */
  37.     function VFS_Browser(&$vfs$templates)
  38.     {
  39.         if (isset($vfs)) {
  40.             $this->_vfs $vfs;
  41.         }
  42.         $this->_templates $templates;
  43.     }
  44.  
  45.     /**
  46.      * Set the VFS object in the local object.
  47.      *
  48.      * @param VFS &$vfs  A VFS object.
  49.      */
  50.     function setVFSObject(&$vfs)
  51.     {
  52.         $this->_vfs &$vfs;
  53.     }
  54.  
  55.     /**
  56.      * TODO
  57.      *
  58.      * @param string $path       TODO
  59.      * @param boolean $dotfiles  TODO
  60.      * @param boolean $dironly   TODO
  61.      */
  62.     function getUI($path$dotfiles = false$dironly = false)
  63.     {
  64.         $this->_vfs->listFolder($path$dotfiles$dironly);
  65.     }
  66.  
  67. }

Documentation generated on Mon, 11 Mar 2019 15:34:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.