Plugin
in package
FinalYes
Table of Contents
Properties
- $compatible : bool
- $description : string
- $enabled : bool
- $folder : string
- $hidden : bool
- $installed : bool
- $min_php : float
- $min_version : float
- $name : string
- $order : int
- $post_disable : bool
- $post_enable : bool
- $require : array<string|int, mixed>
- $require_php : array<string|int, mixed>
- $version : float
- $compatibilityDescription : string
Methods
- __construct() : mixed
- compatibilityDescription() : string
- delete() : bool
- dependenciesOk() : bool
- disabled() : bool
- exists() : bool
- folder() : string
- forja() : mixed
- getFromZip() : Plugin|null
- hasUpdate() : bool
- init() : bool
- checkCompatibility() : void
- hidden() : bool
- loadIniData() : void
- loadIniFile() : void
Properties
$compatible
public
bool
$compatible
= false
$description
public
string
$description
= 'unknown'
$enabled
public
bool
$enabled
= false
$folder
public
string
$folder
= '-'
$hidden
public
bool
$hidden
= false
$installed
public
bool
$installed
= false
$min_php
public
float
$min_php
= 8
$min_version
public
float
$min_version
= 0
$name
public
string
$name
= '-'
$order
public
int
$order
= 0
$post_disable
public
bool
$post_disable
= false
$post_enable
public
bool
$post_enable
= false
$require
public
array<string|int, mixed>
$require
= []
$require_php
public
array<string|int, mixed>
$require_php
= []
$version
public
float
$version
= 0.0
$compatibilityDescription
private
string
$compatibilityDescription
= ''
Methods
__construct()
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
compatibilityDescription()
public
compatibilityDescription() : string
Return values
stringdelete()
public
delete() : bool
Return values
booldependenciesOk()
public
dependenciesOk(array<string|int, mixed> $enabledPlugins[, bool $showErrors = false ]) : bool
Parameters
- $enabledPlugins : array<string|int, mixed>
- $showErrors : bool = false
Return values
booldisabled()
public
disabled() : bool
Return values
boolexists()
public
exists() : bool
Return values
boolfolder()
public
folder() : string
Return values
stringforja()
public
forja(string $field, mixed $default) : mixed
Parameters
- $field : string
- $default : mixed
getFromZip()
public
static getFromZip(string $zipPath) : Plugin|null
Parameters
- $zipPath : string
Return values
Plugin|nullhasUpdate()
public
hasUpdate() : bool
Return values
boolinit()
public
init() : bool
Return values
boolcheckCompatibility()
private
checkCompatibility() : void
hidden()
private
hidden() : bool
Return values
boolloadIniData()
private
loadIniData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
loadIniFile()
private
loadIniFile() : void