PHP Класс Inpsyde\MultilingualPress\Module\Module

С версии: 3.0.0
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( string $id, array $data = [] )
$id string Module ID.
$data array Optional. Module data. Defaults to empty array.

activate() публичный метод

Activates the module.
С версии: 3.0.0
public activate ( ) : static
Результат static Module instance.

deactivate() публичный метод

Deactivates the module.
С версии: 3.0.0
public deactivate ( ) : static
Результат static Module instance.

description() публичный метод

Returns the description of the module.
С версии: 3.0.0
public description ( ) : string
Результат string The description of the module.

id() публичный метод

Returns the ID of the module.
С версии: 3.0.0
public id ( ) : string
Результат string The ID of the module.

is_active() публичный метод

Checks if the module is active.
С версии: 3.0.0
public is_active ( ) : boolean
Результат boolean Whether or not the module is active.

name() публичный метод

Returns the name of the module.
С версии: 3.0.0
public name ( ) : string
Результат string The name of the module.