mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +02:00
Make BaseModule methods dynamic
This commit is contained in:
parent
714f0febc4
commit
489cd0884a
253 changed files with 397 additions and 385 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue