示例#1
0
 public function __construct($param = null)
 {
     if (is_array($param)) {
         parent::__construct($param);
         if (array_key_exists("ID", $param) && array_key_exists("CODE", $param) && array_key_exists("NAME", $param)) {
             $this->ID = $param["ID"];
             $this->CODE = $param["CODE"];
             $this->NAME = $param["NAME"];
         }
     } else {
         parent::__construct($param);
     }
 }
示例#2
0
文件: User.php 项目: hunglmtb/eb
 public function __construct()
 {
     $this->isReservedName = config('database.default') === 'oracle';
     parent::__construct();
 }