topical media & game development
professional-php-03-class.Entity.php / php
<?php
require_once('class.PropertyObject.php');
require_once('class.PhoneNumber.php');
require_once('class.Address.php');
require_once('class.EmailAddress.php');
abstract class Entity extends PropertyObject {
private _addresses;
private entityID) {
entityID);
parent::__construct(this->propertyTable['entityid'] = 'entityid';
this->propertyTable['name1'] = 'sname1';
this->propertyTable['type'] = 'ctype';
entityID);
entityID);
entityID);
}
function setID(val) {
val);
}
function phonenumbers(this->_phonenumbers[this->_phonenumbers[this->_phonenumbers);
}
function addPhoneNumber(PhoneNumber this->_phonenumbers[] = index) {
if(!isset(index])) {
throw new Exception('Invalid address specified!');
} else {
return index];
}
}
function getNumberOfAddresses() {
return sizeof(address) {
address;
}
function emails(this->_emails[this->_emails[this->_emails);
}
function addEmail(Email this->_emails[] =
(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.