FieldRow
class FieldRow
This class allows the storage and retrieval of the attributes of a field row.
A field row contains fields that make up the cells in the row.
The field row is linked to a data group that contains the data associated to the cells of this field row
Properties
private FieldSet | $fieldset | ||
private int | $id | ||
private string | $label | ||
private bool | $help | ||
private bool | $colon | ||
private bool | $emphasize | ||
private string | $datagroup | ||
private array | $fields |
Methods
Returns the FieldSet object that contains this field row
Returns the ID of this field row
Sets the ID of this field row
Returns the ID of the data group that contains the data associated to the cells of this field row
Sets the ID of the data group that contains the data associated to the cells of this field row
Returns the label of this field row
Sets the label of this field row
Returns the colon attribute of this field row.
Returns the colon attribute of this field row.
Determines whether a colon should be displayed after the label of this field row.
Determines whether the description of the data linked to this field should be displayed as help text
Returns the emphasize attribute of this field row.
Returns the emphasize attribute of this field row.
Determines whether the label of this field row should be emphasized or not.
Returns the list of fields contained in this field row.
Sets the list of fields contained in this field row.
Removes a Field object from the list of fields contained in this field row.
Retrieves a Field object by its position in the list of fields of this field row.
Returns the class name of this FieldRow object
Details
at line 116
void
__construct(FieldSet $fieldset, int $id, string $label)
Constructor of class FieldRow
at line 129
FieldSet
getFieldSet()
Returns the FieldSet object that contains this field row
at line 140
int
getId()
Returns the ID of this field row
at line 152
void
setId(int $id)
Sets the ID of this field row
at line 163
string
getDataGroup()
Returns the ID of the data group that contains the data associated to the cells of this field row
at line 175
void
setDataGroup(string $datagroup)
Sets the ID of the data group that contains the data associated to the cells of this field row
at line 186
string
getLabel()
Returns the label of this field row
at line 198
void
setLabel(string $label)
Sets the label of this field row
at line 209
bool
hasColon()
Returns the colon attribute of this field row.
at line 220
bool
getColon()
Returns the colon attribute of this field row.
at line 232
void
setColon(bool $colon)
Determines whether a colon should be displayed after the label of this field row.
at line 246
bool
hasHelp()
deprecated
deprecated
Returns the help attribute of this field.
If the value is true, the description of the data group is displayed in a foldable area below the field row, visible after the user clicks on an icon.
at line 260
bool
getHelp()
deprecated
deprecated
Returns the help attribute of this field.
If the value is true, the description of the data group is displayed in a foldable area below the field row, visible after the user clicks on an icon.
at line 275
void
setHelp(bool $help)
deprecated
deprecated
Determines whether the description of the data linked to this field should be displayed as help text
If the value is true, the description of the data group is displayed in a foldable area below the field row, visible after the user clicks on an icon.
at line 286
bool
isEmphasized()
Returns the emphasize attribute of this field row.
at line 297
bool
getEmphasize()
Returns the emphasize attribute of this field row.
at line 309
void
setEmphasize(bool $emphasize)
Determines whether the label of this field row should be emphasized or not.
at line 320
array
getFields()
Returns the list of fields contained in this field row.
at line 332
void
setFields(array $fields)
Sets the list of fields contained in this field row.
at line 344
void
addField(Field $field)
Adds a Field object to the list of fields contained in this field row.
at line 356
void
removeField(int $index)
Removes a Field object from the list of fields contained in this field row.
at line 368
Field|null
getFieldByPosition(int $position)
Retrieves a Field object by its position in the list of fields of this field row.
at line 384
string
getClass()
Returns the class name of this FieldRow object