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.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Array containing all currently loaded records.
|
|
The type of this object.
|
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.
|
|
getRecordById(m_id)
Returns a record from the record array identified by the interal model id.
|
|
getRecordForId(m_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
|
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