PHP Class Gc\Module\AbstractPlugin

Afficher le fichier Open project: gotcms/gotcms

Protected Properties

Свойство Type Description
$pluginParameters array Script parameter
$renderer Gc\View\Renderer Renderer

Méthodes publiques

Méthode Description
__call ( string $method, array $params ) : mixed Method overloading: return/call plugins
addPath ( string $dir ) : AbstractPlugin Add path in Zend\View\Resolver\TemplatePathStack
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 Get service locator
init ( ) : void Initialize
plugin ( string $name, array $options = null ) : mixed Get plugin instance
render ( string $name, array $data = [] ) : string Render template
setParam ( string $key, string $value ) : AbstractPlugin Set params
setParams ( array $array ) : AbstractPlugin Set params

Method Details

__call() public méthode

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
Résultat mixed

addPath() public méthode

Add path in Zend\View\Resolver\TemplatePathStack
public addPath ( string $dir ) : AbstractPlugin
$dir string Directory
Résultat AbstractPlugin

getParam() public méthode

Returns param from name.
public getParam ( string $name ) : mixed
$name string Parameter name
Résultat mixed

getRequest() public méthode

Get Http Request instance.
public getRequest ( ) : Zend\Http\PhpEnvironment\Request
Résultat Zend\Http\PhpEnvironment\Request

getResponse() public méthode

Get Http Response instance.
public getResponse ( ) : Zend\Http\PhpEnvironment\Response
Résultat Zend\Http\PhpEnvironment\Response

getServiceLocator() public méthode

Get service locator
public getServiceLocator ( ) : Zend\ServiceManager\ServiceManager
Résultat Zend\ServiceManager\ServiceManager

init() public méthode

Initialize
public init ( ) : void
Résultat void

plugin() public méthode

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)
Résultat mixed

render() public méthode

Render template
public render ( string $name, array $data = [] ) : string
$name string Name
$data array Data
Résultat string

setParam() public méthode

Set params
public setParam ( string $key, string $value ) : AbstractPlugin
$key string Key
$value string Value
Résultat AbstractPlugin

setParams() public méthode

Set params
public setParams ( array $array ) : AbstractPlugin
$array array List of parameters
Résultat AbstractPlugin

Property Details

$pluginParameters protected_oe property

Script parameter
protected array $pluginParameters
Résultat array

$renderer protected_oe property

Renderer
protected Renderer,Gc\View $renderer
Résultat Gc\View\Renderer