diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:30:05 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-20 15:30:05 -0400 |
commit | 5fd0a788d58bdd7d1348e379a6ecb56498f49718 (patch) | |
tree | 03f63d691ad85ef701fa02462a86db483a412e20 /classes | |
parent | f80c8f8ab079e290cc72ffc071d926cef79273cc (diff) |
start sms settings
darcs-hash:20080720193005-84dde-97e098996309550dc98b658923d84620e7715c69.gz
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Sms_carrier.php | 4 | ||||
-rw-r--r-- | classes/User.php | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/classes/Sms_carrier.php b/classes/Sms_carrier.php index 5fb741731..26a88e360 100644 --- a/classes/Sms_carrier.php +++ b/classes/Sms_carrier.php @@ -21,4 +21,8 @@ class Sms_carrier extends DB_DataObject /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + + function toEmailAddress($sms) { + return sprintf($this->email_pattern, $sms); + } } diff --git a/classes/User.php b/classes/User.php index 0292b5582..82e1002a4 100644 --- a/classes/User.php +++ b/classes/User.php @@ -107,4 +107,8 @@ class User extends DB_DataObject } return $profile->getCurrentNotice($dt); } + + function getCarrier() { + return Sms_carrier::staticGet($this->carrier); + } } |