Class Collection
-
XLite\Base\SuperClass
-
XLite\Model\Collection
Namespace: XLite\
Model
Since:
1.0.0
See:
____class_see____
Located at XLite/Model/Collection.php
Methods summary
public
XLite\Model\ListNode
|
#
findByCallbackResult( string $method, array $args = array() )
Search list element using a callback function
Search list element using a callback function
Parameters
- $method
string Some public method of the XLite_Model_ListNode class
- $args
array Callback arguments OPTIONAL
Returns
Since
1.0.0
See
____func_see____
|
public
XLite\Model\ListNode
|
#
findByKey( string $key )
Search list element by its key
Search list element by its key
Parameters
- $key
string Node identifier
Returns
Since
1.0.0
See
____func_see____
|
public
|
#
insertBefore( string $key, Xlite\Model\ListNode $node )
Insert new node before a certain node
Insert new node before a certain node
Parameters
- $key
string Node key to search
- $node
Xlite\Model\ListNode New node to insert
Since
1.0.0
See
____func_see____
|
public
|
#
insertAfter( string $key, Xlite\Model\ListNode $node )
Insert new node after a certain node
Insert new node after a certain node
Parameters
- $key
string Node key to search
- $node
Xlite\Model\ListNode New node to insert
Since
1.0.0
See
____func_see____
|
public
|
#
add( Xlite\Model\ListNode $node )
Add new node to the end of list
Add new node to the end of list
Parameters
- $node
Xlite\Model\ListNode Node to add
Since
1.0.0
See
____func_see____
|
public
Xlite\Model\ListNode
|
#
getHead( )
Return first element of the list
Return first element of the list
Returns
Xlite\Model\ListNode
Since
1.0.0
See
____func_see____
|
public
Xlite\Model\ListNode
|
#
getTail( )
Return last element of the list
Return last element of the list
Returns
Xlite\Model\ListNode
Since
1.0.0
See
____func_see____
|
protected
boolean
|
#
isInitialized( )
Check if list is initialized
Check if list is initialized
Returns
boolean
Since
1.0.0
See
____func_see____
|
Properties summary
protected
XLite_Model_ListNode
|
$head |
null |
#
Start element
Since
1.0.0
See
____var_see____
|
protected
XLite_Model_ListNode
|
$tail |
null |
#
End element
Since
1.0.0
See
____var_see____
|