PHP 클래스 Inpsyde\MultilingualPress\Module\Module

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press 1 사용 예제들

공개 메소드들

메소드 설명
__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.