getProjectUsers($prjUid); //Response $response = $arrayData; } catch (\Exception $e) { //response throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; } /** * @param string $prjUid {@min 32} {@max 32} * * @url GET /:prjUid/starting-tasks */ public function doGetProjectStartingTasks($prjUid) { try { $supervisor = new \BusinessModel\ProjectUser(); $arrayData = $supervisor->getProjectStartingTasks($prjUid); //Response $response = $arrayData; } catch (\Exception $e) { //response throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; } /** * @param string $prjUid {@min 32} {@max 32} * @param string $usrUid {@min 32} {@max 32} * * @url GET /:prjUid/user/:usrUid/starting-tasks */ public function doGetProjectStartingTaskUsers($prjUid, $usrUid) { try { $supervisor = new \BusinessModel\ProjectUser(); $arrayData = $supervisor->getProjectStartingTaskUsers($prjUid, $usrUid); //Response $response = $arrayData; } catch (\Exception $e) { //response throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; } /** * @param string $prjUid {@min 32} {@max 32} * @param wsUserCanStartTaskStructure $request_data * * @url POST /:prjUid/ws/user/can-start-task */ public function doPostProjectWsUserCanStartTask($prjUid, wsUserCanStartTaskStructure $request_data = null) { try { $request_data = (array)($request_data); $user = new \BusinessModel\ProjectUser(); $objectData = $user->postProjectWsUserCanStartTask($prjUid, $request_data); //Response $response = $objectData; } catch (\Exception $e) { //response throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; } } class wsUserCanStartTaskStructure { /** * @var string {@from body} {@min 32} {@max 32} */ public $act_uid; /** * @var string {@from body} */ public $username; /** * @var string {@from body} */ public $password; }