summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/Sms_carrier.php4
-rw-r--r--classes/User.php4
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);
+ }
}