Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

oxList Class Reference

Inheritance diagram for oxList:
Collaboration diagram for oxList:

List of all members.

Public Member Functions

 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $oBase)
 offsetUnset ($offset)
 arrayKeys ()
 rewind ()
 current ()
 key ()
 next ()
 valid ()
 count ()
 clear ()
 assign ($aArray)
 reverse ()
 __construct ($sObjectName=null)
 __get ($sName)
 getArray ()
 init ($sObjectName, $sCoreTable=null)
 setAssignCallbackPrepend ($aAssignCallbackPrepend)
 setAssignCallback ($aAssignCallBack)
 getBaseObject ()
 selectString ($sSql)
 setSqlLimit ($iStart, $iRecords)
 containsFieldValue ($oVal, $sFieldName)
 getList ()

Protected Member Functions

 _assignElement ($oListObject, $aDbFields)
 _getFieldLongName ($sFieldName)

Protected Attributes

 $_aArray = array()
 $_sObjectsInListName = 'oxBase'
 $_sCoreTable = null
 $_sShopID = null
 $_aAssignCallbackPrepend = null
 $_aAssignCallback = null
 $_aSqlLimit = array()

Private Attributes

 $_oBaseObject = null
 $_blValid = true

Detailed Description

List manager. Collects list data (eg. from DB), performs list changes updating (to DB), etc.

Definition at line 7 of file oxlist.php.


Constructor & Destructor Documentation

oxList.__construct ( sObjectName = null  ) 

Class Constructor

Parameters:
string $sObjectName Associated list item object type

Reimplemented in oxAttributeList, oxCategoryList, oxContentList, oxCountryList, oxDeliveryList, oxDeliverySetList, oxDiscountList, oxManufacturerList, oxPaymentList, oxShopList, oxUserList, and oxVendorList.

Definition at line 269 of file oxlist.php.


Member Function Documentation

oxList.__get ( sName  ) 

Backward compatibility method

Parameters:
string $sName Variable name
Returns:
mixed

Reimplemented in oxCategoryList.

Definition at line 288 of file oxlist.php.

oxList._assignElement ( oListObject,
aDbFields 
) [protected]

Executes assign() method on list object. This method is called in loop in oxList.selectString(). It is if you want to execute any functionality on every list ELEMENT after it is fully loaded (assigned).

Parameters:
oxBase $oListObject List object (the one derived from oxBase)
array $aDbFields An array holding db field values (normaly the result of oxDb.Execute())
Returns:
null;

Reimplemented in oxSimpleVariantList.

Definition at line 479 of file oxlist.php.

oxList._getFieldLongName ( sFieldName  )  [protected]

Returns field long name

Parameters:
string $sFieldName Field name
Returns:
string

Definition at line 491 of file oxlist.php.

oxList.arrayKeys (  ) 

Returns SPL array keys

Returns:
array

Definition at line 114 of file oxlist.php.

oxList.assign ( aArray  ) 

copies a given array over the objects internal array (something like old $myList->aList = $aArray)

Parameters:
array $aArray array of list items
Returns:
null

Definition at line 201 of file oxlist.php.

oxList.clear (  ) 

clears/destroys list contents

Returns:
null;

Definition at line 184 of file oxlist.php.

oxList.containsFieldValue ( oVal,
sFieldName 
)

Function checks if there is at least one object in the list which has the given value in the given field

Parameters:
mixed $oVal The searched value
string $sFieldName The name of the field, give "oxid" will access the classname__oxid field
Returns:
boolean

Definition at line 440 of file oxlist.php.

oxList.count (  ) 

count for SPL

Returns:
integer

Definition at line 174 of file oxlist.php.

oxList.current (  ) 

current for SPL

Returns:
null;

Definition at line 134 of file oxlist.php.

oxList.getArray (  ) 

Returns list items array

Returns:
array

Definition at line 304 of file oxlist.php.

oxList.getBaseObject (  ) 

Initializes or returns existing list template object.

Returns:
oxBase

Definition at line 358 of file oxlist.php.

