[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Smarty read include path plugin 4 * 5 * @package Smarty 6 * @subpackage PluginsInternal 7 * @author Monte Ohrt 8 */ 9 10 /** 11 * Smarty Internal Read Include Path Class 12 * 13 * @package Smarty 14 * @subpackage PluginsInternal 15 */ 16 class Smarty_Internal_Get_Include_Path { 17 18 /** 19 * Return full file path from PHP include_path 20 * 21 * @param string $filepath filepath 22 * @return string|boolean full filepath or false 23 */ 24 public static function getIncludePath($filepath) 25 { 26 static $_include_path = null; 27 28 if ($_path_array === null) { 29 $_include_path = explode(PATH_SEPARATOR, get_include_path()); 30 } 31 32 foreach ($_include_path as $_path) { 33 if (file_exists($_path . DS . $filepath)) { 34 return $_path . DS . $filepath; 35 } 36 } 37 38 return false; 39 } 40 41 } 42 43 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |