professional-php-03-class.PhoneNumber.php / php
<?php require_once('class.PropertyObject.php'); class PhoneNumber extends PropertyObject { function __construct(arData = DataManager::getPhoneNumberData(arData); this->propertyTable['id'] = 'phoneid'; this->propertyTable['number'] = 'snumber'; this->propertyTable['type'] = 'stype'; } function validate() { if(!this->errors['number'] = 'You must supply a phone number.'; } if(sizeof(this->number . (this->extension : ''); } } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.