EasyBlogTableSubscriptions
extends EasyBlogTable
in package
Table of Contents
Properties
- $created : mixed
- $email : mixed
- $fullname : mixed
- $id : mixed
- $uid : mixed
- $user_id : mixed
- $utype : mixed
- $_supportNullValue : mixed
Methods
- __construct() : mixed
- bind() : mixed
- Bind the table properties
- getDBO() : mixed
- Retrieves the database object
- getInstance() : mixed
- Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
- getObject() : mixed
- Retrieves the object of the subscription item
- getParams() : mixed
- Generic method to retrive raw json params from the table
- getSubscriptionDate() : mixed
- Retrieves the date object for the creation date of this subscription
- getTitle() : mixed
- Retrieves the translated title
- isSubscribed() : mixed
- Determine this current email whether already subscribed
- notifyAdmin() : mixed
- Notifies site admin when a new user subscribes
- notifyAuthor() : mixed
- Notifies author when a new user subscribes to their blog
- processConfirmationEmail() : mixed
- Process subscription confirmation email
- reset() : void
- Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
- store() : mixed
- Override the parents store method so we can send confirmation email
- toArray() : mixed
- Converts a table layer into an array
Properties
$created
public
mixed
$created
= \null
public
mixed
$email
= ''
$fullname
public
mixed
$fullname
= ''
$id
public
mixed
$id
= \null
$uid
public
mixed
$uid
= \null
$user_id
public
mixed
$user_id
= \null
$utype
public
mixed
$utype
= \null
$_supportNullValue
protected
mixed
$_supportNullValue
= true
Methods
__construct()
public
__construct(mixed &$db) : mixed
Parameters
- $db : mixed
bind()
Bind the table properties
public
bind(mixed $src[, mixed $ignore = [] ]) : mixed
Parameters
- $src : mixed
- $ignore : mixed = []
Tags
getDBO()
Retrieves the database object
public
getDBO() : mixed
Tags
getInstance()
Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
public
static getInstance(string $type[, string $prefix = 'JTable' ][, array<string|int, mixed> $config = [] ]) : mixed
Parameters
- $type : string
-
The type (name) of the JTable class to get an instance of.
- $prefix : string = 'JTable'
-
An optional prefix for the table class name.
- $config : array<string|int, mixed> = []
-
An optional array of configuration values for the JTable object.
Tags
Return values
mixed —A JTable object if found or boolean false if one could not be found.
getObject()
Retrieves the object of the subscription item
public
getObject() : mixed
Tags
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getSubscriptionDate()
Retrieves the date object for the creation date of this subscription
public
getSubscriptionDate() : mixed
Tags
getTitle()
Retrieves the translated title
public
getTitle() : mixed
Tags
isSubscribed()
Determine this current email whether already subscribed
public
isSubscribed(mixed $email, mixed $uid, mixed $type) : mixed
Parameters
- $email : mixed
- $uid : mixed
- $type : mixed
Tags
notifyAdmin()
Notifies site admin when a new user subscribes
public
notifyAdmin() : mixed
Tags
notifyAuthor()
Notifies author when a new user subscribes to their blog
public
notifyAuthor([mixed $subscriptionType = EBLOG_SUBSCRIPTION_BLOGGER ]) : mixed
Parameters
- $subscriptionType : mixed = EBLOG_SUBSCRIPTION_BLOGGER
Tags
processConfirmationEmail()
Process subscription confirmation email
public
processConfirmationEmail(mixed $isNew, mixed $forceUpdate, mixed $updateNulls) : mixed
Parameters
- $isNew : mixed
- $forceUpdate : mixed
- $updateNulls : mixed
Tags
reset()
Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
public
reset() : void
Tags
store()
Override the parents store method so we can send confirmation email
public
store([mixed $updateNulls = false ][, mixed $forceUpdate = false ]) : mixed
Parameters
- $updateNulls : mixed = false
- $forceUpdate : mixed = false
Tags
toArray()
Converts a table layer into an array
public
toArray() : mixed