SproutCMS

This is the code documentation for the SproutCMS project

class Subscribe

Base class for the content subscription handlers

Source code (10 results)

/sprout/config/routes.php   Highlighted file source

Line 85: $config['content_subscribe/unsub/([0-9]+)/([a-z0-9]+)'] = 'Sprout\\Controllers\\ContentSubscribeController/unsub/$1/$2';
Line 86: $config['content_subscribe/unsub_action/([0-9]+)/([a-z0-9]+)'] = 'Sprout\\Controllers\\ContentSubscribeController/unsubAction/$1/$2';

/sprout/config/routes.php   Highlighted file source

Line 85: $config['content_subscribe/unsub/([0-9]+)/([a-z0-9]+)'] = 'Sprout\\Controllers\\ContentSubscribeController/unsub/$1/$2';
Line 86: $config['content_subscribe/unsub_action/([0-9]+)/([a-z0-9]+)'] = 'Sprout\\Controllers\\ContentSubscribeController/unsubAction/$1/$2';

/sprout/Controllers/ContentSubscribeController.php   Highlighted file source

Line 36: * Subscribers are emailed regarding new/updated content as various subscription handlers see fit
Line 38: class ContentSubscribeController extends Controller
Line 48: * Unsubscribe a user from a subscription (form)
Line 78: $inst = Sprout::instance($row['handler_class'], 'Sprout\\Helpers\\Subscribe');
Line 91: $view = new View('sprout/content_unsubscribe_form');
Line 97: $page_view->page_title = 'Unsubscribe';
Line 105: * Unsubscribe a user from a subscription (action)
Line 125: if (empty($_POST['unsubscribe'])) {
Line 127: Url::redirect("content_subscribe/unsub/{$id}/{$code}");
Line 138: foreach ($_POST['unsubscribe'] as $id) {
Line 144: Notification::confirm('You have been unsubscribed');
Line 154: Cron::start("Content subscribe");
Line 207: $inst = Sprout::instance($class, 'Sprout\\Helpers\\Subscribe');
Line 265: usort($items, 'Sprout\\Helpers\\ContentSubscribe::tsSort');
Line 275: $view = new View('sprout/email/content_subscribe');
Line 276: $view->unsubscribe_url = Subsites::getAbsRoot($subsite['id']) . "content_subscribe/unsub/{$deets['id']}/{$deets['code']}";

/sprout/Controllers/ContentSubscribeController.php   Highlighted file source

Line 36: * Subscribers are emailed regarding new/updated content as various subscription handlers see fit
Line 38: class ContentSubscribeController extends Controller
Line 48: * Unsubscribe a user from a subscription (form)
Line 78: $inst = Sprout::instance($row['handler_class'], 'Sprout\\Helpers\\Subscribe');
Line 91: $view = new View('sprout/content_unsubscribe_form');
Line 97: $page_view->page_title = 'Unsubscribe';
Line 105: * Unsubscribe a user from a subscription (action)
Line 125: if (empty($_POST['unsubscribe'])) {
Line 127: Url::redirect("content_subscribe/unsub/{$id}/{$code}");
Line 138: foreach ($_POST['unsubscribe'] as $id) {
Line 144: Notification::confirm('You have been unsubscribed');
Line 154: Cron::start("Content subscribe");
Line 207: $inst = Sprout::instance($class, 'Sprout\\Helpers\\Subscribe');
Line 265: usort($items, 'Sprout\\Helpers\\ContentSubscribe::tsSort');
Line 275: $view = new View('sprout/email/content_subscribe');
Line 276: $view->unsubscribe_url = Subsites::getAbsRoot($subsite['id']) . "content_subscribe/unsub/{$deets['id']}/{$deets['code']}";

/sprout/Helpers/ColModifierContentSubscription.php   Highlighted file source

Line 22: $inst = Sprout::instance($subscription['handler_class'], 'Sprout\\Helpers\\Subscribe');

/sprout/Helpers/ColModifierContentSubscription.php   Highlighted file source

Line 22: $inst = Sprout::instance($subscription['handler_class'], 'Sprout\\Helpers\\Subscribe');

/sprout/Helpers/ContentSubscribe.php   Highlighted file source

Line 16: class ContentSubscribe
Line 20: * Subscribe a user to a specified handler.
Line 27: public static function subscribe($handler_class, array $handler_settings, $name, $email)

/sprout/Helpers/Subscribe.php   Highlighted file source

Line 19: abstract class Subscribe {
Line 24: * @param array $handler_settings The settings provided when the user subscribed
Line 41: * @param array $handler_settings The settings provided when the user subscribed

/sprout/sprout_load.php   Highlighted file source

Line 60: Register::cronJob('daily', 'Sprout\\Controllers\\ContentSubscribeController', 'cronSendSubscriptions');

/sprout/sprout_load.php   Highlighted file source

Line 60: Register::cronJob('daily', 'Sprout\\Controllers\\ContentSubscribeController', 'cronSendSubscriptions');

A total of 46 lines in 10 files were found