PHP Class Gc\Module\AbstractModule

Show file Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$renderer Gc\View\Renderer Renderer

Public Methods

Method Description
addPath ( string $dir ) : AbstractModule Add path in Zend\View\Resolver\TemplatePathStack
events ( ) : StaticEventManager Retrieve event manager
init ( Zend\ModuleManager\ModuleManager $e ) : void Execute on init
install ( ) : boolean Install module
onBootstrap ( Zend\EventManager\EventInterface $e ) : void Execute on bootstrap
render ( string $name, array $data = [] ) : string Render template
uninstall ( ) : boolean Uninstall module
update ( string $latestVersion ) : boolean Update module

Protected Methods

Method Description
getAdapter ( ) : Zend\Db\Adapter\Adapter Return database adapter
getDriverName ( ) : string Return driver name

Method Details

addPath() public method

Add path in Zend\View\Resolver\TemplatePathStack
public addPath ( string $dir ) : AbstractModule
$dir string Directory
return AbstractModule

events() public method

Retrieve event manager
public events ( ) : StaticEventManager
return Gc\Event\StaticEventManager

getAdapter() protected method

Return database adapter
protected getAdapter ( ) : Zend\Db\Adapter\Adapter
return Zend\Db\Adapter\Adapter

getDriverName() protected method

Return driver name
protected getDriverName ( ) : string
return string

init() public method

Execute on init
public init ( Zend\ModuleManager\ModuleManager $e ) : void
$e Zend\ModuleManager\ModuleManager ModuleManager
return void

install() public method

Install module
public install ( ) : boolean
return boolean

onBootstrap() public method

Execute on bootstrap
public onBootstrap ( Zend\EventManager\EventInterface $e ) : void
$e Zend\EventManager\EventInterface Event
return void

render() public method

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

uninstall() public method

Uninstall module
public uninstall ( ) : boolean
return boolean

update() public method

Update module
public update ( string $latestVersion ) : boolean
$latestVersion string Latest version
return boolean

Property Details

$renderer protected property

Renderer
protected Renderer,Gc\View $renderer
return Gc\View\Renderer