Save 40% this spring!

Documentation

Helpers reference


TotalPoll()#
/**
 * TotalPoll global function.
 *
 * @param null  $component
 * @param array $args
 * 
 * Usage: TotalPoll($component) // Returns component instance.
 * Usage: TotalPoll() // Returns plugin instance.
 * Usage: TotalPoll()->option( $name, $default = null ) // Returns option value.
 * Usage: TotalPoll()->env( $name = null, $default = null ) // Returns environment variable(s).
 * -------------
 * Example: TotalPoll( 'http.request' ) // Returns HTTP Request instance.
 * Example: TotalPoll()->option( 'services.recaptcha' ) // Returns reCaptcha keys.
 * Example: TotalPoll()->env( 'version' ) // Returns TotalPoll current version.
 * -------------
 */