39 lines
629 B
PHP
39 lines
629 B
PHP
<?php
|
|
namespace ProcessMaker;
|
|
|
|
class Api
|
|
{
|
|
private static $workspace;
|
|
private static $userId;
|
|
|
|
const SYSTEM_EXCEPTION_STATUS = 500;
|
|
|
|
public function __costruct()
|
|
{
|
|
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 self::$userId;
|
|
|
|
return \Api\OAuth2\Server::getUserId();
|
|
}
|
|
}
|
|
|