Bouncy Melons 0.2
declarative style orm
Data Structures | Variables
bm\example Namespace Reference

Data Structures

class  Brands
 
class  VBrand
 
class  VCountWineBottles
 
class  VMyPhoneBook
 
class  WineBottle
 
class  WineBottles
 

Variables

 $bm = new \bm\BouncyMelons()
 
 $vm = $bm->getVmBySlug(VMyPhoneBook::getSlug())
 
 $list = $vm->getListModel()
 
 $item = $list->createSingle()
 
 $id = $item->save()
 
 $phone = $item->get('phone')
 
 $items = $list->find(new \bm\FilterAll())
 
 $itemsPerPage = 5
 
 $pageNumber = 3
 
 $filter
 
 $total = $list->getTotal($filter)
 
 $pages = $list->getMaxPages($filter)
 

Variable Documentation

$bm = new \bm\BouncyMelons()

Definition at line 26 of file basic-usage.php.

$filter
Initial value:
= new \bm\FilterPermissive(['name'=>'Sexy'],
)
Examples:
basic-usage.php.

Definition at line 85 of file basic-usage.php.

$id = $item->save()
Examples:
basic-usage.php.

Definition at line 47 of file basic-usage.php.

$item = $list->createSingle()
Examples:
basic-usage.php.

Definition at line 45 of file basic-usage.php.

$items = $list->find(new \bm\FilterAll())
Examples:
basic-usage.php.

Definition at line 64 of file basic-usage.php.

$itemsPerPage = 5
Examples:
basic-usage.php.

Definition at line 83 of file basic-usage.php.

$list = $vm->getListModel()

Definition at line 44 of file basic-usage.php.

$pageNumber = 3
Examples:
basic-usage.php.

Definition at line 84 of file basic-usage.php.

$pages = $list->getMaxPages($filter)
Examples:
basic-usage.php.

Definition at line 91 of file basic-usage.php.

$phone = $item->get('phone')
Examples:
basic-usage.php.

Definition at line 53 of file basic-usage.php.

$total = $list->getTotal($filter)
Examples:
basic-usage.php.

Definition at line 90 of file basic-usage.php.

$vm = $bm->getVmBySlug(VMyPhoneBook::getSlug())
Examples:
basic-usage.php.

Definition at line 43 of file basic-usage.php.