Install
in package
Arikaim install
Table of Contents
Methods
- changeStorageFolderOwner() : void
- Chown command for storage fodler (recursive)
- checkSystemRequirements() : array<string|int, mixed>
- Verify system requirements status 1 - ok, 2 - warning, 0 - error
- createDb() : bool
- Create db if not exist
- createDbTables() : bool
- Create core db tables
- initStorage() : bool
- Create storage folders
- install() : bool
- Install Arikaim
- installDrivers() : bool
- Install drivers
- installExtensions() : bool
- Install all extensions packages
- installModules() : bool
- Install all modules
- isInstalled() : bool
- Check if system is installed.
- prepare() : bool
- Prepare install
- setConfigFilesWritable() : bool
- Set config files writable
- systemTablesRowFormat() : bool
- Set system tables rows format to dynamic
- callback() : void
- Call closure
- createDefaultAdminUser() : bool
- Create default control panel user
- getSystemDbTableNames() : array<string|int, mixed>
- Get core db table names
- getSystemSchemaClasses() : array<string|int, mixed>
- Return core migration classes
- initDefaultOptions() : void
- Set default options
- registerCoreEvents() : void
- Register code events
Methods
changeStorageFolderOwner()
Chown command for storage fodler (recursive)
public
changeStorageFolderOwner() : void
checkSystemRequirements()
Verify system requirements status 1 - ok, 2 - warning, 0 - error
public
static checkSystemRequirements() : array<string|int, mixed>
Return values
array<string|int, mixed>createDb()
Create db if not exist
public
createDb(string $databaseName) : bool
Parameters
- $databaseName : string
Return values
boolcreateDbTables()
Create core db tables
public
createDbTables([Closure|null $onProgress = null ][, Closure|null $onError = null ][, bool $stopOnError = true ]) : bool
Parameters
- $onProgress : Closure|null = null
- $onError : Closure|null = null
- $stopOnError : bool = true
Return values
boolinitStorage()
Create storage folders
public
initStorage() : bool
Return values
boolinstall()
Install Arikaim
public
install([Closure|null $onProgress = null ][, Closure|null $onProgressError = null ][, array<string|int, mixed>|null $config = null ]) : bool
Parameters
- $onProgress : Closure|null = null
- $onProgressError : Closure|null = null
- $config : array<string|int, mixed>|null = null
Return values
boolinstallDrivers()
Install drivers
public
installDrivers() : bool
Return values
boolinstallExtensions()
Install all extensions packages
public
installExtensions([Closure|null $onProgress = null ][, Closure|null $onProgressError = null ]) : bool
Parameters
- $onProgress : Closure|null = null
- $onProgressError : Closure|null = null
Return values
boolinstallModules()
Install all modules
public
installModules([Closure|null $onProgress = null ][, Closure|null $onProgressError = null ]) : bool
Parameters
- $onProgress : Closure|null = null
- $onProgressError : Closure|null = null
Return values
boolisInstalled()
Check if system is installed.
public
static isInstalled() : bool
Return values
boolprepare()
Prepare install
public
prepare([Closure|null $onProgress = null ][, Closure|null $onError = null ][, array<string|int, mixed>|null $requirements = null ]) : bool
Parameters
- $onProgress : Closure|null = null
- $onError : Closure|null = null
- $requirements : array<string|int, mixed>|null = null
Return values
boolsetConfigFilesWritable()
Set config files writable
public
static setConfigFilesWritable() : bool
Return values
boolsystemTablesRowFormat()
Set system tables rows format to dynamic
public
systemTablesRowFormat() : bool
Return values
boolcallback()
Call closure
protected
callback(Closure|null $closure, string $message) : void
Parameters
- $closure : Closure|null
- $message : string
createDefaultAdminUser()
Create default control panel user
private
createDefaultAdminUser() : bool
Return values
boolgetSystemDbTableNames()
Get core db table names
private
static getSystemDbTableNames() : array<string|int, mixed>
Return values
array<string|int, mixed>getSystemSchemaClasses()
Return core migration classes
private
getSystemSchemaClasses() : array<string|int, mixed>
Return values
array<string|int, mixed>initDefaultOptions()
Set default options
private
initDefaultOptions() : void
registerCoreEvents()
Register code events
private
registerCoreEvents() : void