Class Index | File Index

Classes


Class M.RecordManager


Extends M.Object.
The root object for RecordManager. A RecordManager is used by a controllers and is an interface that makes it easy for him to handle his model records.
Defined in: record_manager.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
Array containing all currently loaded records.
 
The type of this object.
Method Summary
Method Attributes Method Name and Description
 
add(record)
Add the given model to the modelList.
 
addMany(record)
Concats an array if records to the records array.
 
Debug method to print out all content from the records array to the console.
 
Returns a record from the record array identified by the interal model id.
 
Returns a record from the record array identified by the interal model id.
 
remove(m_id)
Deletes a model record from the record array
 
Resets record list
Methods borrowed from class M.Object:
bindToCaller, create, destroy, extend, get, include, set
Class Detail
M.RecordManager()
Field Detail
{Object} records
Array containing all currently loaded records.

{String} type
The type of this object.
Method Detail
add(record)
Add the given model to the modelList.
Parameters:
{Object} record

addMany(record)
Concats an array if records to the records array.
Parameters:
{Object} record

dumpRecords()
Debug method to print out all content from the records array to the console.

getRecordById(m_id)
Returns a record from the record array identified by the interal model id.
Parameters:
{Number} m_id
The internal model id of the model record.

getRecordForId(m_id)
Returns a record from the record array identified by the interal model id.
Parameters:
{Number} m_id
The internal model id of the model record.

remove(m_id)
Deletes a model record from the record array
Parameters:
{Number} m_id
The internal model id of the model record.

removeAll()
Resets record list

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 25 2012 20:41:10 GMT+0100 (MEZ)