Download the PHP package boomcms/orm-mptt without Composer
On this page you can find all versions of the php package boomcms/orm-mptt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package orm-mptt
MPTT Library, extends ORM
Setup
Place module in /modules/ and include the call in your bootstrap.
Declaring your ORM object
class Model_Category extends ORM_MPTT {
}
Usage Examples
Creating a root node:
$cat = ORM::factory('Category_Mptt');
$cat->name = 'Music';
$cat->insert_as_new_root();
echo 'Category ID'.$mptt->id.' set at level '.$cat->lvl.' (scope: '.$cat->scope.')';
$c1 = $cat; // Saving id for next example
Creating a child node:
$cat->clear(); // Clearing ORM object
$cat->name = 'Terminology';
$cat->insert_as_last_child($c1);
All versions of orm-mptt with dependencies
PHP Build Version
Package Version
Requires
kohana/orm Version
3.3.*
The package boomcms/orm-mptt contains the following files
Loading the files please wait ....