Class HtmlForm1
Located at easycore/EasyForm.php
public
|
#
__construct( $model1, $visibleField = [], $invisibleField = [], $hiddenField = ['id', 'created_at', 'updated_at', 'last_login_at'] )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setFieldAttribute( array $fieldName_equals_properties = ['user_name'=>['type'=>'text', 'tag'=>'input', 'style'=>'color:black']] )
Set Property of Field, Like Html Attribute Property, All Control Make use of value attr for there value multi attribute is allowed with coma separated, e.g ->setFieldAttribute([ 'about, address'=>['style'=>'height:200px;'], 'phone_number'=>['type'=>'number'] ]) |
public
|
|
public
|
#
setSimilarFieldAttribute( array $fieldNameList = ['user_name', 'full_name'], array $attribute_equals_value = ['type'=>'text', 'required'] )
|
public
|
#
setFieldGroupAttribute( array $fieldName_equals_properties = ['user_name'=>['class'=>'form-group']] )
|
public
|
|
public static
|
|
public
null|string
|
|
public
|
|
public
|
#
renderTable( array $column_list = [], $column_list_as_invisible = false, $whereRawClause = '', callable $onCreate = null, callable $onUpdate = null, callable $onDelete = null )
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
string
|
|
public static
|
|
public static
|
|
public static
|
|
public static
array
|
#
extractValue( array $attribute = ['value' => null, 'name'=>null] )
get value from $_REQUEST or ArrayData Passed to Control Value ($userInfo) |
public static
null|string
|
|
public static
null|string
|
#
addPassword( null $LabelValueOrAttr = null, array $inputAttribute = [], array $formGroupAttribute = [] )
this enable toggle attribute for input field and type=password |
public static
string
|
#
addTextArea( null $LabelValueOrAttr = null, array $textAreaAttribute = [], array $formGroupAttribute = [] )
Add TextArea component |
public static
string
|
|
public static
string
|
|
public static
|
|
public static
|
public static
boolean
|
$FLAG_SHOW_EXEC_ARRAY
|
#
false
|
public static
string
|
$BREAK_DELIMITER
|
#
'<h4 style="border-bottom: 2px solid #9f9f9f;color: #757575;margin-top:45px;padding-bottom:5px;"> %s </h4><br/>'
|
public
|
$tagName
|
#
null
|
public
|
$model
|
#
null
|
public
array
|
$title
|
#
[]
|
public
array
|
$allowFields
|
#
[]
|
public
array
|
$denyFields
|
#
[]
|
public
array
|
$breakFields
|
#
[]
|
public
array
|
$manualModel
|
#
[]
|
public
array
|
$fieldGroup_equals_properties
|
#
[]
|
public
array
|
$fieldName_equals_properties
|
#
[]
|
public
array
|
$fieldName_equals_displayName
|
#
[]
|
public
array
|
$tag_equals_attribute
|
#
[]
|
public static
boolean
|
$USE_REQUEST_VALUE
|
#
true
|
public static
boolean
|
$AUTO_PLACEHOLDER
|
#
true
|
public static
boolean
|
$ENABLE_TOGGLE_PASSWORD_INPUT
|
#
false
|
public static
boolean
|
$AUTO_ID_SET_FROM_NAME
|
#
true
|
public static
boolean
|
$AUTO_LABEL
|
#
false
|
public static
string
|
$THEME
|
#
'bootstrap'
|
public static
boolean
|
$AS_VERTICAL
|
#
true
|
public static
string
|
$THEME_FORM_INPUT_CLASS
|
#
'form-control form-control-lg input-lg'
|
public static
string
|
$THEME_LABEL_CLASS
|
#
'control-label'
|
public static
string
|
$THEME_FORM_GROUP_CLASS
|
#
'form-group'
|
public static
string
|
$THEME_COL_CLASS
|
#
'col col-'
|
public static
string
|
$THEME_BUTTON_CLASS
|
#
'btn btn-lg btn-'
|