Static Public Member Functions | |
| static | getFactory ($path, $is_recursion=true, $recurse_level=0) |
Definition at line 5 of file Factory.php.
| static getFactory | ( | $ | path, | |
| $ | is_recursion = true, |
|||
| $ | recurse_level = 0 | |||
| ) | [static] |
return or Varien_Directory_Collection or Varien_File_Object object
| array | $path - path to direcctory | |
| bool | $is_recursion - use or not recursion | |
| int | $recurse_level - recurse level |
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 }
1.5.8