\jmwl\commandCommon

use jmwl\command\Common as jmcrudcommon;

Summary

Methods
Properties
Constants
getCamelizeName()
getFieldListName()
getEnum()
getParseNameData()
getFieldType()
isMatchSuffix()
$enumRadioSuffix
$setCheckboxSuffix
$intDateSuffix
$switchSuffix
$editorSuffix
$citySuffix
$rangeSuffix
$jsonSuffix
$tagSuffix
$selectpageSuffix
$selectpagesSuffix
$imageField
$fileField
$internalKeywords
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$enumRadioSuffix

$enumRadioSuffix : 

Enum类型识别为单选框的结尾字符,默认会识别为单选下拉列表

Type

$setCheckboxSuffix

$setCheckboxSuffix : 

Set类型识别为复选框的结尾字符,默认会识别为多选下拉列表

Type

$intDateSuffix

$intDateSuffix : 

Int类型识别为日期时间的结尾字符,默认会识别为日期文本框

Type

$switchSuffix

$switchSuffix : 

开关后缀

Type

$editorSuffix

$editorSuffix : 

富文本后缀

Type

$citySuffix

$citySuffix : 

城市后缀

Type

$rangeSuffix

$rangeSuffix : 

时间区间后缀

Type

$jsonSuffix

$jsonSuffix : 

JSON后缀

Type

$tagSuffix

$tagSuffix : 

标签后缀

Type

$selectpageSuffix

$selectpageSuffix : 

Selectpage对应的后缀

Type

$selectpagesSuffix

$selectpagesSuffix : 

Selectpage多选对应的后缀

Type

$imageField

$imageField : 

Type

$fileField

$fileField : 

识别为文件字段

Type

$internalKeywords

$internalKeywords : 

Type

Methods

getCamelizeName()

getCamelizeName(  $uncamelized_words,   $separator = '_') 

Parameters

$uncamelized_words
$separator

getFieldListName()

getFieldListName(  $field) 

Parameters

$field

getEnum()

getEnum(  $getEnum,   $controllerAssignList,   $field,   $itemArr = '',   $inputType = '') 

Parameters

$getEnum
$controllerAssignList
$field
$itemArr
$inputType

getParseNameData()

getParseNameData(string  $module, string  $name, string  $table, string  $type) : array

获取已解析相关信息

Parameters

string $module

模块名称

string $name

自定义名称

string $table

数据表名

string $type

解析类型,本例中为controller、model、validate

Returns

array

getFieldType()

getFieldType(  $v) 

Parameters

$v

isMatchSuffix()

isMatchSuffix(string  $field, mixed  $suffixArr) : boolean

判断是否符合指定后缀

Parameters

string $field

字段名称

mixed $suffixArr

后缀

Returns

boolean