Bouncy Melons 0.2
declarative style orm
Public Member Functions
IList Interface Reference
Inheritance diagram for IList:
AutoList

Public Member Functions

 createSingle ()
 
 getOne ($id, $column='id')
 
 find (IFilter $filter)
 
 findOne (IFilter $filter)
 
 getTotal (IFilter $filter)
 
 getMaxPages (IFilter $filter)
 
 fullfind (IFilter $filter)
 

Detailed Description

Definition at line 5 of file IList.php.

Member Function Documentation

createSingle ( )
Returns
ISingle

Implemented in AutoList.

find ( IFilter  $filter)
Parameters
IFilter$filter
Returns
array singular items
findOne ( IFilter  $filter)

same as find, but return only first element

Parameters
IFilter$filter
Returns
array singular items
fullfind ( IFilter  $filter)

same as find() but also return count of returned items and pages count

list($items, $total, $pages) = $list->fullfind(new (['name'=>'Sexy']), $pageNumber, $itemsPerPage));

Parameters
IFilter$filterfilter instance
getMaxPages ( IFilter  $filter)
Parameters
IFilter$filter
Returns
int number of pages, for pagination see Filter::setItemsPerPage and Filter::setPage
getOne (   $id,
  $column = 'id' 
)

get single item by id or other unique column

Parameters
$id
$column(optional)
Returns
ISingle
getTotal ( IFilter  $filter)
Parameters
IFilter$filter
Returns
int number of items that much the filter

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