class DataModel

Representation of a DataModel - a collection of DataLists for each different data type.

Usage: $model = new DataModel; $mainMenu = $model->SiteTree->where('"ParentID" = 0 AND "ShowInMenus" = 1');

Methods

static DataModel
inst()

Get the global DataModel.

static DataModel
set_inst(DataModel $inst)

Set the global DataModel, used when data is requested from static methods.

__get(string $class)

No description

__set(string $class, DataList $item)

No description

Details

at line 33
static DataModel inst()

Get the global DataModel.

Return Value

DataModel

at line 47
static DataModel set_inst(DataModel $inst)

Set the global DataModel, used when data is requested from static methods.

Parameters

DataModel $inst

Return Value

DataModel

at line 56
DataList __get(string $class)

Parameters

string $class

Return Value

DataList

at line 71
__set(string $class, DataList $item)

Parameters

string $class
DataList $item