ModelBase API

From Warwick Student Cinema
Revision as of 16:59, 8 November 2009 by Timdavidson (talk | contribs) (New page: An API that should be common to all model classes. Includes core methods that should be available in all classes, and optional methods that provide a common structure for frequently used e...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

An API that should be common to all model classes. Includes core methods that should be available in all classes, and optional methods that provide a common structure for frequently used extensions.

Core API

Static methods

loadByID

get

mixed get(QueryCondition condition)

description

Returns a single object matching the condition. Raises an exception if 0 or more than one object match.

filter

mixed get(QueryCondition condition)

description

Returns a list of objects matching the condition.

Instance methods

save

delete

Common Extensions