PHP Class Redaxscript\Module

Since: 2.2.0
Author: Henry Ruhs
显示文件 Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_moduleArray array array of the module
$_notificationArray array array of the notification

Public Methods

Method Description
getNotification ( string $type = null ) : mixed get message from notification
init ( array $moduleArray = [] ) init the class
install ( ) install the module
setNotification ( string $type = null, mixed $message = null ) set message to notification
uninstall ( ) uninstall the module

Method Details

getNotification() public method

get message from notification
Since: 3.0.0
public getNotification ( string $type = null ) : mixed
$type string type of the notification
return mixed

init() public method

init the class
Since: 2.4.0
public init ( array $moduleArray = [] )
$moduleArray array custom module setup

install() public method

install the module
Since: 2.6.0
public install ( )

setNotification() public method

set message to notification
Since: 3.0.0
public setNotification ( string $type = null, mixed $message = null )
$type string type of the notification
$message mixed message of the notification

uninstall() public method

uninstall the module
Since: 2.6.0
public uninstall ( )

Property Details

$_moduleArray protected_oe static_oe property

array of the module
protected static array $_moduleArray
return array

$_notificationArray protected_oe static_oe property

array of the notification
protected static array $_notificationArray
return array