FusionDirectory
 All Data Structures Files Functions Variables
Public Member Functions
listingSortIterator Class Reference

This class contains all the function needed to sort list go up, go down , back , next. etc... More...

Inheritance diagram for listingSortIterator:
Inheritance graph
[legend]

Public Member Functions

 __construct ($data, $direction, $attribute, $type= 'string')
 listingSortIterator constructor More...
 
 rewind ()
 Put the array pointer to the first element. More...
 
 current ()
 Get the current data element. More...
 
 key ()
 Get the key element. More...
 
 next ()
 Get the next data element. More...
 
 valid ()
 Check if the data array is valid. More...
 

Detailed Description

This class contains all the function needed to sort list go up, go down , back , next. etc...

Definition at line 31 of file class_listingSortIterator.inc.

Constructor & Destructor Documentation

__construct (   $data,
  $direction,
  $attribute,
  $type = 'string' 
)

listingSortIterator constructor

Parameters
array$datalistingSortIterator data
$directionDirection
$attributeAttribute
string$type

Definition at line 45 of file class_listingSortIterator.inc.

Member Function Documentation

current ( )

Get the current data element.

Returns
The current element pointed by array pointer

Definition at line 140 of file class_listingSortIterator.inc.

key ( )

Get the key element.

Returns
the key element of the array

Definition at line 150 of file class_listingSortIterator.inc.

Referenced by valid().

next ( )

Get the next data element.

Returns
The next element pointed by array pointer

Definition at line 160 of file class_listingSortIterator.inc.

rewind ( )

Put the array pointer to the first element.

Returns
the first element of the array

Definition at line 130 of file class_listingSortIterator.inc.

valid ( )

Check if the data array is valid.

Returns
TRUE if the array is valid, return FALSE otherwise

Definition at line 170 of file class_listingSortIterator.inc.

References key().


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