Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Access default directories

Complete path to the functions directory (getFullFunctionsPath)

Scroll Prev Top Next More

This function allows you to determine the complete path to the functions directory or to a file located below this directory.

Parameter

Type

Description

$path

string

Relative file path or file name (optional)

$processName

string

Process name (optional)

$processVersion

string

Process version (optional); is this omitted, only the process specific directory without the version subdirectory is returned.

This function returns the complete path to the function directory, the process or specific process version subdirectory or a file located within.

In case no parameter is passed, the complete path to the functions directory is returned.

In case $path is passed, the complete path to the stated file located below the functions directory is returned.

In case $path and $processName are passed, the complete path to the stated file located below the process specific functions subdirectory is returned.

In case $path, $processName and $processVersion is passed, the complete path to the stated file located below the specific process version functions subdirectory is returned.

Example:

// Determining the path to the functions main directory

$functionsPath = $this->getFullFunctionsPath();

 

// Determining the path to the „my_library.php“ file in the functions main directory

$myLibraryPath = $this->getFullFunctionsPath('my_library.php');

 

// Determining the path to the process specific functions subdirectory

$functionsProcessPath = $this->getFullFunctionsPath('', 'TESTPROCESS');

 

// Determining the path to the process version specific functions subdirectory

$functionsProcessVersionPath = $this->getFullFunctionsPath('', 'TESTPROCESS', 1);