class.individual.php

来自「Professional PHP5 code for this book」· PHP 代码 · 共 32 行

PHP
32
字号
<?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         }   }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?