topical media & game development

talk show tell print

professional-php-03-class.Individual.php / php



  <?php
    require_once('class.Entity.php');
    require_once('class.Organization.php');
   
    class Individual extends Entity {
     
      public function __construct(userID) {
        parent::__construct(userID);
       
        this->propertyTable['firstname'] = 'name1';
        this->propertyTable['lastname'] = 'name2';
  
      }
  
      public function __toString() {
        return this->firstname . ' ' . this->lastname;
      }
     
      public function getEmployer() {
        return DataManager::getEmployer(this->id);
      }
     
      public function validate() {
        parent::validate();
  
        //add individual-specific validation
       
      }
   
    }
  ?>
  


(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.