-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* Ensures rex_api_quicknavigation_render is available on update | ||
* API function for rendering the quick navigation menu. | ||
*/ | ||
class rex_api_quicknavigation_render | ||
class rex_api_quicknavigation_render extends rex_api_function | ||
{ | ||
/** | ||
* dummy for updates | ||
* Executes the API function and sends the quick navigation HTML as the response. | ||
* | ||
* @return string | ||
* @return void | ||
*/ | ||
public static function getUrlParams(): string | ||
public function execute(): void | ||
{ | ||
return ''; | ||
rex_response::sendContent(QuickNavigation::get(), 'text/html'); | ||
exit; | ||
} | ||
|
||
/** | ||
* Indicates that this API function does not require CSRF protection. | ||
* | ||
* @return bool | ||
*/ | ||
public function requiresCsrfProtection() | ||
{ | ||
return false; | ||
} | ||
} |