Profile
class Profile
This class allows the storage and retrieval of the attributes of a profile.
A profile is a set of pre-defined default values assigned to data. When the user selects a profile, the form data associated with the profile are filled with the predefined values.
Properties
private int | $id | ||
private string | $name | ||
private string | $label | ||
private RichText | $description | ||
private array | $datas |
Methods
Constructor of class Profile
Returns the id of this profile.
Sets the id of this profile.
Returns the name of this profile.
Sets the name of this profile.
Returns the label of this profile.
Sets the label of this profile.
Returns the description of this profile.
Returns the list of data that are pre-filled by this profile.
Sets the list of data that are pre-filled by this profile.
Adds a "data ID/default value" pair to the list of data that are pre-filled by this profile.
Removes a "data ID/default value" pair from the list of data that are pre-filled by this profile.
Details
at line 89
void
__construct(int $id, string $name)
Constructor of class Profile
at line 101
int
getId()
Returns the id of this profile.
at line 113
void
setId(int $id)
Sets the id of this profile.
at line 124
string
getName()
Returns the name of this profile.
at line 136
void
setName(string $name)
Sets the name of this profile.
at line 147
string
getLabel()
Returns the label of this profile.
at line 159
void
setLabel(string $label)
Sets the label of this profile.
at line 170
RichText
getDescription()
Returns the description of this profile.
at line 182
void
setDescription(RichText $description)
Sets the description of this profile.
at line 195
array
getDatas()
Returns the list of data that are pre-filled by this profile.
The elements of this list are "data ID/default value" pairs.
at line 209
void
setDatas(array $datas)
Sets the list of data that are pre-filled by this profile.
The elements of this list are "data ID/default value" pairs.
at line 222
void
addData(int $id, string $default = "")
Adds a "data ID/default value" pair to the list of data that are pre-filled by this profile.
at line 234
void
removeData(int $index)
Removes a "data ID/default value" pair from the list of data that are pre-filled by this profile.