mirror of
https://github.com/friendica/friendica
synced 2024-11-17 23:43:40 +00:00
"rawcontent" is now a baseobject method
This commit is contained in:
parent
0769a115aa
commit
fdc396e197
2 changed files with 10 additions and 1 deletions
|
@ -353,7 +353,7 @@ if ($a->module_loaded) {
|
||||||
|
|
||||||
// "rawContent" is especially meant for technical endpoints.
|
// "rawContent" is especially meant for technical endpoints.
|
||||||
// This endpoint doesn't need any theme initialization or other comparable stuff.
|
// This endpoint doesn't need any theme initialization or other comparable stuff.
|
||||||
if (!$a->error && $a->module_class && method_exists($a->module_class, 'rawContent')) {
|
if (!$a->error && $a->module_class) {
|
||||||
call_user_func([$a->module_class, 'rawContent']);
|
call_user_func([$a->module_class, 'rawContent']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,16 @@ abstract class BaseModule extends BaseObject
|
||||||
*/
|
*/
|
||||||
public static function init()
|
public static function init()
|
||||||
{
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Module GET method to display raw content from technical endpoints
|
||||||
|
*
|
||||||
|
* Extend this method if the module is supposed to return communication data,
|
||||||
|
* e.g. from protocol implementations.
|
||||||
|
*/
|
||||||
|
public static function rawContent()
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue