1 | <?php |
||
18 | class PhoneField extends Varchar |
||
|
|||
19 | { |
||
20 | private static $default_country_code = "64"; |
||
21 | |||
22 | private static $casting = array( |
||
23 | "TellLink" => "Varchar", |
||
24 | "CallToLink" => "Varchar" |
||
25 | ); |
||
26 | |||
27 | /** |
||
28 | * This method is accessed by other pages! |
||
29 | * |
||
30 | * @param int $countryCode (e.g. 64) |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function TellLink($countryCode = "") |
||
53 | |||
54 | |||
55 | |||
56 | /** |
||
57 | * |
||
58 | * @param countryCode $countryCode (e.g. 64) |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | public function CallToLink($countryCode = "") |
||
66 | |||
67 | /** |
||
68 | * @see DBField::scaffoldFormField() |
||
69 | * |
||
70 | * @param string $title (optional) |
||
71 | * @param array $params (optional) |
||
72 | * |
||
73 | * @return PhoneNumberField | NullableField |
||
74 | */ |
||
75 | public function scaffoldFormField($title = null, $params = null) |
||
83 | |||
84 | protected function literalLeftTrim($str, $prefix) |
||
91 | |||
92 | } |
||
93 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.