Files
2021-07-05 09:56:27 +08:00

35 lines
665 B
PHP
Executable File

<?php
/**
* Created by PhpStorm.
* User: xuxb
* Date: 2020/3/6
* Time: 20:33
*/
abstract Class Entity{
protected $ci;
protected $app_id;
protected $log_file;//日志文件
public function __construct($app_id = 0){
$this->ci = & get_instance();
$this->app_id = $app_id;
}
/**
*
* @param $name
* @return mixed
* User: xuxianbin
*/
public function __get($name) {
if('_model' === substr($name, -6)){
return $this->ci->$name;
} elseif('load' == $name){
return $this->ci->load;
}
return null;
}
abstract function init($app_id);
}