📄 class.individual.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 } }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -