The following operations are supported. For a formal definition, please review the Service Description.

Web Service Links

Namespace Children of ::wsdb::types::openacs::phone

Namespace Code for ::wsdb::types::openacs::phone

namespace eval ::wsdb::types::openacs::phone {
    variable base xsd::string
    variable pattern {^\(?([1-9][0-9]{2})\)?(-|\.|\ )?([0-9]{3})(-|\.|\ )?([0-9]{4})}
    variable validate ::wsdb::types::openacs::phone::validate

}

Procedures in ::wsdb::types::openacs::phone


proc ::wsdb::types::openacs::phone::validate {
    value
} {
        variable base
        variable pattern
        if {[::wsdb::types::${base}::validate $value] && [regexp $pattern $value]} {
            return 1
        } else {
            return 0
     }}