/** * Get content of an experience for SMEP * @param String $id: id of the SharcExperience */ public static function getExperienceSnapshotForConsumer($experienceId) { $response = array(); try { //Check if the designerId owns the experience $rs = SharcExperience::find($experienceId); if ($rs == null || $rs->isPublished == 0) { //Not exists $response["status"] = FAILED; $response["data"] = EXPERIENCE_NOT_EXIST; return $response; } else { $response = ExperienceService::getExperienceSnapshotDetails($rs->designerId, $experienceId); } } catch (Exception $e) { $response["status"] = ERROR; $response["data"] = Utils::getExceptionMessage($e); } return $response; }