function getAllLanguages() { $app = \Slim\Slim::getInstance(); $app->response->headers->set('Content-Type', 'application/json'); $app->response->setStatus(200); //Lang Call Start $hammu_lang_id = $app->request()->params("lang_id"); if (!empty($hammu_lang_id)) { getCurrentLanguages($hammu_lang_id); } //Lang Call end $filed_array = array(HAMMU_LANG); $all_language = getallquestionsForservices(array("fields" => $filed_array)); $app->response->setBody(json_encode($all_language)); }
function getAllServices() { $app = \Slim\Slim::getInstance(); $app->response->headers->set('Content-Type', 'application/json'); $app->response->setStatus(200); $filed_array = array('field_f92bbdb57510b86ba6c506c487be3aa1'); $all_services_preferences = getallquestionsForservices(array("fields" => $filed_array)); $app->response->setBody(json_encode($all_services_preferences)); }
function getAllServices() { $app = \Slim\Slim::getInstance(); $app->response->headers->set('Content-Type', 'application/json'); $app->response->setStatus(200); $filed_array = array(HAMMU_DB_SERVICES_KEY); $all_services_preferences = getallquestionsForservices(array("fields" => $filed_array)); $app->response->setBody(json_encode($all_services_preferences)); }
function getAllServices() { global $QuestionService; $app = \Slim\Slim::getInstance(); $app->response->headers->set('Content-Type', 'application/json'); $app->response->setStatus(200); $filed_array = array('field_b63db9264225396873b5b6e9a02dbc66'); $all_services_preferences = getallquestionsForservices(array("fields" => $filed_array)); $app->response->setBody(json_encode($all_services_preferences)); }