Path

ez components / documentation / api reference / trunk / base


eZ Components trunk

Base: ezcBaseFileFindContext

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcBaseFileFindContext

Struct which defines the information collected by the file walker for locating files. [source]

Parents

ezcBaseStruct
   |
   --ezcBaseFileFindContext

Member Variables

public int $count
The number of files
public array(string) $elements
The list of files
public int $size
The total file size of all files found

Method Summary

public ezcBaseFileFindContext __construct( [$elements = array()], [$count = 0], [$size = 0] )
Constructs a new ezcBaseFileFindContext with initial values.
public static ezcBaseFileFindContext __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcBaseFileFindContext __construct( [array(string) $elements = array()], [int $count = 0], [int $size = 0] )
Constructs a new ezcBaseFileFindContext with initial values.

Parameters

Name Type Description
$elements array(string)  
$count int  
$size int  

__set_state

ezcBaseFileFindContext __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed)  

Last updated: Mon, 21 Dec 2009