PHP Class Gc\View\Helper\Script

Inheritance: extends Zend\View\Helper\AbstractHelper
Show file Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$helperScriptParameters array Script parameter
$pluginManager Zend\Mvc\Controller\PluginManager Controller plugin manager
$request Zend\Http\PhpEnvironment\Request Http Request
$response Zend\Http\PhpEnvironment\Response Http Response
$serviceManager Zend\ServiceManager\ServiceManager Service manager

Public Methods

Method Description
__call ( string $method, array $params ) : mixed Method overloading: return/call plugins
__construct ( Zend\ServiceManager\ServiceManager $serviceManager ) Constructor
__invoke ( string $identifier, array $params = [] ) : mixed Returns script from identifier.
getDocument ( ) : Model Returns param from name.
getParam ( string $name ) : mixed Returns param from name.
getRequest ( ) : Zend\Http\PhpEnvironment\Request Get Http Request instance.
getResponse ( ) : Zend\Http\PhpEnvironment\Response Get Http Response instance.
getServiceLocator ( ) : Zend\ServiceManager\ServiceManager Retrieve serviceManager instance
plugin ( string $name, array $options = null ) : mixed Get plugin instance

Method Details

__call() public method

If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
public __call ( string $method, array $params ) : mixed
$method string Method
$params array Parameters
return mixed

__construct() public method

Constructor
public __construct ( Zend\ServiceManager\ServiceManager $serviceManager )
$serviceManager Zend\ServiceManager\ServiceManager Service manager

__invoke() public method

Returns script from identifier.
public __invoke ( string $identifier, array $params = [] ) : mixed
$identifier string Identifier
$params array Parameters
return mixed

getDocument() public method

Returns param from name.
public getDocument ( ) : Model
return Gc\Document\Model

getParam() public method

Returns param from name.
public getParam ( string $name ) : mixed
$name string Parameter name
return mixed

getRequest() public method

Get Http Request instance.
public getRequest ( ) : Zend\Http\PhpEnvironment\Request
return Zend\Http\PhpEnvironment\Request

getResponse() public method

Get Http Response instance.
public getResponse ( ) : Zend\Http\PhpEnvironment\Response
return Zend\Http\PhpEnvironment\Response

getServiceLocator() public method

Retrieve serviceManager instance
public getServiceLocator ( ) : Zend\ServiceManager\ServiceManager
return Zend\ServiceManager\ServiceManager

plugin() public method

Get plugin instance
public plugin ( string $name, array $options = null ) : mixed
$name string Name of plugin to return
$options array Options to pass to plugin constructor (if not already instantiated)
return mixed

Property Details

$helperScriptParameters protected property

Script parameter
protected array $helperScriptParameters
return array

$pluginManager protected property

Controller plugin manager
protected PluginManager,Zend\Mvc\Controller $pluginManager
return Zend\Mvc\Controller\PluginManager

$request protected property

Http Request
protected Request,Zend\Http\PhpEnvironment $request
return Zend\Http\PhpEnvironment\Request

$response protected property

Http Response
protected Response,Zend\Http\PhpEnvironment $response
return Zend\Http\PhpEnvironment\Response

$serviceManager protected property

Service manager
protected ServiceManager,Zend\ServiceManager $serviceManager
return Zend\ServiceManager\ServiceManager