|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilCourseDefinedFieldDefinition:Public Member Functions | |
| __construct (int $a_obj_id, int $a_field_id=0) | |
| getObjId () | |
| getId () | |
| getType () | |
| setType (int $a_type) | |
| getName () | |
| setName (string $a_name) | |
| getValues () | |
| setValues (array $a_values) | |
| getValueById (int $a_id) | |
| getIdByValue (string $a_value) | |
| isRequired () | |
| enableRequired (bool $a_status) | |
| setValueOptions (array $a_options) | |
| getValueOptions () | |
| prepareSelectBox () | |
| prepareValues (array $a_values) | |
| appendValues (array $a_values) | |
| save () | |
| update () | |
| delete () | |
Static Public Member Functions | |
| static | _clone (int $a_source_id, int $a_target_id) |
| static | _deleteByContainer (int $a_container_id) |
| static | _hasFields (int $a_container_id) |
| Check if there are any define fields. More... | |
| static | _getFields (int $a_container_id, $a_sort=self::IL_CDF_SORT_NAME) |
| Get all fields of a container. More... | |
| static | _getRequiredFieldIds (int $a_obj_id) |
| Get required filed id's. More... | |
| static | _fieldsToInfoString (int $a_obj_id) |
| static | _getFieldIds (int $a_container_id, string $a_sort=self::IL_CDF_SORT_ID) |
| static | _lookupName (int $a_field_id) |
Data Fields | |
| const | IL_CDF_SORT_ID = 'field_id' |
| const | IL_CDF_SORT_NAME = 'field_name' |
| const | IL_CDF_TYPE_TEXT = 1 |
| const | IL_CDF_TYPE_SELECT = 2 |
Protected Attributes | |
| ilDBInterface | $db |
| ilLanguage | $lng |
Private Member Functions | |
| read () | |
Private Attributes | |
| int | $obj_id |
| int | $id = 0 |
| string | $name = '' |
| int | $type = 0 |
| array | $values = [] |
| array | $value_options = [] |
| bool | $required = false |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 23 of file class.ilCourseDefinedFieldDefinition.php.
| ilCourseDefinedFieldDefinition::__construct | ( | int | $a_obj_id, |
| int | $a_field_id = 0 |
||
| ) |
Definition at line 42 of file class.ilCourseDefinedFieldDefinition.php.
References $DIC, ILIAS\Repository\lng(), and read().
Here is the call graph for this function:
|
static |
Definition at line 56 of file class.ilCourseDefinedFieldDefinition.php.
References _getFields().
Referenced by ilObjCourse\cloneObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 69 of file class.ilCourseDefinedFieldDefinition.php.
References $DIC, $ilDB, $query, $res, ilCourseUserData\_deleteByField(), and _getFieldIds().
Referenced by ilObjCourse\delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 126 of file class.ilCourseDefinedFieldDefinition.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilObjCourseGUI\infoScreen(), and ilObjGroupGUI\infoScreen().
Here is the caller graph for this function:
|
static |
Definition at line 144 of file class.ilCourseDefinedFieldDefinition.php.
References $DIC, $ilDB, $query, $res, IL_CDF_SORT_ID, and ILIAS\Repository\int().
Referenced by _deleteByContainer(), _getFields(), and ilCourseUserData\_getValuesByObjId().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get all fields of a container.
| int | container obj_id |
Definition at line 96 of file class.ilCourseDefinedFieldDefinition.php.
References _getFieldIds().
Referenced by _clone(), _hasFields(), ilMemberExport\getOrderedExportableFields(), ilObjectCustomUserFieldsPlaceholderValues\getPlaceholderValuesForPreview(), ilExportFieldsInfo\getSelectableFieldsInfo(), ilObjCourseGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilObjectCustomUserFieldsPlaceholderDescription\initPlaceholders(), ilMemberExportGUI\initSettingsForm(), ilObjectCustomUserFieldsGUI\listFields(), ilAttendanceList\readOrderedExportableFields(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilObjectCustomUserFieldsGUI\saveFields(), ilRegistrationGUI\showCustomFields(), and ilRegistrationGUI\validateCustomFields().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get required filed id's.
Definition at line 109 of file class.ilCourseDefinedFieldDefinition.php.
References $DIC, $ilDB, $query, $res, and ILIAS\Repository\int().
Referenced by ilCourseUserData\_checkRequired().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if there are any define fields.
Definition at line 86 of file class.ilCourseDefinedFieldDefinition.php.
References _getFields().
Referenced by ilMemberAgreement\__construct(), ilSubscriberTableGUI\__construct(), ilWaitingListTableGUI\__construct(), ilMemberAgreement\agreementRequired(), ilObjCourseGUI\checkAgreement(), ilObjGroupGUI\checkAgreement(), ilRegistrationGUI\fillAgreement(), ilParticipantTableGUI\initSettings(), ilRegistrationGUI\setAccepted(), ilObjCourseGUI\setSubTabs(), and ilObjGroupGUI\setSubTabs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 160 of file class.ilCourseDefinedFieldDefinition.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilMemberExport\write().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::appendValues | ( | array | $a_values | ) |
Definition at line 267 of file class.ilCourseDefinedFieldDefinition.php.
| ilCourseDefinedFieldDefinition::delete | ( | ) |
Definition at line 304 of file class.ilCourseDefinedFieldDefinition.php.
References $query, $res, ilCourseUserData\_deleteByField(), and getId().
Here is the call graph for this function:| ilCourseDefinedFieldDefinition::enableRequired | ( | bool | $a_status | ) |
Definition at line 234 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::getId | ( | ) |
Definition at line 178 of file class.ilCourseDefinedFieldDefinition.php.
References $id.
Referenced by delete(), prepareSelectBox(), read(), and update().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::getIdByValue | ( | string | $a_value | ) |
Definition at line 224 of file class.ilCourseDefinedFieldDefinition.php.
| ilCourseDefinedFieldDefinition::getName | ( | ) |
Definition at line 193 of file class.ilCourseDefinedFieldDefinition.php.
References $name.
Referenced by save(), and update().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::getObjId | ( | ) |
Definition at line 173 of file class.ilCourseDefinedFieldDefinition.php.
References $obj_id.
Referenced by read(), save(), and update().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::getType | ( | ) |
Definition at line 183 of file class.ilCourseDefinedFieldDefinition.php.
References $type.
Referenced by save(), and update().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::getValueById | ( | int | $a_id | ) |
Definition at line 213 of file class.ilCourseDefinedFieldDefinition.php.
| ilCourseDefinedFieldDefinition::getValueOptions | ( | ) |
Definition at line 244 of file class.ilCourseDefinedFieldDefinition.php.
References $value_options.
Referenced by save(), and update().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::getValues | ( | ) |
Definition at line 203 of file class.ilCourseDefinedFieldDefinition.php.
References $values.
Referenced by save(), and update().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::isRequired | ( | ) |
Definition at line 229 of file class.ilCourseDefinedFieldDefinition.php.
References $required.
Referenced by save(), and update().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::prepareSelectBox | ( | ) |
Definition at line 249 of file class.ilCourseDefinedFieldDefinition.php.
References ILIAS\LTI\ToolProvider\$key, getId(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilCourseDefinedFieldDefinition::prepareValues | ( | array | $a_values | ) |
Definition at line 260 of file class.ilCourseDefinedFieldDefinition.php.
|
private |
Definition at line 312 of file class.ilCourseDefinedFieldDefinition.php.
References $query, $res, enableRequired(), ilDBConstants\FETCHMODE_OBJECT, getId(), getObjId(), setName(), setType(), setValueOptions(), and setValues().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::save | ( | ) |
Definition at line 274 of file class.ilCourseDefinedFieldDefinition.php.
References $query, $res, getName(), getObjId(), getType(), getValueOptions(), getValues(), and isRequired().
Here is the call graph for this function:| ilCourseDefinedFieldDefinition::setName | ( | string | $a_name | ) |
Definition at line 198 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::setType | ( | int | $a_type | ) |
Definition at line 188 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::setValueOptions | ( | array | $a_options | ) |
Definition at line 239 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::setValues | ( | array | $a_values | ) |
Definition at line 208 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
Here is the caller graph for this function:| ilCourseDefinedFieldDefinition::update | ( | ) |
Definition at line 291 of file class.ilCourseDefinedFieldDefinition.php.
References $query, $res, getId(), getName(), getObjId(), getType(), getValueOptions(), getValues(), and isRequired().
Here is the call graph for this function:
|
protected |
Definition at line 30 of file class.ilCourseDefinedFieldDefinition.php.
|
private |
Definition at line 35 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getId().
|
protected |
Definition at line 31 of file class.ilCourseDefinedFieldDefinition.php.
|
private |
Definition at line 36 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getName().
|
private |
Definition at line 33 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getObjId().
|
private |
Definition at line 40 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by isRequired().
|
private |
Definition at line 37 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getType().
|
private |
Definition at line 39 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getValueOptions().
|
private |
Definition at line 38 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getValues().
| const ilCourseDefinedFieldDefinition::IL_CDF_SORT_ID = 'field_id' |
Definition at line 25 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by _getFieldIds().
| const ilCourseDefinedFieldDefinition::IL_CDF_SORT_NAME = 'field_name' |
Definition at line 26 of file class.ilCourseDefinedFieldDefinition.php.
| const ilCourseDefinedFieldDefinition::IL_CDF_TYPE_SELECT = 2 |
Definition at line 28 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by ilObjectCustomUserFieldsGUI\initFieldForm(), ilObjectCustomUserFieldsTableGUI\parse(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilRegistrationGUI\showCustomFields(), and ilRegistrationGUI\validateCustomFields().
| const ilCourseDefinedFieldDefinition::IL_CDF_TYPE_TEXT = 1 |
Definition at line 27 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by ilObjectCustomUserFieldsGUI\initFieldForm(), ilObjectCustomUserFieldsTableGUI\parse(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilRegistrationGUI\showCustomFields(), and ilRegistrationGUI\validateCustomFields().