Settings_ModuleManager_Library_Model
in package
Module Manager Library class.
Table of Contents
- TEMP_DIR = 'cache' . \DIRECTORY_SEPARATOR . 'upload'
- Path to save temporary files.
- $libraries : array<string|int, mixed>
- List of all installation libraries.
- checkLibrary() : bool
- Function to check library status.
- download() : bool
- Function to download library.
- downloadAll() : mixed
- Download all missing libraries.
- getAll() : array<string|int, mixed>
- Get a list of all libraries and their statuses.
- update() : mixed
- Function to update library.
Constants
TEMP_DIR
Path to save temporary files.
public
string
TEMP_DIR
= 'cache' . \DIRECTORY_SEPARATOR . 'upload'
Properties
$libraries
List of all installation libraries.
public
static array<string|int, mixed>
$libraries
= ['roundcube' => ['dir' => 'public_html/modules/OSSMail/roundcube/', 'url' => 'https://github.com/YetiForceCompany/lib_roundcube', 'name' => 'lib_roundcube']]
Methods
checkLibrary()
Function to check library status.
public
static checkLibrary(string $name) : bool
Parameters
- $name : string
Return values
bool —download()
Function to download library.
public
static download(string $name) : bool
Parameters
- $name : string
Tags
Return values
bool —downloadAll()
Download all missing libraries.
public
static downloadAll() : mixed
Return values
mixed —getAll()
Get a list of all libraries and their statuses.
public
static & getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —update()
Function to update library.
public
static update(string $name) : mixed
Parameters
- $name : string