コード例 #1
0
ファイル: User.php プロジェクト: emildev35/processmaker
 /**
  * @url GET /:usr_uid
  *
  * @param string $usr_uid {@min 32}{@max 32}
  */
 public function doGetUser($usr_uid)
 {
     try {
         $user = new \ProcessMaker\BusinessModel\User();
         $user->setFormatFieldNameInUppercase(false);
         $response = $user->getUser($usr_uid);
         return \ProcessMaker\Util\DateTime::convertUtcToIso8601($response, $this->arrayFieldIso8601);
     } catch (\Exception $e) {
         throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
     }
 }
コード例 #2
0
ファイル: User.php プロジェクト: nhenderson/processmaker
    /**
     * @url GET /:usr_uid
     *
     * @param string $usr_uid {@min 32}{@max 32}
     */
    public function doGetUser($usr_uid)
    {
        try {
            $user = new \ProcessMaker\BusinessModel\User();
            $user->setFormatFieldNameInUppercase(false);

            $response = $user->getUser($usr_uid);
            return $response;
        } catch (\Exception $e) {
            throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
        }
    }