Varien_Directory_Factory Class Reference

List of all members.

Static Public Member Functions

static getFactory ($path, $is_recursion=true, $recurse_level=0)


Detailed Description

Definition at line 5 of file Factory.php.


Member Function Documentation

static getFactory ( path,
is_recursion = true,
recurse_level = 0 
) [static]

return or Varien_Directory_Collection or Varien_File_Object object

Parameters:
array $path - path to direcctory
bool $is_recursion - use or not recursion
int $recurse_level - recurse level
Returns:
IFactor - Varien_Directory_Collection or Varien_File_Object object

Definition at line 14 of file Factory.php.

00015     {
00016         if(is_dir($path)){
00017             $obj = new Varien_Directory_Collection($path,$is_recursion,$recurse_level+1);
00018             return $obj;
00019         } else {
00020             return new Varien_File_Object($path);
00021         }
00022     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:25:01 2009 for Magento by  doxygen 1.5.8