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

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