Profile_tag_subscription.php

Summary
Profile_tag_subscription.php
Profile_tag_subscriptionTable Definition for profile_tag_subscription
Profile_tag_subscriptionSuperclass representing the subscription entry for a profile tag
schemaDefReturns an array representing the table schema in the DB.
addCreate a peopletag subscription and fire the related events.
removeDelete a peopletag subscription and fire the related events
cleanupHelper function to perform garbage collection for an unsubscription event.
insertHelper function to perform the DB insertion of a peopletag subscription record.
deleteHelper function to perform the DB delete of a peopletag subscription record.

Profile_tag_subscription

Table Definition for profile_tag_subscription

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 profile_tag_subscription

PHP version

Tested with PHP 7

File Authors

Web

Profile_tag_subscription

Superclass representing the subscription entry for a profile tag

Properties

  • __table = ‘profile_tag_subscription’ - table name
  • profile_tag_id - int(4) not_null
  • profile_id - int(4) not_null
  • created - datetime not_null default_0000-00-00%2000%3A00%3A00
  • modified - timestamp() not_null default_CURRENT_TIMESTAMP
Summary
schemaDefReturns an array representing the table schema in the DB.
addCreate a peopletag subscription and fire the related events.
removeDelete a peopletag subscription and fire the related events
cleanupHelper function to perform garbage collection for an unsubscription event.
insertHelper function to perform the DB insertion of a peopletag subscription record.
deleteHelper function to perform the DB delete of a peopletag subscription record.

schemaDef

public static function schemaDef()

Returns an array representing the table schema in the DB.

add

static function add($peopletag,
$profile)

Create a peopletag subscription and fire the related events.

Error States

  • throws an Exception if the insert to the DB fails

remove

static function remove($peopletag,
$profile)

Delete a peopletag subscription and fire the related events

Error States

  • throws an exception if the DB delete fails

cleanup

static function cleanup($profile_list)

Helper function to perform garbage collection for an unsubscription event.

insert

function insert()

Helper function to perform the DB insertion of a peopletag subscription record.

delete

function delete($useWhere = false)

Helper function to perform the DB delete of a peopletag subscription record.

public static function schemaDef()
Returns an array representing the table schema in the DB.
static function add($peopletag,
$profile)
Create a peopletag subscription and fire the related events.
static function remove($peopletag,
$profile)
Delete a peopletag subscription and fire the related events
static function cleanup($profile_list)
Helper function to perform garbage collection for an unsubscription event.
function insert()
Helper function to perform the DB insertion of a peopletag subscription record.
function delete($useWhere = false)
Helper function to perform the DB delete of a peopletag subscription record.