topical media & game development
professional-php-03-class.Address.php / php
<?php
require_once('class.PropertyObject.php');
class Address extends PropertyObject {
function __construct(arData = DataManager::getAddressData(arData);
this->propertyTable['id'] = 'addressid';
this->propertyTable['address1'] = 'saddress1';
this->propertyTable['city'] = 'scity';
this->propertyTable['zipcode'] = 'spostalcode';
this->state) != 2) {
this->zipcode) != 5 &&
strlen(this->errors['zipcode'] = 'Please enter a 5- or 9-digit zip code';
}
if(!this->errors['address1'] = 'Address 1 is a required field.';
}
if(!this->errors['city'] = 'City is a required field.';
}
if(sizeof(this->address1 . ', ' .
this->city . ', ' .
this->zipcode;
}
}
?>
(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.