]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - _darcs/pristine/classes/Sms_carrier.php
replace all tabs with four spaces
[quix0rs-gnu-social.git] / _darcs / pristine / classes / Sms_carrier.php
1 <?php
2 /**
3  * Table Definition for sms_carrier
4  */
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
6
7 class Sms_carrier extends Memcached_DataObject 
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
12     public $__table = 'sms_carrier';                     // table name
13     public $id;                              // int(4)  primary_key not_null
14     public $name;                            // varchar(64)  unique_key
15     public $email_pattern;                   // varchar(255)   not_null
16     public $created;                         // datetime()   not_null
17     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
18
19     /* Static get */
20     function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Sms_carrier',$k,$v); }
21
22     /* the code above is auto generated do not remove the tag below */
23     ###END_AUTOCODE
24     
25     function toEmailAddress($sms) {
26         return sprintf($this->email_pattern, $sms);
27     }
28 }