Strata\Controller\Controller

Base controller class.

    Synopsis

    class Controller {
    }

    Hierarchy

    Members

    public

    • $helpers — array
      Helpers that will need to be loaded across all the actions of the Controller.
    • $requestStrata\Controller\Request
      The current active Request
    • $shortcodes — array
      These hooks allow views to use Wordpress nicely, but still trigger items in the current controller.
    • $viewStrata\View\View
      The associated view template

    Methods

    public

    Inherited from Strata\Core\StrataObjectTrait

    public

    • factory() — Instantiates an object that uses the StrataObjectTrait which class name matches the $name value.
    • generateClassName() — Generates a valid class name from the $name value.
    • generateClassPath() — Generates a possible namespace and classname combination of a Strata objecy. Mainly used to avoid hardcoding the '\\View\\Helper\\' string everywhere (or whatever else would the namespace have been).
    • getClassNameSuffix() — Returns the default class name suffix for this object.
    • getFactoryScopes() — Returns scopes in which Strata will look in to load objects.
    • getNamespaceStringInStrata() — Returns the default namespace path.
    • getShortName() — Returns this object's class name without the full namespace.
    • staticFactory() — Instantiates an object of the current class.