PHP Class Gc\Module\AbstractModule

Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$renderer Gc\View\Renderer Renderer

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

addPath() public méthode

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

events() public méthode

Retrieve event manager
public events ( ) : StaticEventManager
Résultat Gc\Event\StaticEventManager

getAdapter() protected méthode

Return database adapter
protected getAdapter ( ) : Zend\Db\Adapter\Adapter
Résultat Zend\Db\Adapter\Adapter

getDriverName() protected méthode

Return driver name
protected getDriverName ( ) : string
Résultat string

init() public méthode

Execute on init
public init ( Zend\ModuleManager\ModuleManager $e ) : void
$e Zend\ModuleManager\ModuleManager ModuleManager
Résultat void

install() public méthode

Install module
public install ( ) : boolean
Résultat boolean

onBootstrap() public méthode

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

render() public méthode

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

uninstall() public méthode

Uninstall module
public uninstall ( ) : boolean
Résultat boolean

update() public méthode

Update module
public update ( string $latestVersion ) : boolean
$latestVersion string Latest version
Résultat boolean

Property Details

$renderer protected_oe property

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