Properties

$FieldsAlgorithms

$FieldsAlgorithms : 

Fields algorithms.

Type

$SessionId

$SessionId : 

Session id.

Type

$EntityName

$EntityName : 

Entity name.

Type

$Layout

$Layout : 

Layout.

Type

$Batch

$Batch : 

Multiple forms.

Type

Methods

__construct()

__construct(  $FieldsAlgorithms,   $SessionId,   $EntityName,   $Layout,   $Batch = false) 

Constructor.

Parameters

$FieldsAlgorithms
$SessionId
$EntityName
$Layout
$Batch

get_custom_field()

get_custom_field(  $Name,   $Record = false) 

Method compiles custom control.

Parameters

$Name
$Record

compile_form_fields()

compile_form_fields(  $Record = false) 

Method compiles form fields.

Parameters

$Record

set_session_id()

set_session_id(  $SessionId) 

Setting session id.

Parameters

$SessionId

get_form_width()

get_form_width() 

Method returns amount of columns in the form.

get_field_layout()

get_field_layout(  $FieldName) 

Method returns field's layout.

Parameters

$FieldName

get_field_width_class()

get_field_width_class(  $FieldName) 

Method returns field's class for width.

Parameters

$FieldName

creation_form()

creation_form() : string

Method compiles creation form.

Returns

string —

Compiled creation form.

updating_form()

updating_form(string  $SessionId, array  $Record) : string

Method compiles updating form.

Parameters

string $SessionId
  • Session id;
array $Record
  • Record to be updated;

Returns

string —

Compiled updating form.

get_select_field()

get_select_field(  $Name,   $FieldName,   $Record) 

Method compiles select control.

Parameters

$Name
$FieldName
$Record

get_textarea_field()

get_textarea_field(  $Name,   $FieldName,   $Record) 

Method compiles textarea control.

Parameters

$Name
$FieldName
$Record

get_external_title()

get_external_title(  $Record) 

Method returns record's title.

Parameters

$Record

get_checkboxes_field()

get_checkboxes_field(  $Name,   $FieldName,   $Record) 

Method compiles checkboxes as a field.

Parameters

$Name
$FieldName
$Record

get_external_field()

get_external_field(  $Name,   $FieldName,   $Record) 

Method compiles external field control.

Parameters

$Name
$FieldName
$Record

get_records_field()

get_records_field(  $Name,   $Record,   $Batch) 

Method compiles records field control.

Parameters

$Name
$Record
$Batch

get_file_input_field()

get_file_input_field(  $Name,   $FieldName,   $Record) 

Method compiles file input control.

Parameters

$Name
$FieldName
$Record

get_date_input_field()

get_date_input_field(  $Name,   $FieldName,   $Record) 

Method compiles date input control.

Parameters

$Name
$FieldName
$Record

get_input_field()

get_input_field(  $Name,   $FieldName,   $Record) 

Method compiles input control.

Parameters

$Name
$FieldName
$Record

get_compiled_field()

get_compiled_field(  $Name,   $Record,   $Batch = false) 

Method compiles field DOM.

Parameters

$Name
$Record
$Batch

compile_for_fields_with_no_layout()

compile_for_fields_with_no_layout(  $Record = false) 

Method compiles form without layout.

Parameters

$Record

compile_record_field()

compile_record_field(  $FieldName,   $Record) 

Method compiles record field.

Parameters

$FieldName
$Record

compile_header_field()

compile_header_field(  $Field,   $Record) 

Method compiles header field.

Parameters

$Field
$Record

compile_label_field()

compile_label_field(  $Field,   $Record) 

Method compiles label field.

Parameters

$Field
$Record

compile_atomic_field()

compile_atomic_field(  $Field,   $FieldName,   $Record) 

Method compiles atoic field

Parameters

$Field
$FieldName
$Record

compile_for_fields_with_layout()

compile_for_fields_with_layout(  $Record = false) 

Method compiles form with layout.

Parameters

$Record