ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_obj_id, $a_field_id=0) | |
Constructor. | |
getObjId () | |
getId () | |
getType () | |
setType ($a_type) | |
getName () | |
setName ($a_name) | |
getValues () | |
setValues ($a_values) | |
getValueById ($a_id) | |
getIdByValue ($a_value) | |
isRequired () | |
enableRequired ($a_status) | |
prepareSelectBox () | |
Prepare an array of options for ilUtil::formSelect() | |
prepareValues ($a_values) | |
Prepare values from POST. | |
appendValues ($a_values) | |
Append Values. | |
deleteValue ($a_id) | |
Delete value by id. | |
save () | |
Save. | |
update () | |
Update a field. | |
delete () | |
Delete a field. |
Static Public Member Functions | |
static | _clone ($a_source_id, $a_target_id) |
Clone fields. | |
static | _deleteByContainer ($a_container_id) |
Delete all fields of a container. | |
static | _hasFields ($a_container_id) |
Check if there are any define fields. | |
static | _getFields ($a_container_id, $a_sort=IL_CDF_SORT_NAME) |
Get all fields of a container. | |
static | _getRequiredFieldIds ($a_obj_id) |
Get required filed id's. | |
static | _fieldsToInfoString ($a_obj_id) |
Fields to info string. | |
static | _getFieldIds ($a_container_id, $a_sort=IL_CDF_SORT_ID) |
Get all field ids of a container. | |
static | _lookupName ($a_field_id) |
Lookup field name. |
Private Member Functions | |
read () | |
Read DB entries. |
Private Attributes | |
$db | |
$obj_id | |
$id | |
$name | |
$type | |
$values | |
$required |
ilCourseDefinedFieldDefinition::__construct | ( | $a_obj_id, | |
$a_field_id = 0 |
|||
) |
Constructor.
public
int | course obj_id |
int | field_id |
Definition at line 57 of file class.ilCourseDefinedFieldDefinition.php.
|
static |
Clone fields.
public
int | source obj id |
int | target obj_id |
Definition at line 80 of file class.ilCourseDefinedFieldDefinition.php.
References _getFields().
Referenced by ilObjCourse\cloneObject().
|
static |
Delete all fields of a container.
public
int | container_id |
Definition at line 101 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, ilCourseUserData\_deleteByField(), and _getFieldIds().
Referenced by ilObjCourse\delete().
|
static |
Fields to info string.
public
int | obj_id |
Definition at line 176 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjCourseGUI\infoScreen().
|
static |
Get all field ids of a container.
public
int | container obj_id |
Definition at line 201 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, and $row.
Referenced by _deleteByContainer(), _getFields(), and ilCourseUserData\_getValuesByObjId().
|
static |
Get all fields of a container.
public
int | container obj_id |
Definition at line 136 of file class.ilCourseDefinedFieldDefinition.php.
References _getFieldIds().
Referenced by _clone(), _hasFields(), ilMemberExport\addCourseField(), ilCourseAgreementGUI\checkCourseDefinedFields(), ilMemberExport\createCSV(), ilExportUserSettings\getOrderedExportableFields(), ilObjCourseGUI\infoScreen(), ilCourseUserFieldsGUI\save(), ilCourseUserFieldsGUI\show(), ilMemberExportGUI\show(), ilCourseAgreementGUI\showCourseDefinedFields(), ilCourseRegistrationGUI\showCourseDefinedFields(), and ilCourseRegistrationGUI\validateCourseDefinedFields().
|
static |
Get required filed id's.
public
int | container id |
Definition at line 153 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, and $row.
Referenced by ilCourseUserData\_checkRequired().
|
static |
Check if there are any define fields.
public
int | container_id |
Definition at line 123 of file class.ilCourseDefinedFieldDefinition.php.
References _getFields().
Referenced by ilCourseAgreement\__construct(), ilCourseAgreement\agreementRequired(), ilCourseAgreementGUI\checkAgreement(), ilObjCourseGUI\checkAgreement(), ilCourseRegistrationGUI\fillAgreement(), ilExportUserSettings\getOrderedExportableFields(), ilCourseRegistrationGUI\setAccepted(), ilObjCourseGUI\setSubTabs(), ilCourseAgreementGUI\showAgreement(), and ilCourseRegistrationGUI\validateAgreement().
|
static |
Lookup field name.
public
int | field_id |
Definition at line 224 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilMemberExport\createCSV().
ilCourseDefinedFieldDefinition::appendValues | ( | $a_values | ) |
Append Values.
public
Definition at line 343 of file class.ilCourseDefinedFieldDefinition.php.
ilCourseDefinedFieldDefinition::delete | ( | ) |
Delete a field.
public
Definition at line 424 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, ilCourseUserData\_deleteByField(), and getId().
ilCourseDefinedFieldDefinition::deleteValue | ( | $a_id | ) |
Delete value by id.
public
Definition at line 359 of file class.ilCourseDefinedFieldDefinition.php.
References update().
ilCourseDefinedFieldDefinition::enableRequired | ( | $a_status | ) |
Definition at line 286 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
ilCourseDefinedFieldDefinition::getId | ( | ) |
ilCourseDefinedFieldDefinition::getIdByValue | ( | $a_value | ) |
Definition at line 277 of file class.ilCourseDefinedFieldDefinition.php.
ilCourseDefinedFieldDefinition::getName | ( | ) |
Definition at line 253 of file class.ilCourseDefinedFieldDefinition.php.
References $name.
Referenced by save(), and update().
ilCourseDefinedFieldDefinition::getObjId | ( | ) |
ilCourseDefinedFieldDefinition::getType | ( | ) |
Definition at line 245 of file class.ilCourseDefinedFieldDefinition.php.
References $type.
Referenced by save(), and update().
ilCourseDefinedFieldDefinition::getValueById | ( | $a_id | ) |
Definition at line 269 of file class.ilCourseDefinedFieldDefinition.php.
ilCourseDefinedFieldDefinition::getValues | ( | ) |
Definition at line 261 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by save(), and update().
ilCourseDefinedFieldDefinition::isRequired | ( | ) |
Definition at line 282 of file class.ilCourseDefinedFieldDefinition.php.
References $required.
Referenced by save(), and update().
ilCourseDefinedFieldDefinition::prepareSelectBox | ( | ) |
Prepare an array of options for ilUtil::formSelect()
public
Definition at line 298 of file class.ilCourseDefinedFieldDefinition.php.
References $lng.
ilCourseDefinedFieldDefinition::prepareValues | ( | $a_values | ) |
Prepare values from POST.
array | array of values public |
Definition at line 318 of file class.ilCourseDefinedFieldDefinition.php.
References ilUtil\stripSlashes().
|
private |
Read DB entries.
private
Definition at line 442 of file class.ilCourseDefinedFieldDefinition.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, enableRequired(), getId(), getObjId(), setName(), setType(), and setValues().
Referenced by __construct().
ilCourseDefinedFieldDefinition::save | ( | ) |
Save.
public
Definition at line 377 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, getName(), getObjId(), getType(), getValues(), and isRequired().
ilCourseDefinedFieldDefinition::setName | ( | $a_name | ) |
Definition at line 257 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
ilCourseDefinedFieldDefinition::setType | ( | $a_type | ) |
Definition at line 249 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
ilCourseDefinedFieldDefinition::setValues | ( | $a_values | ) |
Definition at line 265 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by read().
ilCourseDefinedFieldDefinition::update | ( | ) |
Update a field.
public
Definition at line 402 of file class.ilCourseDefinedFieldDefinition.php.
References $ilDB, $query, $res, getId(), getName(), getObjId(), getType(), getValues(), and isRequired().
Referenced by deleteValue().
|
private |
Definition at line 40 of file class.ilCourseDefinedFieldDefinition.php.
|
private |
Definition at line 43 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getId().
|
private |
Definition at line 44 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getName().
|
private |
Definition at line 41 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getObjId().
|
private |
Definition at line 47 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by isRequired().
|
private |
Definition at line 45 of file class.ilCourseDefinedFieldDefinition.php.
Referenced by getType().
|
private |
Definition at line 46 of file class.ilCourseDefinedFieldDefinition.php.