Spaces:
Sleeping
Sleeping
processmaker-community / processmaker-files /workflow /engine /src /ProcessMaker /Plugins /Traits /Init.php
Download processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Traits/Init.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 743 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Traits/Init.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Traits/Init.php
-
curl -L -o Init.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Traits/Init.php
743 Bytes
| namespace ProcessMaker\Plugins\Traits; | |
| /** | |
| * Trait Init | |
| * @package ProcessMaker\Plugins\Traits | |
| */ | |
| trait Init | |
| { | |
| /** | |
| * Initialization of functions and others of a plugin | |
| */ | |
| public function init() | |
| { | |
| $this->initFunction(); | |
| } | |
| /** | |
| * Initialization of plugin pmFunctions | |
| */ | |
| private function initFunction() | |
| { | |
| $pmFunctions = $this->getPmFunctions(); | |
| foreach ($pmFunctions as $namespace) { | |
| $filePmFunctions = PATH_PLUGINS . $namespace . PATH_SEP . 'classes' . PATH_SEP . 'class.pmFunctions.php'; | |
| if (file_exists($filePmFunctions) && $this->isEnable($namespace)) { | |
| include_once($filePmFunctions); | |
| } | |
| } | |
| } | |
| } | |