Logo Search packages:      
Sourcecode: d-push version File versions  Download package

Mail_RFC822::_validateSubdomain ( subdomain )

Function to validate a subdomain: subdomain = domain-ref / domain-literal


string$subdomainThe string to check.
boolean Success or failure.

Definition at line 794 of file z_RFC822.php.

References _validateAtom(), and _validateDliteral().

Referenced by _validateDomain().

        if (preg_match('|^\[(.*)]$|', $subdomain, $arr)){
            if (!$this->_validateDliteral($arr[1])) return false;
        } else {
            if (!$this->_validateAtom($subdomain)) return false;

        // Got here, so return successful.
        return true;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index