ORM数据构造
null Module_OOP_ORM_Data::__construct( [ array $array = null ] )
参数列表
参数 类型 描述 默认值 $array
array
构造时设置数据,通过此设置的数据被认为是以数据库字段field为键的数组 null
public function __construct($array = null)
{
# 对象名称
$this->_class_name = strtolower(get_class($this));
# 更新配置
$this->_renew_orm_config();
# 如果有数据,则设置数据
if ( $array && is_array($array) ) $this->__orm_callback_ini_data_($array,true);
# 标志ORM为已构造完成
$this->_orm_data_is_created = true;
}