class.organization.php
来自「Professional PHP5 code for this book」· PHP 代码 · 共 29 行
PHP
29 行
<?php require_once('class.Entity.php'); require_once('class.Individual.php'); class Organization extends Entity { public function __construct($userID) { parent::__construct($userID); $this->propertyTable['name'] = 'name1'; } public function __toString() { return $this->name; } public function getEmployees() { return DataManager::getEmployees($this->id); } public function validate() { parent::validate(); //do organization-specific validation } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?