Files
luos/workflow/engine/classes/class.api.php

40 lines
654 B
PHP
Raw Normal View History

2013-09-04 16:11:33 -04:00
<?php
namespace ProcessMaker;
class Api
{
private static $workspace;
2013-10-09 13:16:05 -04:00
private static $userId;
2013-09-04 16:11:33 -04:00
const STAT_CREATED = 201;
const STAT_APP_EXCEPTION = 400;
2013-11-07 12:37:16 -04:00
2013-09-04 16:11:33 -04:00
public function __costruct()
{
2013-09-05 10:04:02 -04:00
self::$workspace = null;
2013-09-04 16:11:33 -04:00
}
public static function setWorkspace($workspace)
{
self::$workspace = $workspace;
}
public function getWorkspace()
{
return self::$workspace;
}
2013-10-09 13:16:05 -04:00
public static function setUserId($userId)
{
self::$userId = $userId;
}
public function getUserId()
{
//return self::$userId;
return \Api\OAuth2\Server::getUserId();
}
2013-09-04 16:11:33 -04:00
}