[limb-svn] r6348 - 3.x/trunk/limb/fs/src
svn at limb-project.com
svn at limb-project.com
Mon Oct 1 17:18:32 MSD 2007
Author: pachanga
Date: 2007-10-01 17:18:32 +0400 (Mon, 01 Oct 2007)
New Revision: 6348
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6348
Modified:
3.x/trunk/limb/fs/src/lmbFsTools.class.php
Log:
-- lmbFsTools :: tryFindFileByAlias(..) added, it doesn't throw an exception
Modified: 3.x/trunk/limb/fs/src/lmbFsTools.class.php
===================================================================
--- 3.x/trunk/limb/fs/src/lmbFsTools.class.php 2007-10-01 13:17:18 UTC (rev 6347)
+++ 3.x/trunk/limb/fs/src/lmbFsTools.class.php 2007-10-01 13:18:32 UTC (rev 6348)
@@ -27,6 +27,19 @@
return $locator->locate($alias);
}
+ function tryFindFileByAlias($alias, $paths, $locator_name = null)
+ {
+ try
+ {
+ $file = $this->findFileByAlias($alias, $paths, $locator_name);
+ }
+ catch(lmbFileNotFoundException $e)
+ {
+ return null;
+ }
+ return $file;
+ }
+
function getFileLocator($paths, $locator_name = null)
{
if(!$locator_name)
More information about the limb-svn
mailing list