\Common\ApiModelApi

Summary

Methods
Properties
Constants
get_document_model()
get_model_by_id()
get_model_attribute()
parse_field_attr()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_document_model()

get_document_model(integer  $id = null, string  $field = null) : array

获取文档模型信息

Parameters

integer $id

模型ID

string $field

模型字段

Returns

array

get_model_by_id()

get_model_by_id(  $id) 

Parameters

$id

get_model_attribute()

get_model_attribute(  $model_id,   $group = true) : string

获取属性信息并缓存

Parameters

$model_id
$group

Returns

string —

属性信息

parse_field_attr()

parse_field_attr(  $string) 

Parameters

$string