Methods summary
public
none
|
#
__construct( string $path, boolean $isRecursion = true, mixed $recursionLevel = 0 )
Constructor
Parameters
- $path
string $path - path to directory
- $isRecursion
boolean $is_recursion - use or not recursion
- $recursionLevel
Returns
none
|
public
string
|
#
getDirName( )
Get name of this directory
Get name of this directory
Returns
string - name of this directory
|
public
boolean
|
#
getRecursion( )
Get recursion
Returns
boolean - is or not recursion
|
public
integer
|
|
public
string
|
#
getPath( )
Get path
Returns
string - path to this directory
|
public
none
|
#
setPath( string $path, boolean $isRecursion = '' )
Set path to this directory
Set path to this directory
Parameters
- $path
string $path - path to this directory
- $isRecursion
boolean $isRecursion - use or not recursion
Returns
none
|
public
none
|
#
setRecursion( boolean $isRecursion )
Set recursion
Parameters
- $isRecursion
boolean $isRecursion - use or not recursion
Returns
none
|
public
none
|
#
setRecursionLevel( integer $recursionLevel )
Set level of recursion
Parameters
- $recursionLevel
integer $recursionLevel - level of recursion
Returns
none
|
public
string
|
#
lastDir( )
get latest dir in the path
get latest dir in the path
Returns
string - latest dir in the path
|
public static
string
|
#
getLastDir( string $path )
get latest dir in the path
get latest dir in the path
Parameters
- $path
string $path - path to directory
Returns
string - latest dir in the path
|
public
none
|
#
addItem( IFactory $item )
add item to collection
Parameters
- $item
IFactory $item - item of collection
Returns
none
|
protected
none
|
#
parseDir( )
parse this directory
Returns
none
|
public static
|
#
getFactory( mixed $path, mixed $is_recursion = true, mixed $recurse_level = 0 )
|
public
none
|
#
useFilter( boolean $useFilter )
set filter using
Parameters
- $useFilter
boolean $useFilter - filter using
Returns
none
|
public
array
|
#
filesName( )
get files names of current collection
get files names of current collection
Returns
array - files names of current collection
|
public
none
|
#
getFilesName( array & $files )
get files names of current collection
get files names of current collection
Parameters
- $files
array $files - array of files names
Returns
none
|
public
array
|
#
filesPaths( )
get files paths of current collection
get files paths of current collection
Returns
array - files paths of current collection
|
public
none
|
#
getFilesPaths( array & $paths )
get files paths of current collection
get files paths of current collection
Parameters
- $paths
array $files - array of files paths
Returns
none
|
public
array
|
#
filesObj( )
get SplFileObject objects of files of current collection
get SplFileObject objects of files of current collection
Returns
array - array of SplFileObject objects
|
public
none
|
#
getFilesObj( array & $objs )
get SplFileObject objects of files of current collection
get SplFileObject objects of files of current collection
Parameters
- $objs
array $objs - array of SplFileObject objects
Returns
none
|
public
array
|
#
dirsName( )
get names of dirs of current collection
get names of dirs of current collection
Returns
array - array of names of dirs
|
public
none
|
#
getDirsName( array & $dirs )
get names of dirs of current collection
get names of dirs of current collection
Parameters
- $dirs
array $dirs - array of names of dirs
Returns
none
|
protected
none
|
#
setFilesFilter( array $filter )
set filters for files
Parameters
- $filter
array $filter - array of filters
Returns
none
|
public
array
|
#
__toArray( )
display this collection as array
display this collection as array
Returns
array
|
public
none
|
#
toArray( array $arrRequiredFields = array() )
display this collection as array
display this collection as array
Parameters
- $arrRequiredFields
array &$arr - this collection array
Returns
none
|
public
none
|
#
__toXml( boolean $addOpenTag = true, string $rootName = 'Struct' )
get this collection as xml
get this collection as xml
Parameters
- $addOpenTag
boolean $addOpenTag - add or not header of xml
- $rootName
string $rootName - root element name
Returns
none
|
public
none
|
#
toXml( )
get this collection as xml
get this collection as xml
Returns
none
|
protected
none
|
|
public
none
|
#
addFilter( mixed $field, mixed $value, mixed $type = 'and' )
|
public
|
|
public
|
|
public
Varien_Data_Collection
|
#
loadData( mixed $printQuery = false, mixed $logQuery = false )
Load data
Returns
Varien_Data_Collection
|
public
Varien_Data_Collection
|
#
load( mixed $printQuery = false, mixed $logQuery = false )
Load data
Returns
Varien_Data_Collection
|
public
Varien_Data_Collection
|
#
clear( )
Clear collection
Returns
Varien_Data_Collection
|
public
boolean
|
#
isLoaded( )
Retrieve collection loading status
Retrieve collection loading status
Returns
boolean
|
protected
unknown
|
#
_setIsLoaded( unknown_type $flag = true )
Set collection loading status flag
Set collection loading status flag
Parameters
Returns
unknown
|
public
array
|
#
walk( string $callback, array $args = array() )
Walk through the collection and run model method or external callback with
optional arguments
Walk through the collection and run model method or external callback with
optional arguments
Returns array with results of callback for each item
Parameters
- $callback
string $method
- $args
array $args
Returns
array
|
public
array
|
#
getItems( )
Retrieve collection items
Retrieve collection items
Returns
array
|