[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/fs/src/ -> lmbIncludePathFileLocations.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  lmb_require('limb/fs/src/lmbFileLocations.interface.php');
  10  
  11  /**

  12   * class lmbIncludePathFileLocations.

  13   *

  14   * @package fs

  15   * @version $Id$

  16   */
  17  class lmbIncludePathFileLocations implements lmbFileLocations
  18  {
  19    protected $paths;
  20  
  21    function __construct($paths = array())
  22    {
  23      $this->paths = $paths;
  24    }
  25  
  26    function getLocations($params = array())
  27    {
  28      $resolved = array();
  29      foreach($this->paths as $path)
  30      {
  31        foreach(lmb_glob($path) as $dir)
  32          $resolved[] = $dir;
  33      }
  34      return $resolved;
  35    }
  36  }
  37  
  38  ?>


Generated: Sat Nov 22 03:48:54 2008 Cross-referenced by PHPXref 0.7