MvcLite\Controller

Base Controller

Synopsis

class Controller extends ObjectAbstract {
  • // Inherited methods from ObjectAbstract
  • public final void __get()
  • public final void __set()
  • public final void __call()
  • public void __toString()
  • public string identify()
  • // Inherited methods from Request
  • public Request getRequest()
  • // Inherited methods from Response
  • public Response getResponse()
  • // Inherited methods from Session
  • public Session getSession()
  • // Inherited methods from Filepath
  • public Request filepath()
  • // Inherited methods from View
  • public View getView()
}

Hierarchy

Coverage

Methods 100% 3 / 3
Lines 100% 13 / 13

Constants

Name Value
MSG_ERR_IDENTIFY 'Descendents must implement the identify method'

Members

protected

Methods

public

  • init() — Hook run immediately after the constructing of a controller.
  • postDispatch() — Hook run after the dispatching of a request is completed.
  • preDispatch() — Hook run before the dispatching of a request is started.

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

Inherited from MvcLite\Traits\Request

public

Inherited from MvcLite\Traits\Response

public

Inherited from MvcLite\Traits\Session

public

  • getSession() — Getter for the session instance variable.

Inherited from MvcLite\Traits\Filepath

public

Inherited from MvcLite\Traits\View

public

  • getView() — Getter for the View instance variable.

History