public static function RetrievePage() { $response = new simpleResponse(); $parameters = GetPageWebService::collectParameters(); try { $account_id = 0; include './inc/incWebServiceSessionValidation.php'; if ($account_id > 0) { $page = da_apps_registry::GetPage($parameters->page_id); $response->status = "OK"; $response->message = "SUCCESS"; $response->data = $page; } else { $response->status = "ERROR"; } } catch (Exception $ex) { $response->status = "EXCEPTION"; $response->message = $ex->getMessage(); } return $response; }
public static function RetrieveFullPage() { $response = new simpleResponse(); $parameters = GetPageWebService::collectParameters(); try { $account_id = $parameters->account_id; //TODO: Restore login-based security by uncommenting line 42 //include './inc/incWebServiceSessionValidation.php'; if ($account_id > 0) { $fullPage = da_apps_registry::GetPage($parameters->page_id); $fullPage->widgets = da_widgets::GetWidgetsOfPage($parameters->page_id); $response->status = "OK"; $response->message = "SUCCESS"; $response->data = $fullPage; } else { $response->status = "ERROR HERE"; } } catch (Exception $ex) { $response->status = "EXCEPTION"; $response->message = $ex->getMessage(); } return $response; }