Difference between revisions of "ModelBase API"

From Warwick Student Cinema
Jump to: navigation, search
(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...)
 
m
Line 27: Line 27:
   
 
==Common Extensions==
 
==Common Extensions==
  +
  +
  +
[[Category:API_Reference]]
  +
[[Category:Website_Version_3]]

Revision as of 20:28, 8 November 2009

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