获取对象名称
null Module_OOP_ORM::get_orm_name( string $type )
参数列表
参数 类型 描述 默认值 $type
string
$type
public function get_orm_name($type)
{
$type = strtolower($type);
if ($type=='data' && $this->_orm_name_data)
{
return $this->_orm_name_data;
}
elseif($type=='result' && $this->_orm_name_result)
{
return $this->_orm_name_result;
}
return 'ORM_' . $this->_orm_name . '_' . ucfirst($type);
}