1. <?php
  2. /**
  3. * Decorator for PEAR_PackageFileManager_Frontend
  4. *
  5. * PHP versions 4 and 5
  6. *
  7. * LICENSE: This source file is subject to version 3.01 of the PHP license
  8. * that is available through the world-wide-web at the following URI:
  9. * http://www.php.net/license/3_01.txt.  If you did not receive a copy of
  10. * the PHP License and are unable to obtain it through the web, please
  11. * send a note to license@php.net so we can mail you a copy immediately.
  12. *
  13. * @category   PEAR
  14. * @package    PEAR_PackageFileManager_Frontend
  15. * @author     Laurent Laville <pear@laurent-laville.org>
  16. * @copyright  2005-2006 Laurent Laville
  17. * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
  18. * @version    CVS: $Id:$
  19. * @since      File available since Release 0.1.0
  20. */
  21.  
  22. require_once 'PEAR/PackageFileManager/Frontend.php';
  23.  
  24. /**
  25. * Decorates any PEAR_PackageFileManager_Frontend class
  26. *
  27. * @category   PEAR
  28. * @package    PEAR_PackageFileManager_Frontend
  29. * @author     Laurent Laville <pear@laurent-laville.org>
  30. * @copyright  2005-2006 Laurent Laville
  31. * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
  32. * @version    Release: @package_version@
  33. * @since      Class available since Release 0.1.0
  34. * @abstract
  35. */
  36.  
  37. class PEAR_PackageFileManager_Frontend_Decorator extends PEAR_PackageFileManager_Frontend
  38. {
  39.     /**
  40.      * An instance PEAR_PackageFileManager_Frontend
  41.      *
  42.      * @var    object
  43.      * @since  0.1.0
  44.      */
  45.     var $fe;
  46.  
  47.     /**
  48.      * Decorator constructor
  49.      *
  50.      * @param  object   $frontend  instance of PEAR_PackageFileManager_Frontend
  51.      * @since  0.1.0
  52.      * @access public
  53.      */
  54.     function PEAR_PackageFileManager_Frontend_Decorator(&$frontend)
  55.     {
  56.         $this->fe =& $frontend;
  57.     }
  58.  
  59.     /**
  60.      * Decorator::getMaintList()
  61.      *
  62.      * @return array
  63.      * @since  0.1.0
  64.      * @access public
  65.      * @see    PEAR_PackageFileManager_Frontend::getMaintList()
  66.      */
  67.     function getMaintList($users)
  68.     {
  69.         return $this->fe->getMaintList($users);
  70.     }
  71.  
  72.     /**
  73.      * Decorator::getFileList()
  74.      *
  75.      * @param  boolean  $default  if we get initial data set at first run
  76.      * @param  boolean  $ignore   Either if you want all files or just ignored
  77.      * @param  string   $plugin   PEAR_PackageFileManager filelist generator
  78.      * @return array
  79.      * @since  0.1.0
  80.      * @access public
  81.      * @see    PEAR_PackageFileManager_Frontend::getFileList()
  82.      */
  83.     function getFileList($default, $ignore, $plugin)
  84.     {
  85.         return $this->fe->getFileList($default, $ignore, $plugin);
  86.     }
  87.  
  88.     /**
  89.      * Decorator::setFileList()
  90.      *
  91.      * @param  string   $plugin   PEAR_PackageFileManager filelist generator
  92.      * @return void
  93.      * @since  0.1.0
  94.      * @access public
  95.      * @see    PEAR_PackageFileManager_Frontend::setFileList()
  96.      */
  97.     function setFileList($plugin)
  98.     {
  99.         $this->fe->setFileList($plugin);
  100.     }
  101.  
  102.     /**
  103.      * Decorator::getDepList()
  104.      *
  105.      * @return array
  106.      * @since  0.1.0
  107.      * @access public
  108.      * @see    PEAR_PackageFileManager_Frontend::getDepList()
  109.      */
  110.     function getDepList()
  111.     {
  112.         return $this->fe->getDepList();
  113.     }
  114.  
  115.     /**
  116.      * Decorator::getRoleList()
  117.      *
  118.      * @return array
  119.      * @since  0.1.0
  120.      * @access public
  121.      * @see    PEAR_PackageFileManager_Frontend::getRoleList()
  122.      */
  123.     function getRoleList($default)
  124.     {
  125.         return $this->fe->getRoleList($default);
  126.     }
  127.  
  128.     /**
  129.      * Decorator::getExceptionList()
  130.      *
  131.      * @return array
  132.      * @since  0.1.0
  133.      * @access public
  134.      * @see    PEAR_PackageFileManager_Frontend::getExceptionList()
  135.      */
  136.     function getExceptionList()
  137.     {
  138.         return $this->fe->getExceptionList();
  139.     }
  140. }
  141. ?>