PHP Class Inpsyde\MultilingualPress\Module\Module

Since: 3.0.0
Datei anzeigen Open project: inpsyde/multilingual-press Class Usage Examples

Public Methods

Method Description
__construct ( string $id, array $data = [] ) Constructor. Sets up the properties.
activate ( ) : static Activates the module.
deactivate ( ) : static Deactivates the module.
description ( ) : string Returns the description of the module.
id ( ) : string Returns the ID of the module.
is_active ( ) : boolean Checks if the module is active.
name ( ) : string Returns the name of the module.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( string $id, array $data = [] )
$id string Module ID.
$data array Optional. Module data. Defaults to empty array.

activate() public method

Activates the module.
Since: 3.0.0
public activate ( ) : static
return static Module instance.

deactivate() public method

Deactivates the module.
Since: 3.0.0
public deactivate ( ) : static
return static Module instance.

description() public method

Returns the description of the module.
Since: 3.0.0
public description ( ) : string
return string The description of the module.

id() public method

Returns the ID of the module.
Since: 3.0.0
public id ( ) : string
return string The ID of the module.

is_active() public method

Checks if the module is active.
Since: 3.0.0
public is_active ( ) : boolean
return boolean Whether or not the module is active.

name() public method

Returns the name of the module.
Since: 3.0.0
public name ( ) : string
return string The name of the module.