Innoweb\InternationalPhoneNumberField\ORM\DBPhone
Synopsis
class DBPhone
extends DBField
{
- // methods
- public void __construct()
- public void requireField()
- public void setValue()
- public void exists()
- public void scaffoldFormField()
- public string International()
- public string National()
- public string E164()
- public string RFC3966()
- public string URL()
Hierarchy
Extends
- SilverStripe\ORM\FieldType\DBField
Methods
public
- __construct() — Set the default value for "nullify empty"
- E164() — Returns the phone number in international format, but with no formatting applied, e.g. +41446681800
- International() — Returns the phone number in international format, e.g. +41 44 668 1800
- National() — Returns the phone number in national format, e.g. 044 668 1800
- RFC3966() — Returns the phone number in international format, but with all spaces and other separating symbols replaced with a hyphen, and with any phone number extension appended with ";ext=". It also will have a prefix of "tel:" added, e.g. "tel:+41-44-668-1800".
- URL() — Returns the phone number formatted as RFC3966.
- exists() — (non-PHPdoc)
- requireField() — (non-PHPdoc)
- scaffoldFormField()
- setValue()