MvcLite\ModelAbstract

Abstract Model

Synopsis

class ModelAbstract extends ObjectAbstract {
  • // methods
  • public abstract array toArray()
  • public abstract array getFields()
  • // Inherited methods from ObjectAbstract
  • public final void __get()
  • public final void __set()
  • public final void __call()
  • public void __toString()
  • public string identify()
}

Hierarchy

Coverage

Methods 100% 2 / 2
Lines 0% 0 / 0

Constants

Name Value
MSG_ERR_IDENTIFY 'Descendents must implement the identify method'

Methods

public

  • getFields() — Getter for the fields in the model.
  • toArray() — Gets an array representation of the model.

Inherited from MvcLite\ObjectAbstract

public

  • __call() — Overriding the __call magic method
  • __get() — Overriding the __get magic method
  • __set() — Overriding the __set magic method
  • __toString() — returns a string representation of the object
  • identify() — method used to identify the object instance

History