Back to index

php5  5.3.10
Public Member Functions | Public Attributes
IncludeFiles Class Reference
Inheritance diagram for IncludeFiles:
Inheritance graph
[legend]
Collaboration diagram for IncludeFiles:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __construct ($path, $classes)
 Construct a new array iterator from anything that has a hash table.
 setFlags ($flags)
 Set behavior flags.
 getFlags ()
 asort ()
 Sort the entries by values.
 ksort ()
 Sort the entries by key.
 uasort (mixed cmp_function)
 Sort the entries by values using user defined function.
 uksort (mixed cmp_function)
 Sort the entries by key using user defined function.
 natsort ()
 Sort the entries by values using "natural order" algorithm.
 natcasesort ()
 Sort the entries by values using case insensitive "natural order" algorithm.
 offsetExists ($index)
 offsetGet ($index)
 offsetSet ($index, $newval)
 offsetUnset ($index)
 append ($value)
 getArrayCopy ()
 seek ($position)
 count ()
 rewind ()
 Rewind the Iterator to the first element.
 valid ()
 Check if there is a current element after calls to rewind() or next().
 current ()
 Return the current element.
 key ()
 Return the key of the current element.
 next ()
 Move forward to next element.

Public Attributes

const STD_PROP_LIST = 0x00000001
 Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.)
const ARRAY_AS_PROPS = 0x00000002
 Array indices can be accessed as properties in read/write.

Detailed Description

Definition at line 3 of file examples.inc.


Constructor & Destructor Documentation

IncludeFiles::__construct ( array,
flags 
)

Construct a new array iterator from anything that has a hash table.

That is any Array or Object.

Parameters:
$arraythe array to use.
$flagssee setFlags().

Reimplemented from ArrayIterator.

Definition at line 5 of file examples.inc.

       {
              parent::__construct();
              foreach($classes as $c)
              {
                     $this->append($path . '/' . strtolower($c) . '.inc');
              }
       }

Here is the call graph for this function:


Member Function Documentation

ArrayIterator::append ( value) [inherited]
Parameters:
$valueis appended as last element
Warning:
this method cannot be called when the ArrayIterator refers to an object.

Definition at line 818 of file spl.php.

{}

Here is the caller graph for this function:

ArrayIterator::asort ( ) [inherited]

Sort the entries by values.

Definition at line 773 of file spl.php.

{}
ArrayIterator::count ( ) [inherited]
Returns:
the number of elements in the array or the number of public properties in the object.

Implements Countable.

Definition at line 834 of file spl.php.

{}
ArrayIterator::current ( ) [inherited]

Return the current element.

Implements Iterator.

Reimplemented in SubClasses.

Definition at line 843 of file spl.php.

{}

Here is the caller graph for this function:

ArrayIterator::getArrayCopy ( ) [inherited]
Returns:
a copy of the array
Note:
when the ArrayIterator refers to an object then this method returns an array of the public properties.

Definition at line 824 of file spl.php.

{}
ArrayIterator::getFlags ( ) [inherited]
Returns:
current flags

Definition at line 769 of file spl.php.

{}
ArrayIterator::key ( ) [inherited]

Return the key of the current element.

Implements Iterator.

Definition at line 846 of file spl.php.

{}

Here is the caller graph for this function:

ArrayIterator::ksort ( ) [inherited]

Sort the entries by key.

Definition at line 777 of file spl.php.

{}
ArrayIterator::natcasesort ( ) [inherited]

Sort the entries by values using case insensitive "natural order" algorithm.

Definition at line 793 of file spl.php.

{}

Here is the caller graph for this function:

ArrayIterator::natsort ( ) [inherited]

Sort the entries by values using "natural order" algorithm.

Definition at line 789 of file spl.php.

{}
ArrayIterator::next ( ) [inherited]

Move forward to next element.

Implements Iterator.

Definition at line 849 of file spl.php.

{}
ArrayIterator::offsetExists ( index) [inherited]
Parameters:
$indexoffset to inspect
Returns:
whetehr offset $index esists

Implements ArrayAccess.

Definition at line 798 of file spl.php.

{}
ArrayIterator::offsetGet ( index) [inherited]
Parameters:
$indexoffset to return value for
Returns:
value at offset $index

Implements ArrayAccess.

Definition at line 803 of file spl.php.

{}
ArrayIterator::offsetSet ( index,
newval 
) [inherited]
Parameters:
$indexindex to set
$newvalnew value to store at offset $index

Implements ArrayAccess.

Definition at line 808 of file spl.php.

{}

Here is the caller graph for this function:

ArrayIterator::offsetUnset ( index) [inherited]
Parameters:
$indexoffset to unset

Implements ArrayAccess.

Definition at line 812 of file spl.php.

{}
ArrayIterator::rewind ( ) [inherited]

Rewind the Iterator to the first element.

Implements Iterator.

Definition at line 837 of file spl.php.

{}
ArrayIterator::seek ( position) [inherited]
Parameters:
$positionoffset to seek to
Exceptions:
OutOfBoundsExceptionif $position is invalid

Implements SeekableIterator.

Definition at line 829 of file spl.php.

{}
ArrayIterator::setFlags ( flags) [inherited]

Set behavior flags.

Parameters:
$flagsbitmask as follows: 0 set: properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.) 1 set: array indices can be accessed as properties in read/write

Definition at line 764 of file spl.php.

{}
ArrayIterator::uasort ( mixed  cmp_function) [inherited]

Sort the entries by values using user defined function.

Definition at line 781 of file spl.php.

{}
ArrayIterator::uksort ( mixed  cmp_function) [inherited]

Sort the entries by key using user defined function.

Definition at line 785 of file spl.php.

{}

Here is the caller graph for this function:

ArrayIterator::valid ( ) [inherited]

Check if there is a current element after calls to rewind() or next().

Implements Iterator.

Definition at line 840 of file spl.php.

{}

Member Data Documentation

const ArrayIterator::ARRAY_AS_PROPS = 0x00000002 [inherited]

Array indices can be accessed as properties in read/write.

Definition at line 747 of file spl.php.

const ArrayIterator::STD_PROP_LIST = 0x00000001 [inherited]

Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.)

Definition at line 745 of file spl.php.


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