library/Dot/Validate/Phone.php

Properties

Description

DotBoost Technologies Inc.

DotKernel Application Framework


Classes

Dot_Validate_Phone

Properties

 
No 
No 

Description

Validate Phone Number

Methods

__construct, getArea, getData, getError, getPrefix, isValid,

__construct( array   $options = array, ) : Dot_Validate_Phone

Description

Construct that receive as parameters the phone number and some options as array

Arguments

Name Type Description Default
$options array [optional] array

Return value

Type Description
Dot_Validate_Phone

Tags

Name Description
access public

getArea( string   $phone, ) : string

Description

Return phone area. If no param set when calling this method, get phone area from isValid() method

Arguments

Name Type Description Default
$phone string [optional]

Return value

Type Description
string

getData( ) : array

Description

Get valid data

Return value

Type Description
array

Tags

Name Description
access public

getError( ) : array

Description

Get errors encounter on validation

Return value

Type Description
array

Tags

Name Description
access public

getPrefix( string   $phone, ) : string

Description

Return phone prefix. If no param set when calling this method, get phone prefix from isValid() method

Arguments

Name Type Description Default
$phone string [optional]

Return value

Type Description
string

isValid( ) : bool

Description

Validate phone number by country code

Return value

Type Description
bool

Tags

Name Description
access public

Properties

$_area, $_countryCode, $_data, $_error, $_options, $_prefix, $_value,

  private  $_area =

Phone areastring


  private  $_countryCode = US

Country code for which the phone should be validatestring


  private  $_data = array

Valid data after validationarray


  private  $_error = array

Errors found on validationarray


  private  $_options = array

Phone optionsarray


  private  $_prefix =

Phone prefixstring


  private  $_value =

Value of the phone to be validatestring


Documentation was generated by DocBlox.

Packages

  • Admin
    • Admin
      Admin Model Here are all the actions related to the user
    • Admin_View
      Admin View Class class that prepare output related to User controller
    • System
      System Model Here are all the actions related to the system settings
    • System_View
      System View Class class that prepare output related to User controller
    • User
      User Model Here are all the actions related to the user
    • User_View
      User View Class class that prepare output related to User controller
    • View
      Admin View abstract over the Dot_Template class
  • DotKernel
    • DotLibrary
    • Frontend
      • Page
        Page Model Dummy class, is not doing anything
      • Page
        Page Model Dummy class, is not doing anything yet
      • Page_View
        Page View Class functions that prepare output related to Page controller
      • User
        User Model Here are all the actions related to the user
      • User_View
        User View Class class that prepare output related to User controller
      • View
        View Model abstract over the Dot_Template class
    • Mobile
      • Page_View
        Page View Class functions that prepare output related to Page controller
      • View
        View Model abstract over the Dot_Template class
    • Rss
      • Sample
        Sample Model Here are all the actions related to the Sample
      • Sample_View
        Sample View Class
      • View
        View class - used for outputting rss content