Subscription_queue.php | |
Subscription_queue | Table Definition for subscription_queue |
Subscription_queue | Superclass to hold queued subscriptions in the database for users and groups that require prior approval for subscriptions. |
schemaDef | Returns an array representing the table schema in the database. |
saveNew | Save a new subscription request queue item |
exists | Returns whether the given subscriber to subscribee has a queued subscription. |
getSubQueue | Returns an object representing the subscription queue |
complete | Complete a pending subscription, as we’ve got approval of some sort. |
abort | Cancel an outstanding subscription request to the other profile and fire the appropriate events. |
notify | Send notifications via email etc to group administrators about this exciting new pending moderation queue item! |
Table Definition for subscription_queue
the micro-blogging software
Copyright © 2016-2017, Maiyannah Bishop
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
Table Definition for subscription_queue
Tested with PHP 7
Superclass to hold queued subscriptions in the database for users and groups that require prior approval for subscriptions.
schemaDef | Returns an array representing the table schema in the database. |
saveNew | Save a new subscription request queue item |
exists | Returns whether the given subscriber to subscribee has a queued subscription. |
getSubQueue | Returns an object representing the subscription queue |
complete | Complete a pending subscription, as we’ve got approval of some sort. |
abort | Cancel an outstanding subscription request to the other profile and fire the appropriate events. |
notify | Send notifications via email etc to group administrators about this exciting new pending moderation queue item! |
Returns an array representing the table schema in the database.
public static function schemaDef()
Save a new subscription request queue item
public static function saveNew( Profile $subscriber, Profile $subscribed )
Returns whether the given subscriber to subscribee has a queued subscription.
static function exists( Profile $subscriber, Profile $other )
Returns an object representing the subscription queue
static function getSubQueue( Profile $subscriber, Profile $other )
Complete a pending subscription, as we’ve got approval of some sort.
public function complete()
Cancel an outstanding subscription request to the other profile and fire the appropriate events.
public function abort()
Send notifications via email etc to group administrators about this exciting new pending moderation queue item!
public function notify()