oxList.getList (  ) 

Generic function for laoding the list

Returns:
null;

Definition at line 457 of file oxlist.php.

oxList.init ( sObjectName,
sCoreTable = null 
)

Inits list table name and object name.

Parameters:
string $sObjectName List item object type
string $sCoreTable Db table name this list s selected from
Returns:
null;

Definition at line 317 of file oxlist.php.

oxList.key (  ) 

key for SPL

Returns:
mixed

Definition at line 144 of file oxlist.php.

oxList.next (  ) 

next for SPL

Returns:
null;

Definition at line 154 of file oxlist.php.

oxList.offsetExists ( offset  ) 

-----------------------------------------------------------------------------------------------------

Implementation of SPL Array classes functions follows here

----------------------------------------------------------------------------------------------------- implementation of abstract classes for ArrayAccess follow offsetExists for SPL

Parameters:
mixed $offset SPL array offset
Returns:
boolean

Definition at line 48 of file oxlist.php.

oxList.offsetGet ( offset  ) 

offsetGet for SPL

Parameters:
mixed $offset SPL array offset
Returns:
oxBase

Definition at line 64 of file oxlist.php.

oxList.offsetSet ( offset,
oBase 
)

offsetSet for SPL

Parameters:
mixed $offset SPL array offset
oxBase $oBase Array element
Returns:
null;

Definition at line 81 of file oxlist.php.

oxList.offsetUnset ( offset  ) 

offsetUnset for SPL

Parameters:
mixed $offset SPL array offset
Returns:
null;

Definition at line 104 of file oxlist.php.

oxList.reverse (  ) 

returns the array reversed, the internal array remains untouched

Returns:
array

Definition at line 211 of file oxlist.php.

oxList.rewind (  ) 

rewind for SPL

Returns:
null;

Definition at line 124 of file oxlist.php.

oxList.selectString ( sSql  ) 

Selects and SQL, creates objects and assign them

Parameters:
string $sSql SQL select statement
Returns:
null;

Reimplemented in oxArticleList.

Definition at line 376 of file oxlist.php.

oxList.setAssignCallback ( aAssignCallBack  ) 

Sets function to be called on list object before loading it

Parameters:
array $aAssignCallBack callback array
Deprecated:
Returns:
null

Definition at line 348 of file oxlist.php.

oxList.setAssignCallbackPrepend ( aAssignCallbackPrepend  ) 

Sets function to be called on list object before loading it

Parameters:
array $aAssignCallbackPrepend callback array
Deprecated:
Returns:
null

Definition at line 334 of file oxlist.php.

oxList.setSqlLimit ( iStart,
iRecords 
)

Sets SQL Limit

Parameters:
integer $iStart Start e.g. limit Start,xxxx
integer $iRecords Nr of Records e.g. limit xxx,Records
Returns:
null;

Definition at line 426 of file oxlist.php.

oxList.valid (  ) 

valid for SPL

Returns:
boolean

Definition at line 164 of file oxlist.php.


Member Data Documentation

array oxList::$_aArray = array() [protected]

Array of objects (some object list).

Definition at line 14 of file oxlist.php.

oxList.$_aAssignCallback = null [protected]

Definition at line 257 of file oxlist.php.

oxList.$_aAssignCallbackPrepend = null [protected]

Definition at line 248 of file oxlist.php.

oxList.$_aSqlLimit = array() [protected]

Definition at line 262 of file oxlist.php.

boolean oxList::$_blValid = true [private]

Flag if array is ok or not

Definition at line 28 of file oxlist.php.

oxList.$_oBaseObject = null [private]

Definition at line 21 of file oxlist.php.

oxList.$_sCoreTable = null [protected]

Definition at line 234 of file oxlist.php.

oxList.$_sObjectsInListName = 'oxBase' [protected]

Reimplemented in oxActionList, oxArticleList, oxCategoryList, oxNewslist, and oxSimpleVariantList.

Definition at line 227 of file oxlist.php.

oxList.$_sShopID = null [protected]

Definition at line 239 of file oxlist.php.


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