summaryrefslogtreecommitdiff
path: root/src/lib/ContactMethod.class.php
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:42:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:42:32 -0400
commit716c3a5a3a36206e93431eb5f8df3471546ec4b2 (patch)
treefaccf06e355ce37f233f823a87b4a93d9f531cb2 /src/lib/ContactMethod.class.php
parent103332a30f8976fcc224c8f55dc23aba7b99e578 (diff)
start to add a plugin management framework
Diffstat (limited to 'src/lib/ContactMethod.class.php')
-rw-r--r--src/lib/ContactMethod.class.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lib/ContactMethod.class.php b/src/lib/ContactMethod.class.php
index c01374e..b01e7d3 100644
--- a/src/lib/ContactMethod.class.php
+++ b/src/lib/ContactMethod.class.php
@@ -16,20 +16,15 @@ class ContactMethod {
public function __construct($verb_slug, $addr_slug,
$verb_text, $addr_text)
{
- $this->$verb_slug = $verb_slug;
- $this->$addr_slug = $addr_slug;
- $this->$verb_text = $verb_text;
- $this->$addr_Text = $addr_text;
+ $this->verb_slug = $verb_slug;
+ $this->addr_slug = $addr_slug;
+ $this->verb_text = $verb_text;
+ $this->addr_text = $addr_text;
global $CONTACT_METHODS;
- $CONTACT_METHODS[$slug] = $this;
+ $CONTACT_METHODS[$verb_slug] = $this;
}
public function setHandler($handler) {
- $this->$handler = $handler;
+ $this->handler = $handler;
}
}
-
-new ContactMethod('sms' , 'phone' ,
- 'text message', 'cell number' );
-new ContactMethod('email' , 'email' ,
- 'email' , 'email address');