• PHP reference
  • Core
  • View
  • Helper

HelperManager

class Core\View\Helper\HelperManager

Class HelperManager.

Properties

callable[] $helpers

Methods

__construct()

HelperManager constructor.

register(string $name, callable $callable = null)

Register a new helper.

Parameters

  • string $name
  • callable $callable

callable[] getHelpers()

Get all registered helpers as an associative array.

Return Value

  • callable[]

static string helperL($string, array $args)

Helper 'l' Shortcut for Language::translate(), with a variable number of arguments.

Parameters

  • $string
  • array $args

Return Value

  • string

static mixed helperIs($x, $y)

Helper 'is' Compares two variables to determine if they are the same.

Parameters

  • $x
  • $y

Return Value

  • mixed

static mixed helperIsnt($x, $y)

Helper 'isnt' Compares two variables to determine if they are not the same.

Parameters

  • $x
  • $y

Return Value

  • mixed