Subscription_queue.php

Summary
Subscription_queue.php
Subscription_queueTable Definition for subscription_queue
Subscription_queueSuperclass to hold queued subscriptions in the database for users and groups that require prior approval for subscriptions.
schemaDefReturns an array representing the table schema in the database.
saveNewSave a new subscription request queue item
existsReturns whether the given subscriber to subscribee has a queued subscription.
getSubQueueReturns an object representing the subscription queue
completeComplete a pending subscription, as we’ve got approval of some sort.
abortCancel an outstanding subscription request to the other profile and fire the appropriate events.
notifySend notifications via email etc to group administrators about this exciting new pending moderation queue item!

Subscription_queue

Table Definition for subscription_queue

postActiv

the micro-blogging software

Copyright

Copyright © 2016-2017, Maiyannah Bishop

Derived from code copyright various sources

  • GNU Social © 2013-2016, Free Software Foundation, Inc
  • StatusNet © 2008-2012, StatusNet, Inc

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses/.

https://www.gnu.org/licenses/agpl.html

About

Table Definition for subscription_queue

PHP version

Tested with PHP 7

File Authors

Web

Subscription_queue

Superclass to hold queued subscriptions in the database for users and groups that require prior approval for subscriptions.

Properties

  • $__table = ‘subscription_queue’ - table name
  • subscriber
  • subscribed
  • created
Summary
schemaDefReturns an array representing the table schema in the database.
saveNewSave a new subscription request queue item
existsReturns whether the given subscriber to subscribee has a queued subscription.
getSubQueueReturns an object representing the subscription queue
completeComplete a pending subscription, as we’ve got approval of some sort.
abortCancel an outstanding subscription request to the other profile and fire the appropriate events.
notifySend notifications via email etc to group administrators about this exciting new pending moderation queue item!

schemaDef

public static function schemaDef()

Returns an array representing the table schema in the database.

saveNew

public static function saveNew(Profile $subscriber,
Profile $subscribed)

Save a new subscription request queue item

exists

static function exists(Profile $subscriber,
Profile $other)

Returns whether the given subscriber to subscribee has a queued subscription.

getSubQueue

static function getSubQueue(Profile $subscriber,
Profile $other)

Returns an object representing the subscription queue

complete

public function complete()

Complete a pending subscription, as we’ve got approval of some sort.

Returns

  • Subscription

abort

public function abort()

Cancel an outstanding subscription request to the other profile and fire the appropriate events.

notify

public function notify()

Send notifications via email etc to group administrators about this exciting new pending moderation queue item!

public static function schemaDef()
Returns an array representing the table schema in the database.
public static function saveNew(Profile $subscriber,
Profile $subscribed)
Save a new subscription request queue item
static function exists(Profile $subscriber,
Profile $other)
Returns whether the given subscriber to subscribee has a queued subscription.
static function getSubQueue(Profile $subscriber,
Profile $other)
Returns an object representing the subscription queue
public function complete()
Complete a pending subscription, as we’ve got approval of some sort.
public function abort()
Cancel an outstanding subscription request to the other profile and fire the appropriate events.
public function notify()
Send notifications via email etc to group administrators about this exciting new pending moderation queue item!