Spaces:
Sleeping
Sleeping
Download processmaker-files/workflow/engine/src/ProcessMaker/Services/Api.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Services/Api.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/workflow/engine/src/ProcessMaker/Services/Api.php
-
curl -L -o Api.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Services/Api.php
844 Bytes
| namespace ProcessMaker\Services; | |
| /** | |
| * Abstract Class Api | |
| * | |
| * Api class be be extended by Restler Classes | |
| * | |
| * @package ProcessMaker\Services | |
| * @author Erik Amaru Ortiz <aortiz.erik@gmail.com, erik@colosa.com> | |
| */ | |
| abstract class Api | |
| { | |
| private static $workspace; | |
| private static $userId; | |
| const STAT_CREATED = 201; | |
| const STAT_APP_EXCEPTION = 400; | |
| public function __construct() | |
| { | |
| self::$workspace = null; | |
| } | |
| public static function setWorkspace($workspace) | |
| { | |
| self::$workspace = $workspace; | |
| } | |
| public function getWorkspace() | |
| { | |
| return self::$workspace; | |
| } | |
| public static function setUserId($userId) | |
| { | |
| self::$userId = $userId; | |
| } | |
| public function getUserId() | |
| { | |
| return \ProcessMaker\Services\OAuth2\Server::getUserId(); | |
| } | |
| } | |