Make BaseModule methods dynamic

This commit is contained in:
Philipp 2021-11-14 23:13:47 +01:00
parent 714f0febc4
commit 489cd0884a
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
253 changed files with 397 additions and 385 deletions

View file

@ -30,7 +30,7 @@ use Friendica\Util\DateTimeFormat;
*/
class RateLimitStatus extends BaseApi
{
public static function rawContent()
public function rawContent()
{
if (!empty(static::$parameters['extension']) && (static::$parameters['extension'] == 'xml')) {
$hash = [

View file

@ -35,7 +35,7 @@ abstract class ContactEndpoint extends BaseApi
const DEFAULT_COUNT = 20;
const MAX_COUNT = 200;
public static function init()
public function init()
{
parent::init();

View file

@ -29,7 +29,7 @@ use Friendica\Model\Contact;
*/
class FollowersIds extends ContactEndpoint
{
public static function rawContent()
public function rawContent()
{
// Expected value for user_id parameter: public/user contact id
$contact_id = filter_input(INPUT_GET, 'user_id' , FILTER_VALIDATE_INT);

View file

@ -29,7 +29,7 @@ use Friendica\Model\Contact;
*/
class FollowersList extends ContactEndpoint
{
public static function rawContent()
public function rawContent()
{
// Expected value for user_id parameter: public/user contact id
$contact_id = filter_input(INPUT_GET, 'user_id' , FILTER_VALIDATE_INT);

View file

@ -29,7 +29,7 @@ use Friendica\Model\Contact;
*/
class FriendsIds extends ContactEndpoint
{
public static function rawContent()
public function rawContent()
{
// Expected value for user_id parameter: public/user contact id
$contact_id = filter_input(INPUT_GET, 'user_id' , FILTER_VALIDATE_INT);

View file

@ -29,7 +29,7 @@ use Friendica\Model\Contact;
*/
class FriendsList extends ContactEndpoint
{
public static function rawContent()
public function rawContent()
{
// Expected value for user_id parameter: public/user contact id
$contact_id = filter_input(INPUT_GET, 'user_id' , FILTER_VALIDATE_INT);

View file

@ -31,7 +31,7 @@ use Friendica\Module\BaseApi;
*/
class SavedSearches extends BaseApi
{
public static function rawContent()
public function rawContent()
{
self::checkAllowedScope(self::SCOPE_READ);
$uid = self::getCurrentUserID();