Bouncy Melons 0.2
declarative style orm
Public Member Functions | Protected Attributes
DataList Class Reference
Inheritance diagram for DataList:
AutoList Brands WineBottles

Public Member Functions

 __construct (IVModel $vmodel)
 
 getTableName ()
 
 getFields ()
 
 getViewName ()
 
 find (IFilter $filter)
 
 getFieldNames ()
 
 findOne (IFilter $filter)
 
 getTotal (IFilter $filter)
 
 getMaxPages (IFilter $filter)
 
 fullfind (IFilter $filter)
 
 truncate ()
 
 getOne ($id, $column='id')
 
 readOne ($id, $column='id')
 
 createViewIfNeeded ()
 
 createTableIfNeeded ()
 
 declareView ()
 
 createViewAs ($sql)
 
 createJoins ()
 
 createFieldsToSelect ($prefix= '')
 
 titleToSelect ($fieldName, $prefix= '')
 
 getBm ()
 
 getSlug ()
 

Protected Attributes

 $vmodel
 

Detailed Description

Examples:
list.php, and listminimal.php.

Definition at line 5 of file DataList.php.

Constructor & Destructor Documentation

__construct ( IVModel  $vmodel)

Definition at line 9 of file DataList.php.

Member Function Documentation

createFieldsToSelect (   $prefix = '')

Definition at line 207 of file DataList.php.

createJoins ( )

Definition at line 186 of file DataList.php.

createTableIfNeeded ( )

Definition at line 163 of file DataList.php.

createViewAs (   $sql)
Examples:
list.php.

Definition at line 181 of file DataList.php.

createViewIfNeeded ( )

Definition at line 145 of file DataList.php.

declareView ( )

Definition at line 169 of file DataList.php.

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

Definition at line 31 of file DataList.php.

findOne ( IFilter  $filter)

same as find, but return only first element

Parameters
IFilter$filter
Returns
array singular items

Definition at line 72 of file DataList.php.

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

Definition at line 113 of file DataList.php.

getBm ( )
Returns

Definition at line 241 of file DataList.php.

getFieldNames ( )

Definition at line 55 of file DataList.php.

getFields ( )

Definition at line 18 of file DataList.php.

getMaxPages ( IFilter  $filter)
Parameters
IFilter$filter
Returns
int number of pages, for pagination see Filter::setItemsPerPage and Filter::setPage

Definition at line 101 of file DataList.php.

getOne (   $id,
  $column = 'id' 
)

Definition at line 128 of file DataList.php.

getSlug ( )

Definition at line 249 of file DataList.php.

getTableName ( )
Examples:
list.php.

Definition at line 13 of file DataList.php.

getTotal ( IFilter  $filter)
Parameters
IFilter$filter
Returns
int number of items that much the filter

Definition at line 85 of file DataList.php.

getViewName ( )

Definition at line 23 of file DataList.php.

readOne (   $id,
  $column = 'id' 
)

Definition at line 136 of file DataList.php.

titleToSelect (   $fieldName,
  $prefix = '' 
)

Definition at line 232 of file DataList.php.

truncate ( )

truncate table associated with this model, clear all

Definition at line 124 of file DataList.php.

Field Documentation

$vmodel
protected

Definition at line 7 of file DataList.php.


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