From 570901ba4e526be37afd0cbbe018cb0500a7cda1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Sep 2011 01:22:27 -0400 Subject: Refactor a bit * move a lot of stuff out of MessageManager * move models from lib to models --- src/plugins/InformationPlugin.class.php | 2 ++ src/plugins/SenderGVSMS.class.php | 5 ++--- src/plugins/SenderIdentica.class.php | 5 ++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/InformationPlugin.class.php b/src/plugins/InformationPlugin.class.php index 6a37370..0267ccf 100644 --- a/src/plugins/InformationPlugin.class.php +++ b/src/plugins/InformationPlugin.class.php @@ -22,4 +22,6 @@ class InformationPlugin extends Plugin { 'Why you want to be on the team', 'textarea'); } + public function sendPrivate($to, $id, $subject, $body) {} + public function sendBroadcast($id, $subject, $body) {} } diff --git a/src/plugins/SenderGVSMS.class.php b/src/plugins/SenderGVSMS.class.php index 90f9e69..7919007 100644 --- a/src/plugins/SenderGVSMS.class.php +++ b/src/plugins/SenderGVSMS.class.php @@ -1,9 +1,8 @@ '', 'password'=>'', 'length'=>160); @@ -23,7 +22,7 @@ class SenderGVSMS extends SenderPrivate { $this->config['password']); } - public function send($phoneNum, $id, $subject, $body) { + public function sendPrivate($phoneNum, $id, $subject, $body) { global $shorturl, $messenger; $url = $shorturl->get($messenger->id2url($id)); $maxlen = $this->config['length']-(strlen($url)+1); diff --git a/src/plugins/SenderIdentica.class.php b/src/plugins/SenderIdentica.class.php index ac62dc3..1e778f6 100644 --- a/src/plugins/SenderIdentica.class.php +++ b/src/plugins/SenderIdentica.class.php @@ -1,9 +1,8 @@ '', 'password'=>'', 'length'=>140); @@ -24,7 +23,7 @@ class SenderIdentica extends SenderBroadcast { $this->config['password']); } - public function send($id, $subject, $body) { + public function sendBroadcast($id, $subject, $body) { global $shorturl, $messenger; $url = $shorturl->get($messenger->id2url($id)); $maxlen = $this->config['length']-(strlen($url)+1); -- cgit v1.2.3-2-g168b