Spaces:
Sleeping
Sleeping
processmaker-community / processmaker-files /workflow /engine /src /ProcessMaker /Plugins /Interfaces /MenuDetail.php
Download processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Interfaces/MenuDetail.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Interfaces/MenuDetail.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Interfaces/MenuDetail.php
-
curl -L -o MenuDetail.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Plugins/Interfaces/MenuDetail.php
1.36 kB
| namespace ProcessMaker\Plugins\Interfaces; | |
| use ProcessMaker\Plugins\Traits\Attributes; | |
| /** | |
| * Class MenuDetail | |
| * @package ProcessMaker\Plugins\Interfaces | |
| */ | |
| class MenuDetail | |
| { | |
| use Attributes; | |
| private $Namespace; | |
| private $MenuId; | |
| private $Filename; | |
| /** | |
| * This function is the constructor of the MenuDetail class | |
| * @param string $Namespace | |
| * @param string $MenuId | |
| * @param string $Filename | |
| */ | |
| public function __construct($Namespace, $MenuId, $Filename) | |
| { | |
| $this->Namespace = $Namespace; | |
| $this->MenuId = $MenuId; | |
| $this->Filename = $Filename; | |
| } | |
| /** | |
| * Check if menu id is equal to params | |
| * @param string $menuId | |
| * @return bool | |
| */ | |
| public function equalMenuIdTo($menuId) | |
| { | |
| return $menuId == $this->MenuId; | |
| } | |
| /** | |
| * Check if nmae of plugin is equal to params | |
| * @param string $Namespace | |
| * @return bool | |
| */ | |
| public function equalNamespaceTo($Namespace) | |
| { | |
| return $Namespace == $this->Namespace; | |
| } | |
| /** | |
| * Check if file exists | |
| * @return bool | |
| */ | |
| public function exitsFile() | |
| { | |
| return file_exists($this->Filename); | |
| } | |
| /** | |
| * Include file | |
| * @return bool | |
| */ | |
| public function includeFileMenu() | |
| { | |
| include($this->Filename); | |
| } | |
| } | |