\Phpcmf\LibraryField

自定义字段

Summary

Methods
Properties
Constants
app()
get_myfields()
get_field_format()
is_hide_merge_group()
toform()
sys_field()
get()
option()
type()
get_value()
format_value()
$post
$data
$value
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$myfields
$is_hide_merge_group
$app
$objects
$format
N/A

Properties

$post

$post : 

Type

$data

$data : 

Type

$value

$value : 

Type

$myfields

$myfields : 

Type

$is_hide_merge_group

$is_hide_merge_group : 

Type

$app

$app : 

Type

$objects

$objects : 

Type

$format

$format : 

Type

Methods

app()

app(  $name) 

设置应用

Parameters

$name

get_myfields()

get_myfields() 

get_field_format()

get_field_format() 

is_hide_merge_group()

is_hide_merge_group() 

toform()

toform(array  $id,   $field, array  $data = array(),   $show) : string

字段输出表单

Parameters

array $id

数据id

$field
array $data

表单值

$show

Returns

string

sys_field()

sys_field(  $field) 

系统内置字段

Parameters

$field

get()

get(string  $name,   $id,   $post = array()) : object

获取字段类别对象

Parameters

string $name

字段类别名称

$id
$post

Returns

object

option()

option(string  $name, array  $option = NULL, array  $field = NULL) : string

自定义字段选项信息

Parameters

string $name

字段类别名称

array $option

选项值

array $field

字段集合

Returns

string

type()

type(  $name) : array

获取可用字段类别

Parameters

$name

Returns

array

get_value()

get_value(string  $field, string  $value) : 

格式化自定义字段内容

Parameters

string $field

字段类型

string $value

字段值

Returns

format_value()

format_value(array  $fields, array  $data, \Phpcmf\Library\intval  $curpage = 1) : string

字段输出格式化

Parameters

array $fields

可用字段集

array $data

数据

\Phpcmf\Library\intval $curpage

分页id

Returns

string