Comments: on this page. Click to read or post your own.

Class PhoneNumberField

Description

Field for displaying phone numbers. It separates the number, the area code and optionally the country code and extension.

Located in /sapphire/forms/PhoneNumberField.php (line 8)

Object
   |
   --ViewableData
      |
      --RequestHandlingData
         |
         --FormField
            |
            --PhoneNumberField
Variable Summary
mixed $areaCode
mixed $countryCode
mixed $ext
Method Summary
static void joinPhoneNumber ( $value)
PhoneNumberField __construct ( $name, [ $title = null], [ $value = ''], [ $extension = null], [ $areaCode = null], [ $countryCode = null], [ $form = null])
void Field ()
void jsValidation ()
void parseValue ()
void saveInto ( $record)
void setValue ( $value)
void validate ( $validator)
Variables
Methods
static method joinPhoneNumber (line 53)
  • access: public
static void joinPhoneNumber ( $value)
  • $value
Constructor __construct (line 14)
  • access: public
PhoneNumberField __construct ( $name, [ $title = null], [ $value = ''], [ $extension = null], [ $areaCode = null], [ $countryCode = null], [ $form = null])
  • $name
  • $title
  • $value
  • $extension
  • $areaCode
  • $countryCode
  • $form

Redefinition of:
FormField::__construct()
Create a new field.
Field (line 24)
  • access: public
void Field ()

Redefinition of:
FormField::Field()
Returns the form field - used by templates.
jsValidation (line 113)
  • todo: Very basic validation at the moment
void jsValidation ()

Redefinition of:
FormField::jsValidation()
javascript handler Functions for each field type by default formfield doesnt have a validation function
parseValue (line 73)
  • access: protected
void parseValue ()
saveInto (line 90)
  • access: public
void saveInto ( $record)
  • $record

Redefinition of:
FormField::saveInto()
Method to save this form field into the given data object.
setValue (line 48)
  • access: public
void setValue ( $value)
  • $value

Redefinition of:
FormField::setValue()
Set the field value.
validate (line 157)
  • todo: Very basic validation at the moment
void validate ( $validator)
  • $validator

Redefinition of:
FormField::validate()
Validation Functions for each field type by default formfield doesnt have a validation function

Inherited Methods

Inherited From FormField

FormField::__construct()
FormField::addExtraClass()
FormField::attrName()
FormField::attrTitle()
FormField::attrValue()
FormField::createTag()
FormField::dataValue()
FormField::debug()
FormField::describe()
FormField::extraClass()
FormField::Field()
FormField::FieldHolder()
FormField::forTemplate()
FormField::getForm()
FormField::getTabIndex()
FormField::getTabIndexHTML()
FormField::hasClass()
FormField::hasData()
FormField::id()
FormField::isComposite()
FormField::isDisabled()
FormField::isReadonly()
FormField::jsValidation()
FormField::LeftTitle()
FormField::Link()
FormField::Message()
FormField::MessageType()
FormField::Name()
FormField::name_to_label()
FormField::performDisabledTransformation()
FormField::performReadonlyTransformation()
FormField::removeExtraClass()
FormField::Required()
FormField::RightTitle()
FormField::rootFieldSet()
FormField::saveInto()
FormField::setContainerFieldSet()
FormField::setDisabled()
FormField::setError()
FormField::setForm()
FormField::setLeftTitle()
FormField::setName()
FormField::setReadonly()
FormField::setRightTitle()
FormField::setTabIndex()
FormField::setTitle()
FormField::setValue()
FormField::SmallFieldHolder()
FormField::Title()
FormField::transform()
FormField::Type()
FormField::validate()
FormField::Value()

Inherited From RequestHandlingData

RequestHandlingData::checkAccessAction()
RequestHandlingData::getRequest()
RequestHandlingData::handleRequest()
RequestHandlingData::httpError()

Inherited From ViewableData

ViewableData::ATT_val()
ViewableData::BaseHref()
ViewableData::buildCastingHelperCache()
ViewableData::cachedCall()
ViewableData::castingHelper()
ViewableData::castingHelperPair()
ViewableData::castingObjectCreator()
ViewableData::castingObjectCreatorPair()
ViewableData::CSSClasses()
ViewableData::CurrentMember()
ViewableData::CurrentPage()
ViewableData::customise()
ViewableData::Debug()
ViewableData::defineMethods()
ViewableData::escapeTypeForField()
ViewableData::Even()
ViewableData::EvenOdd()
ViewableData::First()
ViewableData::FirstLast()
ViewableData::getField()
ViewableData::getIterator()
ViewableData::getXMLValues()
ViewableData::hasField()
ViewableData::HasPerm()
ViewableData::hasValue()
ViewableData::i18nLocale()
ViewableData::IsAjax()
ViewableData::iteratorProperties()
ViewableData::JS_val()
ViewableData::Last()
ViewableData::Me()
ViewableData::Middle()
ViewableData::MiddleString()
ViewableData::obj()
ViewableData::Odd()
ViewableData::Pos()
ViewableData::RAW_val()
ViewableData::renderWith()
ViewableData::SecurityID()
ViewableData::setCustomisedObj()
ViewableData::setField()
ViewableData::SQL_val()
ViewableData::ThemeDir()
ViewableData::Top()
ViewableData::TotalItems()
ViewableData::val()
ViewableData::XML_val()
ViewableData::__get()
ViewableData::__isset()
ViewableData::__set()

Inherited From Object

Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:44:24 +1300 by phpDocumentor 1.3.2