The object's data.
Search the array for this object and return the corresponding index.
If strict is false, is() is used to compare. If strict is true,
equals() is used.
The array to search.
Optionalstrict: booleanWhether to use stronger comparison.
The index if the object is in the array, -1 if it isn't.
Delete the object from storage.
True on success, false on failure.
Perform a more strict comparison of this object to another.
The object to compare.
True or false.
Check whether this object is in an array.
If strict is false, is() is used to compare. If strict is true,
equals() is used.
The array to search.
Optionalstrict: booleanWhether to use stronger comparison.
True if the object is in the array, false if it isn't.
Perform a less strict comparison of this object to another.
The object to compare.
True or false.
Save the object's dirty data to storage.
True on success, false on failure.
Refresh the object from storage. (Bypasses Nymph's cache.)
If the object has been deleted from storage, the database cannot be
reached, or a database error occurs, refresh() will return 0.
False if the data has not been saved, 0 if it can't be refreshed, true on success.
Save the object to storage.
True on success, false on failure.
Data Object interface.
Objects which hold data from some type of storage.