\Phpcmf\LibraryForm

Summary

Methods
Properties
Constants
id()
get_myfields()
auto_form_data()
auto_form_data_delete()
auto_form_data_ajax()
validation()
get_mobile_code()
set_mobile_code()
check_captcha()
check_captcha_value()
check_phone()
check_email()
check_username()
check_member()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$myfields
N/A

Properties

$id

$id : 

Type

$myfields

$myfields : 

Type

Methods

id()

id(  $id) 

Parameters

$id

get_myfields()

get_myfields() 

auto_form_data()

auto_form_data(  $name,   $data) 

Parameters

$name
$data

auto_form_data_delete()

auto_form_data_delete(  $name) 

Parameters

$name

auto_form_data_ajax()

auto_form_data_ajax(  $name) 

自动临时存储表单数据ajax

Parameters

$name

validation()

validation(  $data,   $config,   $fields = array(),   $old = array()) 

验证字段格式 字段名 => [name显示名称, rule验证规则(支持正则), length长度] field 自定义字段配置 id 是否修改的条件

Parameters

$data
$config
$fields
$old

get_mobile_code()

get_mobile_code(  $phone) 

Parameters

$phone

set_mobile_code()

set_mobile_code(  $phone,   $code) 

Parameters

$phone
$code

check_captcha()

check_captcha(  $id) 

Parameters

$id

check_captcha_value()

check_captcha_value(  $data) 

Parameters

$data

check_phone()

check_phone(  $value) 

Parameters

$value

check_email()

check_email(  $value) 

Parameters

$value

check_username()

check_username(  $value) 

Parameters

$value

check_member()

check_member(  $value) : \Phpcmf\Library\flase不通过

验证会员名称是否存在

Parameters

$value

当前字段提交的值

Returns

\Phpcmf\Library\flase不通过 —

, true通过