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) | |
setObjectCallback ($aCallbackArray) | |
containsFieldValue ($oVal, $sFieldName) | |
getList () | |
Protected Member Functions | |
_getFieldLongName ($sFieldName) | |
Protected Attributes | |
$_aArray = array() | |
$_sObjectsInListName = 'oxBase' | |
$_sCoreTable = null | |
$_sShopID = null | |
$_aAssignCallbackPrepend = null | |
$_aAssignCallback = null | |
$_aSqlLimit = array() | |
Private Attributes | |
$_oBaseObject = null | |
$_blValid = true |
oxList.__construct | ( | $ | sObjectName = null |
) |
Class Constructor
string | $sObjectName Associated list item object type |
Reimplemented in oxAttributeList, oxCategoryList, oxContentList, oxCountryList, oxDeliveryList, oxDeliverySetList, oxDiscountList, oxPaymentList, oxShopList, oxUserList, and oxVendorList.
oxList.offsetExists | ( | $ | offset | ) |
-----------------------------------------------------------------------------------------------------
Implementation of SPL Array classes functions follows here
----------------------------------------------------------------------------------------------------- implementation of abstract classes for ArrayAccess follow offsetExists for SPL
mixed | $offset SPL array offset |
oxList.offsetGet | ( | $ | offset | ) |
oxList.offsetSet | ( | $ | offset, | |
$ | oBase | |||
) |
offsetSet for SPL
mixed | $offset SPL array offset | |
oxBase | $oBase Array element |
oxList.offsetUnset | ( | $ | offset | ) |
offsetUnset for SPL
mixed | $offset SPL array offset |
oxList.arrayKeys | ( | ) |
Returns SPL array keys
oxList.rewind | ( | ) |
rewind for SPL
oxList.current | ( | ) |
current for SPL
oxList.key | ( | ) |
key for SPL
oxList.next | ( | ) |
next for SPL
oxList.valid | ( | ) |
valid for SPL
oxList.count | ( | ) |
count for SPL
oxList.clear | ( | ) |
clears/destroys list contents
oxList.assign | ( | $ | aArray | ) |
copies a given array over the objects internal array (something like old $myList->aList = $aArray)
array | $aArray array of list items |
oxList.reverse | ( | ) |
returns the array reversed, the internal array remains untouched
oxList.__get | ( | $ | sName | ) |
Backward compatibility method
string | $sName Variable name |
Reimplemented in oxCategoryList.
oxList.getArray | ( | ) |
Returns list items array
oxList.init | ( | $ | sObjectName, | |
$ | sCoreTable = null | |||
) |
Inits list table name and object name.
string | $sObjectName List item object type | |
string | $sCoreTable Db table name this list s selected from |
oxList.setAssignCallbackPrepend | ( | $ | aAssignCallbackPrepend | ) |
Sets function to be called on list object before loading it
array | $aAssignCallbackPrepend |
oxList.setAssignCallback | ( | $ | aAssignCallBack | ) |
Sets function to be called on list object before loading it
array | $aAssignCallbackPrepend |
oxList.getBaseObject | ( | ) |
oxList.selectString | ( | $ | sSql | ) |
Selects and SQL, creates objects and assign them
string | $sSql SQL select statement |
Reimplemented in oxArticleList, and oxCountryList.
oxList.setSqlLimit | ( | $ | iStart, | |
$ | iRecords | |||
) |
oxList.setObjectCallback | ( | $ | aCallbackArray | ) |
Set's callback array for lists objects, will be called upon loadind see call_user_func for more info
array | $aCallbackArray Callback array |
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
mixed | $oVal The searched value | |
string | $sFieldName The name of the field, give "oxid" will access the classname__oxid field |
oxList.getList | ( | ) |
Generic function for getting the list
oxList._getFieldLongName | ( | $ | sFieldName | ) | [protected] |
Returns field long name
string | $sFieldName Field name |
oxList.$_aArray = array() [protected] |
oxList.$_oBaseObject = null [private] |
oxList.$_blValid = true [private] |
oxList.$_sObjectsInListName = 'oxBase' [protected] |
Reimplemented in oxArticleList, oxCategoryList, and oxNewslist.
oxList.$_sCoreTable = null [protected] |
oxList.$_sShopID = null [protected] |
oxList.$_aAssignCallbackPrepend = null [protected] |
oxList.$_aAssignCallback = null [protected] |
oxList.$_aSqlLimit = array() [protected] |