Commit 2998ab57 authored by Penny Leach's avatar Penny Leach
Browse files

added final notification plugin skeleton, added abstract function in

base class
parent c9f15f8e
<?php
/**
* This program is part of Mahara
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage notification/email
* @author Penny Leach <penny@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined('INTERNAL') || die();
require_once(get_config('docroot') . 'notification/lib.php');
class PluginNotificationEmail extends PluginNotification {
public static function notify_user($user, $data) {
// @todo
}
}
?>
<?php
/**
* This program is part of Mahara
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage core or plugintype/pluginname
* @author Your Name <you@example.org>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2006102700;
$config->release = '0.1';
?>
......@@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package mahara
* @subpackage notification/internal
* @subpackage notification/emaildigest
* @author Penny Leach <penny@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
......@@ -26,8 +26,13 @@
defined('INTERNAL') || die();
class PluginNotificationEmaildigest extends Plugin {
require_once(get_config('docroot') . 'notification/lib.php');
class PluginNotificationEmaildigest extends PluginNotification {
public static function notify_user($user, $data) {
// @todo
}
}
?>
......@@ -26,7 +26,13 @@
defined('INTERNAL') || die();
class PluginNotificationInternal extends Plugin {
require_once(get_config('docroot') . 'notification/lib.php');
class PluginNotificationInternal extends PluginNotification {
public static function notify_user($user, $data) {
// @todo
}
}
......
......@@ -26,5 +26,10 @@
defined('INTERNAL') || die();
abstract class PluginNotification extends Plugin {
public abstract static function notify_user($user, $data);
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment