// Base class for a reminder; it offers the factory for creating valid reminders
// tailored for a given user, as well as base methods for reminder impls.
// Sub-classes should define at least the abstract methods, and the static
// Base class for a reminder; it offers the factory for creating valid reminders
// tailored for a given user, as well as base methods for reminder impls.
// Sub-classes should define at least the abstract methods, and the static
// Constructs the Reminder object from a mandatory User instance, a list of
// key-value pairs from the `reminder_type` and `reminder` tables.
// Constructs the Reminder object from a mandatory User instance, a list of
// key-value pairs from the `reminder_type` and `reminder` tables.
// Displays a reduced version of the reminder and notifies that the action
// has been taken into account.
// Displays a reduced version of the reminder and notifies that the action
// has been taken into account.
{
pl_content_headers("text/html");
$page->changeTpl('reminder/notification.tpl', NO_SKIN);
{
pl_content_headers("text/html");
$page->changeTpl('reminder/notification.tpl', NO_SKIN);
// Displays the reminder as a standalone html snippet. It should be used
// when the reminder is the only output of a page.
// Displays the reminder as a standalone html snippet. It should be used
// when the reminder is the only output of a page.
{
pl_content_headers("text/html");
$page->changeTpl('reminder/base.tpl', NO_SKIN);
{
pl_content_headers("text/html");
$page->changeTpl('reminder/base.tpl', NO_SKIN);
// Static factories -------------------------------------------------------
// Returns a chosen class using the user data from |user|, and from the database.
// Static factories -------------------------------------------------------
// Returns a chosen class using the user data from |user|, and from the database.
// Returns an instantiation of the reminder class which name is |name|, using
// user data from |user|, and from the database.
// Returns an instantiation of the reminder class which name is |name|, using
// user data from |user|, and from the database.