我是OOP的新手。我一直在使用一个有两个函数的类:
class department{
public $departmentid;
function __construct($todestroy){
$this->departmentid = $todestroy;
}
function viewDeptFunct(){
require_once "../db/class_db_connect.php";
require_once "../config.php";
$fetch_view_sql = "SELECT