Developer   API   User Interface   Model

Model

Model definition class. It contain model data handling

Properties

  • dirty(v) : Boolean
    Flag to check if data are dirty. If data has been changed flag is set to true.
  • loaded(v) : Boolean
    If model is created flag is set to false, if model was loaded from DB or JSON file flag is set to true.
  • undefined(k,v) : Any
    Make data value availaible as property of model.

Methods

  • create(cls,args ..) : Object
    Function to Create class
  • load(cls,args ..) : Object
    Function to Create and load class.
  • save() : Model
    Method to save data into storage
  • this() : Model
    Contructor.