Inherits DataItem.
|
static | fromToken ($token) |
| Retreive the blog subscriber record from the token. More...
|
|
Definition at line 39 of file blog_subscriber.inc.
◆ Blog()
◆ fromToken()
static BlogSubscriber::fromToken |
( |
|
$token | ) |
|
|
static |
Retreive the blog subscriber record from the token.
- Parameters
-
string | $token | the token identifying the subscriber record |
Definition at line 75 of file blog_subscriber.inc.
◆ getBlogUrl()
BlogSubscriber::getBlogUrl |
( |
| ) |
|
Merge code 'blog_url'.
article_id is supplied in the calling code.
- Returns
- string
Definition at line 108 of file blog_subscriber.inc.
110 return $this->
Blog()->getURL();
◆ getUnsubscribeUrl()
BlogSubscriber::getUnsubscribeUrl |
( |
| ) |
|
Merge Code 'unsubscribe_url'.
- Returns
- string
Definition at line 93 of file blog_subscriber.inc.
96 $url = ($_SERVER[
'HTTPS']) ?
"https://" :
"http://";
98 return $url .
$config[
"http_host"] .
"/action/blog/unsubscribe?subscription_token={$this->subscription_token}";
◆ $fields
Initial value:= array("blog_subscriber_id" => Number,
"blog_id" => Number,
"subscriber_email" => String,
"first_name" => String,
"last_name" => String,
"organization" => String,
"subscription_type" => String,
"subscription_token" => String
)
Definition at line 45 of file blog_subscriber.inc.
◆ $hiddenFields
BlogSubscriber::$hiddenFields = array("subscription_token") |
◆ $primary_key
BlogSubscriber::$primary_key = "blog_subscriber_id" |
◆ $relations
BlogSubscriber::$relations |
◆ $subscriptionTypes
BlogSubscriber::$subscriptionTypes |
|
static |
Initial value:= array(
"instant" => "Instant Notification",
"daily" => "Daily Digest",
"weekly" => "Weekly Digest",
)
Definition at line 65 of file blog_subscriber.inc.
◆ $table
BlogSubscriber::$table = "blog_subscriber" |
The documentation for this class was generated from the following file: