1 | <?php |
||
16 | class USPhoneNumber extends Varchar |
||
17 | { |
||
18 | |||
19 | |||
20 | /** |
||
21 | * @return string e.g. (555) 555-5555 |
||
22 | */ |
||
23 | public function Nice() |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @param boolean $includeIntprefix (includes +1 at the beginning of the number) |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function TelLink($includeIntprefix = false) |
||
41 | |||
42 | /** |
||
43 | * @param boolean $includeIntprefix (includes +1 at the beginning of the number) |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function CallToLink($includeIntprefix = false) |
||
52 | |||
53 | /** |
||
54 | * @param boolean $includeIntprefix (includes +1 at the beginning of the number) |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function initializePhoneString($includeIntprefix){ |
||
65 | |||
66 | /** |
||
67 | * @param string $str |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public function removeNonNumbericChars($str){ |
||
74 | |||
75 | /* |
||
76 | * @param DataObject $dataObject |
||
77 | */ |
||
78 | public function saveInto($dataObject) |
||
84 | |||
85 | public function prepValueForDB($value) |
||
90 | |||
91 | /** |
||
92 | * @param string $val |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function cleanInput($val) |
||
100 | |||
101 | |||
102 | /** |
||
103 | * (non-PHPdoc) |
||
104 | * @see DBField::scaffoldFormField() |
||
105 | */ |
||
106 | public function scaffoldFormField($title = null, $params = null) |
||
116 | } |
||
117 |