| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 lmb_require('limb/toolkit/src/lmbAbstractTools.class.php'); 10 lmb_require('limb/fs/src/lmbFileLocator.class.php'); 11 lmb_require('limb/fs/src/lmbCachingFileLocator.class.php'); 12 lmb_require('limb/fs/src/lmbIncludePathFileLocations.class.php'); 13 14 /** 15 * class lmbFsTools. 16 * 17 * @package fs 18 * @version $Id$ 19 */ 20 class lmbFsTools extends lmbAbstractTools 21 { 22 protected $file_locators = array(); 23 24 function findFileAlias($name, $paths, $files_group) 25 { 26 $locator = $this->toolkit->getFileLocator($paths, $files_group); 27 return $locator->locate($name); 28 } 29 30 function getFileLocator($path, $files_group) 31 { 32 if(isset($this->file_locators[$path][$files_group])) 33 return $this->file_locators[$path][$files_group]; 34 35 $file_locations = new lmbIncludePathFileLocations(explode(';', $path)); 36 37 if(defined('LIMB_VAR_DIR')) 38 $locator = new lmbCachingFileLocator(new lmbFileLocator($file_locations), 39 LIMB_VAR_DIR . '/locators/', 40 $files_group); 41 else 42 $locator = new lmbFileLocator($file_locations); 43 44 $this->file_locators[$path][$files_group] = $locator; 45 return $locator; 46 } 47 } 48 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Oct 12 04:41:30 2008 | Cross-referenced by PHPXref 0.7 |