Strata\Controller\Loader\HelperLoader

Allows the automation of Helpers loading on a specified Controller object.

    Synopsis

    class HelperLoader {
    }

    Members

    private

    • $controllerStrata\Controller\Loader\Controller;
      The Strata Controller instance on which helpers will be loaded.
    • $helpers — array
      A list of normalized helper names and configuration.

    Methods

    private

    protected

    • getNormalizedHelpers() — Returns a normalized array of the controller's helper names and configuration.
    • hasHelpers() — Specifies if a quantity of helpers have been defined by the controller.

    public

    • __construct() — Helper loader constructor builds a list of helper objects associated to a controller and instantiates them as view variables.
    • register() — Registers the controller's helpers within it's active view.