ChoiceSource
class ChoiceSource
This class allows the storage and retrieval of the attributes of a ChoiceSource object
A ChoiceSource object stores the name of the column that contains the value that will be assigned to a Choice object in a choices list. It also stores the name of the column that contains the label assigned to the Choice object. The same for the id of the Choice object.
The contents of these columns are the result of a query on a database from a reference data source.
Properties
private Data | $data | ||
private int | $id | ||
private string | $idColumn | ||
private string | $valueColumn | ||
private string | $labelColumn | ||
private bool | $caseInsensitive |
Methods
Constructor of class ChoiceSource
Retrieves the ID of this ChoiceSource object
Sets the ID of this ChoiceSource object
Returns the caseInsensitive attribute of this ChoiceSource object
Returns the caseInsensitive attribute of this ChoiceSource object
Determines whether columns names are case-insensitive or not.
Retrieves the name of the column that contains the ID that will be assigned to a Choice object in a choices list.
Sets the name of the column that contains the ID that will be assigned to a Choice object in a choices list.
Retrieves the name of the column that contains the value that will be assigned to a Choice object in a choices list.
Sets the name of the column that contains the value that will be assigned to a Choice object in a choices list.
Retrieves the name of the column that contains the label that will be assigned to a Choice object in a choices list.
Sets the name of the column that contains the label that will be assigned to a Choice object in a choices list.
Details
at line 103
void
__construct(Data $data, int $id, string $valueColumn, string $labelColumn)
Constructor of class ChoiceSource
at line 117
Data
getData()
Retrieves the Data object that uses this ChoiceSource
at line 128
int
getId()
Retrieves the ID of this ChoiceSource object
at line 140
void
setId(int $id)
Sets the ID of this ChoiceSource object
at line 151
bool
isCaseInsensitive()
Returns the caseInsensitive attribute of this ChoiceSource object
at line 162
bool
getCaseInsensitive()
Returns the caseInsensitive attribute of this ChoiceSource object
at line 174
void
setCaseInsensitive(bool $caseInsensitive = true)
Determines whether columns names are case-insensitive or not.
at line 187
string
getIdColumn()
Retrieves the name of the column that contains the ID that will be assigned to a Choice object in a choices list.
If the column name is case insensitive, it is converted to lowercase.
at line 199
void
setIdColumn(string $idColumn)
Sets the name of the column that contains the ID that will be assigned to a Choice object in a choices list.
at line 212
string
getValueColumn()
Retrieves the name of the column that contains the value that will be assigned to a Choice object in a choices list.
If the column name is case insensitive, it is converted to lowercase.
at line 224
void
setValueColumn(string $valueColumn)
Sets the name of the column that contains the value that will be assigned to a Choice object in a choices list.
at line 237
string
getLabelColumn()
Retrieves the name of the column that contains the label that will be assigned to a Choice object in a choices list.
If the column name is case insensitive, it is converted to lowercase.
at line 249
void
setLabelColumn(string $labelColumn)
Sets the name of the column that contains the label that will be assigned to a Choice object in a choices list.