You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.
DiliCMS edited this page Aug 28, 2012
·
2 revisions
自定义字段存放位置
extensions/fields
自定义字段命名规则
自定义字段的组成
1. 标识, 唯一
2. 类型名称
命名
文件名称是用"field_标识.php"方式存在,文件中类名和文件名称一致.
自定义字段类模板
class field_你的自定义标识
{
public $k = '你的自定义标识';
public $v = '字段名称';
public function __construct(){}
public function on_info($data){}
public function on_form($field, $default= '', $has_tip = TRUE){}
public function on_list($field, $record){}
public function on_search($field, $default){}
public function on_do_search($field, & $condition, & $where, & $suffix ){}
public function on_do_post($field, & $post){}
}