Toolkit

Toolkit
in package

FinalYes

Provides default Toolkit class.

Table of Contents

Constants

PLUGIN  = 'ec-europa/toolkit-composer-plugin'
The Toolkit composer plugin repository.
REPOSITORY  = 'ec-europa/toolkit'
The Toolkit repository.
VERSION  = '10.15.0'
Constant holding the current version.

Methods

ensureArray()  : mixed
If given content is a string, it will be exploded by given separator.
filterFolders()  : mixed
Remove un-existing folders from given array.
getNextcloudPass()  : string
Returns the NEXTCLOUD password.
getNextcloudUser()  : string
Returns the NEXTCLOUD user.
getProjectRoot()  : string
Returns the Project root.
getToolkitRoot()  : string
Returns the Toolkit root.
isCiCd()  : bool
Returns whether is running in CI/CD environment.

Constants

PLUGIN

The Toolkit composer plugin repository.

public mixed PLUGIN = 'ec-europa/toolkit-composer-plugin'

REPOSITORY

The Toolkit repository.

public mixed REPOSITORY = 'ec-europa/toolkit'

VERSION

Constant holding the current version.

public mixed VERSION = '10.15.0'

Methods

ensureArray()

If given content is a string, it will be exploded by given separator.

public static ensureArray(mixed &$data[, string $sep = ',' ]) : mixed
Parameters
$data : mixed

If the data is a string it will be exploded by comma.

$sep : string = ','

The separator to explode the string.

filterFolders()

Remove un-existing folders from given array.

public static filterFolders(array<string|int, mixed> &$files) : mixed
Parameters
$files : array<string|int, mixed>

The folders to check.

getNextcloudPass()

Returns the NEXTCLOUD password.

public static getNextcloudPass() : string
Return values
string

The NEXTCLOUD password.

getNextcloudUser()

Returns the NEXTCLOUD user.

public static getNextcloudUser() : string
Return values
string

The NEXTCLOUD user.

getProjectRoot()

Returns the Project root.

public static getProjectRoot() : string
Return values
string

The Project root.

getToolkitRoot()

Returns the Toolkit root.

public static getToolkitRoot() : string
Return values
string

The Toolkit root.

isCiCd()

Returns whether is running in CI/CD environment.

public static isCiCd() : bool
Return values
bool

True if running in CI/CD, false otherwise.


        
On this page

Search results