ILIAS
release_4-3 Revision
|
Class ilDataCollectionField. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor public. | |
setId ($a_id) | |
Set field id. | |
getId () | |
Get field id. | |
setTableId ($a_id) | |
Set table id. | |
getTableId () | |
Get table id. | |
setTitle ($a_title) | |
Set title. | |
getTitle () | |
Get title. | |
setDescription ($a_desc) | |
Set description. | |
getDescription () | |
Get description. | |
setDatatypeId ($a_id) | |
Set datatype id. | |
getDatatypeId () | |
Get datatype_id. | |
setRequired ($a_required) | |
Set Required. | |
getRequired () | |
Get Required Required. | |
setPropertyvalue ($a_value, $a_id) | |
Set Property Value. | |
isUnique () | |
setUnique ($unique) | |
getPropertyvalues () | |
Get Property Values. | |
setVisible ($visible) | |
setVisible | |
setFilterable ($filterable) | |
setFilterable | |
getDatatype () | |
getLength () | |
getTextArea () | |
getLearningProgress () | |
getDatatypeTitle () | |
getStorageLocation () | |
isVisible () | |
isFilterable () | |
isEditable () | |
isEditable | |
setEditable ($editable) | |
toArray () | |
isStandardField () | |
doRead () | |
Read field. | |
buildFromDBRecord ($rec) | |
doCreate () | |
Create new field. | |
doUpdate () | |
Update field. | |
doDelete () | |
getOrder () | |
setOrder ($order) | |
getFieldRef () | |
getProperties () | |
Get all properties of a field. | |
setProperties ($data) | |
setLocked ($locked) | |
getLocked () | |
checkValidity ($value, $record_id=null) | |
cloneStructure ($original_id) | |
cloneProperties ($originalField) |
Static Public Member Functions | |
static | _getTitleValidChars ($a_as_regex=true) |
All valid chars for field titles. | |
static | _getFieldIdByTitle ($title, $table_id) |
Data Fields | |
const | PROPERTYID_LENGTH = 1 |
const | PROPERTYID_REGEX = 2 |
const | PROPERTYID_REFERENCE = 3 |
const | PROPERTYID_URL = 4 |
LINK OR EMAIL! | |
const | PROPERTYID_TEXTAREA = 5 |
const | PROPERTYID_REFERENCE_LINK = 6 |
const | PROPERTYID_WIDTH = 7 |
const | PROPERTYID_HEIGHT = 8 |
const | PROPERTYID_LEARNING_PROGRESS = 9 |
const | PROPERTYID_ILIAS_REFERENCE_LINK = 10 |
const | VIEW_VIEW = 1 |
const | EDIT_VIEW = 2 |
const | FILTER_VIEW = 3 |
Protected Member Functions | |
updateProperties () | |
Update properties of this field in Database. | |
updateVisibility () | |
updateFilterability () | |
updateEditability () |
Protected Attributes | |
$id | |
$table_id | |
$title | |
$description | |
$datatypeId | |
$required | |
$order | |
$unique | |
$visible | |
$editable | |
$filterable | |
$locked | |
$property = array() | |
$datatype |
Private Member Functions | |
loadDatatype () | |
loadVisibility () | |
loadFilterability () | |
loadViewDefinition ($view) | |
loadViewDefinition | |
loadEditability () | |
updateViewDefinition ($view) | |
updateViewDefinition | |
deleteViewDefinition ($view) | |
loadProperties () | |
Get all properties of a field. |
Class ilDataCollectionField.
Definition at line 19 of file class.ilDataCollectionField.php.
ilDataCollectionField::__construct | ( | $a_id = 0 | ) |
Constructor public.
integer | fiel_id |
Definition at line 117 of file class.ilDataCollectionField.php.
References doRead().
|
static |
$title | Title of the field |
$table_id | ID of table where the field belongs to |
Definition at line 151 of file class.ilDataCollectionField.php.
References $id, $result, $table_id, and $title.
Referenced by ilObjDataCollection\cloneStructure().
|
static |
All valid chars for field titles.
bool | $a_as_regex |
Definition at line 133 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionFieldEditGUI\initForm().
ilDataCollectionField::buildFromDBRecord | ( | $rec | ) |
Definition at line 584 of file class.ilDataCollectionField.php.
References setDatatypeId(), setDescription(), setId(), setLocked(), setRequired(), setTableId(), setTitle(), and setUnique().
ilDataCollectionField::checkValidity | ( | $value, | |
$record_id = null |
|||
) |
Definition at line 880 of file class.ilDataCollectionField.php.
References ilDataCollectionDatatype\checkValidity(), getDatatypeId(), ilObjMediaObject\getMimeType(), getPropertyvalues(), ilDataCollectionCache\getTableCache(), getTableId(), ilDataCollectionDatatype\INPUTFORMAT_DATETIME, ilDataCollectionDatatype\INPUTFORMAT_MOB, ilDataCollectionDatatype\INPUTFORMAT_TEXT, isUnique(), ilDataCollectionInputException\LENGTH_EXCEPTION, ilDataCollectionInputException\NOT_IMAGE, ilDataCollectionInputException\NOT_URL, PROPERTYID_LENGTH, PROPERTYID_REGEX, PROPERTYID_URL, ilDataCollectionInputException\REGEX_EXCEPTION, ilDataCollectionInputException\TYPE_EXCEPTION, and ilDataCollectionInputException\UNIQUE_EXCEPTION.
ilDataCollectionField::cloneProperties | ( | $originalField | ) |
$originalField | ilDataCollectionField |
Definition at line 983 of file class.ilDataCollectionField.php.
References $id, getId(), ilDataCollectionDatatype\INPUTFORMAT_REFERENCE, and PROPERTYID_REFERENCE.
Referenced by cloneStructure().
ilDataCollectionField::cloneStructure | ( | $original_id | ) |
Definition at line 963 of file class.ilDataCollectionField.php.
References cloneProperties(), doCreate(), ilDataCollectionCache\getFieldCache(), setDatatypeId(), setDescription(), setEditable(), setFilterable(), setLocked(), setOrder(), setRequired(), setTitle(), setUnique(), and setVisible().
|
private |
Definition at line 756 of file class.ilDataCollectionField.php.
References $query, getId(), and getTableId().
Referenced by doDelete().
ilDataCollectionField::doCreate | ( | ) |
Create new field.
Reimplemented in ilDataCollectionStandardField.
Definition at line 599 of file class.ilDataCollectionField.php.
References $id, $query, ilDataCollectionTable\_tableExists(), getDatatypeId(), getDescription(), getId(), getLocked(), getRequired(), getTableId(), getTitle(), isUnique(), setId(), setLocked(), updateEditability(), updateFilterability(), and updateVisibility().
Referenced by cloneStructure().
ilDataCollectionField::doDelete | ( | ) |
Definition at line 771 of file class.ilDataCollectionField.php.
References $query, deleteViewDefinition(), and getId().
ilDataCollectionField::doRead | ( | ) |
Read field.
Reimplemented in ilDataCollectionStandardField.
Definition at line 562 of file class.ilDataCollectionField.php.
References $query, getId(), loadProperties(), setDatatypeId(), setDescription(), setLocked(), setRequired(), setTableId(), setTitle(), and setUnique().
Referenced by __construct().
ilDataCollectionField::doUpdate | ( | ) |
Update field.
Reimplemented in ilDataCollectionStandardField.
Definition at line 638 of file class.ilDataCollectionField.php.
References getDatatypeId(), getDescription(), getId(), getLocked(), getRequired(), getTableId(), getTitle(), isUnique(), updateEditability(), updateFilterability(), updateProperties(), and updateVisibility().
ilDataCollectionField::getDatatype | ( | ) |
Definition at line 361 of file class.ilDataCollectionField.php.
References $datatype, and loadDatatype().
ilDataCollectionField::getDatatypeId | ( | ) |
Get datatype_id.
Definition at line 261 of file class.ilDataCollectionField.php.
References $datatypeId, ilDataCollectionStandardField\_getDatatypeForId(), getId(), and isStandardField().
Referenced by ilDataCollectionDatatype\addFilterInputFieldToTable(), checkValidity(), doCreate(), doUpdate(), ilDataCollectionDatatype\getInputField(), and ilDataCollectionDatatype\passThroughFilter().
ilDataCollectionField::getDatatypeTitle | ( | ) |
Definition at line 402 of file class.ilDataCollectionField.php.
References loadDatatype().
Referenced by ilDataCollectionFieldListTableGUI\fillRow().
ilDataCollectionField::getDescription | ( | ) |
Get description.
Definition at line 239 of file class.ilDataCollectionField.php.
Referenced by doCreate(), doUpdate(), ilDataCollectionFieldListTableGUI\fillRow(), and ilDataCollectionDatatype\getInputField().
ilDataCollectionField::getFieldRef | ( | ) |
Definition at line 812 of file class.ilDataCollectionField.php.
References $id, getPropertyvalues(), and PROPERTYID_REFERENCE.
Referenced by ilDataCollectionDatatype\addFilterInputFieldToTable().
ilDataCollectionField::getId | ( | ) |
Get field id.
Definition at line 176 of file class.ilDataCollectionField.php.
References $id.
Referenced by ilDataCollectionDatatype\addFilterInputFieldToTable(), cloneProperties(), deleteViewDefinition(), doCreate(), doDelete(), doRead(), doUpdate(), ilDataCollectionFieldListTableGUI\fillRow(), getDatatypeId(), ilDataCollectionDatatype\getInputField(), loadProperties(), ilDataCollectionDatatype\passThroughFilter(), updateProperties(), and updateViewDefinition().
ilDataCollectionField::getLearningProgress | ( | ) |
Definition at line 392 of file class.ilDataCollectionField.php.
References getPropertyvalues(), and PROPERTYID_LEARNING_PROGRESS.
ilDataCollectionField::getLength | ( | ) |
Definition at line 371 of file class.ilDataCollectionField.php.
References getPropertyvalues(), and PROPERTYID_LENGTH.
Referenced by ilDataCollectionDatatype\getInputField().
ilDataCollectionField::getLocked | ( | ) |
Reimplemented in ilDataCollectionStandardField.
Definition at line 872 of file class.ilDataCollectionField.php.
References $locked.
Referenced by doCreate(), doUpdate(), and ilDataCollectionFieldListTableGUI\fillRow().
ilDataCollectionField::getOrder | ( | ) |
Definition at line 791 of file class.ilDataCollectionField.php.
References $order, and loadVisibility().
Referenced by updateViewDefinition().
ilDataCollectionField::getProperties | ( | ) |
Get all properties of a field.
Definition at line 849 of file class.ilDataCollectionField.php.
References $property, and loadProperties().
Referenced by getTextArea().
ilDataCollectionField::getPropertyvalues | ( | ) |
Get Property Values.
int | $a_id |
Definition at line 323 of file class.ilDataCollectionField.php.
References $property, and loadProperties().
Referenced by checkValidity(), getFieldRef(), getLearningProgress(), and getLength().
ilDataCollectionField::getRequired | ( | ) |
Get Required Required.
Definition at line 285 of file class.ilDataCollectionField.php.
References $required.
Referenced by doCreate(), doUpdate(), and ilDataCollectionFieldListTableGUI\fillRow().
ilDataCollectionField::getStorageLocation | ( | ) |
Definition at line 412 of file class.ilDataCollectionField.php.
References loadDatatype().
ilDataCollectionField::getTableId | ( | ) |
Get table id.
Definition at line 196 of file class.ilDataCollectionField.php.
References $table_id.
Referenced by checkValidity(), deleteViewDefinition(), doCreate(), doUpdate(), and updateViewDefinition().
ilDataCollectionField::getTextArea | ( | ) |
Definition at line 382 of file class.ilDataCollectionField.php.
References $t, getProperties(), and PROPERTYID_TEXTAREA.
Referenced by ilDataCollectionDatatype\getInputField().
ilDataCollectionField::getTitle | ( | ) |
Get title.
Definition at line 219 of file class.ilDataCollectionField.php.
References $title.
Referenced by ilDataCollectionDatatype\addFilterInputFieldToTable(), doCreate(), doUpdate(), ilDataCollectionFieldListTableGUI\fillRow(), and ilDataCollectionDatatype\getInputField().
ilDataCollectionField::isEditable | ( | ) |
isEditable
Definition at line 514 of file class.ilDataCollectionField.php.
References $editable, and loadEditability().
Referenced by updateViewDefinition().
ilDataCollectionField::isFilterable | ( | ) |
Definition at line 457 of file class.ilDataCollectionField.php.
References $filterable, and loadFilterability().
Referenced by ilDataCollectionFieldListTableGUI\fillRow(), and updateViewDefinition().
ilDataCollectionField::isStandardField | ( | ) |
Reimplemented in ilDataCollectionStandardField.
Definition at line 554 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionFieldListTableGUI\fillRow(), and getDatatypeId().
ilDataCollectionField::isUnique | ( | ) |
Reimplemented in ilDataCollectionStandardField.
Definition at line 304 of file class.ilDataCollectionField.php.
References $unique.
Referenced by checkValidity(), doCreate(), doUpdate(), and ilDataCollectionFieldListTableGUI\fillRow().
ilDataCollectionField::isVisible | ( | ) |
Definition at line 433 of file class.ilDataCollectionField.php.
References $visible, and loadVisibility().
Referenced by ilDataCollectionFieldListTableGUI\fillRow(), and updateViewDefinition().
|
private |
Definition at line 422 of file class.ilDataCollectionField.php.
Referenced by getDatatype(), getDatatypeTitle(), and getStorageLocation().
|
private |
Definition at line 535 of file class.ilDataCollectionField.php.
References loadViewDefinition().
Referenced by isEditable().
|
private |
Definition at line 470 of file class.ilDataCollectionField.php.
References loadViewDefinition().
Referenced by isFilterable().
|
private |
Get all properties of a field.
Definition at line 825 of file class.ilDataCollectionField.php.
References $query, getId(), and setPropertyvalue().
Referenced by doRead(), getProperties(), and getPropertyvalues().
|
private |
loadViewDefinition
$view | use VIEW_VIEW or EDIT_VIEW |
Definition at line 483 of file class.ilDataCollectionField.php.
References $query.
Referenced by loadEditability(), loadFilterability(), and loadVisibility().
|
private |
Definition at line 446 of file class.ilDataCollectionField.php.
References loadViewDefinition().
Referenced by getOrder(), and isVisible().
ilDataCollectionField::setDatatypeId | ( | $a_id | ) |
Set datatype id.
int | $a_id |
Definition at line 249 of file class.ilDataCollectionField.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDataCollectionField::setDescription | ( | $a_desc | ) |
Set description.
string | $a_desc |
Definition at line 229 of file class.ilDataCollectionField.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDataCollectionField::setEditable | ( | $editable | ) |
Definition at line 527 of file class.ilDataCollectionField.php.
References $editable.
Referenced by cloneStructure().
ilDataCollectionField::setFilterable | ( | $filterable | ) |
setFilterable
$filterable | bool |
Definition at line 348 of file class.ilDataCollectionField.php.
References $filterable, and setOrder().
Referenced by cloneStructure().
ilDataCollectionField::setId | ( | $a_id | ) |
Set field id.
int | $a_id |
Definition at line 166 of file class.ilDataCollectionField.php.
Referenced by buildFromDBRecord(), and doCreate().
ilDataCollectionField::setLocked | ( | $locked | ) |
boolean | $locked |
Definition at line 864 of file class.ilDataCollectionField.php.
References $locked.
Referenced by buildFromDBRecord(), cloneStructure(), doCreate(), and doRead().
ilDataCollectionField::setOrder | ( | $order | ) |
Definition at line 804 of file class.ilDataCollectionField.php.
References $order.
Referenced by cloneStructure(), setFilterable(), and setVisible().
ilDataCollectionField::setProperties | ( | $data | ) |
Definition at line 857 of file class.ilDataCollectionField.php.
References $data.
ilDataCollectionField::setPropertyvalue | ( | $a_value, | |
$a_id | |||
) |
Set Property Value.
string | $a_value | |
int | $a_id |
Definition at line 296 of file class.ilDataCollectionField.php.
Referenced by loadProperties().
ilDataCollectionField::setRequired | ( | $a_required | ) |
Set Required.
boolean | $a_required | Required |
Definition at line 275 of file class.ilDataCollectionField.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDataCollectionField::setTableId | ( | $a_id | ) |
Set table id.
int | $a_id |
Definition at line 186 of file class.ilDataCollectionField.php.
Referenced by buildFromDBRecord(), and doRead().
ilDataCollectionField::setTitle | ( | $a_title | ) |
Set title.
string | $a_title |
Definition at line 206 of file class.ilDataCollectionField.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDataCollectionField::setUnique | ( | $unique | ) |
Definition at line 312 of file class.ilDataCollectionField.php.
References $unique.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDataCollectionField::setVisible | ( | $visible | ) |
setVisible
$visible | bool |
Definition at line 334 of file class.ilDataCollectionField.php.
References $visible, and setOrder().
Referenced by cloneStructure().
ilDataCollectionField::toArray | ( | ) |
Definition at line 546 of file class.ilDataCollectionField.php.
|
protected |
Definition at line 698 of file class.ilDataCollectionField.php.
References updateViewDefinition().
Referenced by doCreate(), and doUpdate().
|
protected |
Definition at line 693 of file class.ilDataCollectionField.php.
References updateViewDefinition().
Referenced by doCreate(), ilDataCollectionStandardField\doUpdate(), and doUpdate().
|
protected |
Update properties of this field in Database.
Definition at line 662 of file class.ilDataCollectionField.php.
References getId().
Referenced by doUpdate().
|
private |
updateViewDefinition
$view | use constant VIEW_VIEW or EDIT_VIEW |
Definition at line 706 of file class.ilDataCollectionField.php.
References $query, getId(), getOrder(), getTableId(), isEditable(), isFilterable(), and isVisible().
Referenced by updateEditability(), updateFilterability(), and updateVisibility().
|
protected |
Definition at line 685 of file class.ilDataCollectionField.php.
References updateViewDefinition().
Referenced by doCreate(), ilDataCollectionStandardField\doUpdate(), and doUpdate().
|
protected |
Definition at line 89 of file class.ilDataCollectionField.php.
Referenced by getDatatype().
|
protected |
Definition at line 44 of file class.ilDataCollectionField.php.
Referenced by getDatatypeId().
|
protected |
Definition at line 39 of file class.ilDataCollectionField.php.
|
protected |
Definition at line 69 of file class.ilDataCollectionField.php.
Referenced by isEditable(), and setEditable().
|
protected |
Definition at line 74 of file class.ilDataCollectionField.php.
Referenced by isFilterable(), and setFilterable().
|
protected |
Definition at line 24 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionStandardField\_getDatatypeForId(), _getFieldIdByTitle(), cloneProperties(), doCreate(), getFieldRef(), and getId().
|
protected |
Definition at line 79 of file class.ilDataCollectionField.php.
Referenced by getLocked(), and setLocked().
|
protected |
Definition at line 54 of file class.ilDataCollectionField.php.
Referenced by getOrder(), and setOrder().
|
protected |
Definition at line 84 of file class.ilDataCollectionField.php.
Referenced by getProperties(), and getPropertyvalues().
|
protected |
Definition at line 49 of file class.ilDataCollectionField.php.
Referenced by getRequired().
|
protected |
Definition at line 29 of file class.ilDataCollectionField.php.
Referenced by _getFieldIdByTitle(), ilDataCollectionStandardField\_getStandardFields(), and getTableId().
|
protected |
Definition at line 34 of file class.ilDataCollectionField.php.
Referenced by _getFieldIdByTitle(), and getTitle().
|
protected |
Definition at line 59 of file class.ilDataCollectionField.php.
Referenced by isUnique(), and setUnique().
|
protected |
Definition at line 64 of file class.ilDataCollectionField.php.
Referenced by isVisible(), and setVisible().
const ilDataCollectionField::EDIT_VIEW = 2 |
Definition at line 108 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionTable\doCreate().
const ilDataCollectionField::FILTER_VIEW = 3 |
Definition at line 109 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionTable\doCreate().
const ilDataCollectionField::PROPERTYID_HEIGHT = 8 |
Definition at line 101 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionDatatype\parseValue().
const ilDataCollectionField::PROPERTYID_ILIAS_REFERENCE_LINK = 10 |
Definition at line 103 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionRecordListTableGUI\buildData().
const ilDataCollectionField::PROPERTYID_LEARNING_PROGRESS = 9 |
Definition at line 102 of file class.ilDataCollectionField.php.
Referenced by getLearningProgress().
const ilDataCollectionField::PROPERTYID_LENGTH = 1 |
Definition at line 91 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionFieldEditGUI\checkInput(), checkValidity(), and getLength().
const ilDataCollectionField::PROPERTYID_REFERENCE = 3 |
Definition at line 93 of file class.ilDataCollectionField.php.
Referenced by cloneProperties(), ilObjDataCollection\cloneStructure(), getFieldRef(), and ilDataCollectionFieldEditGUI\initForm().
const ilDataCollectionField::PROPERTYID_REFERENCE_LINK = 6 |
Definition at line 99 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionRecordListTableGUI\buildData().
const ilDataCollectionField::PROPERTYID_REGEX = 2 |
Definition at line 92 of file class.ilDataCollectionField.php.
Referenced by checkValidity().
const ilDataCollectionField::PROPERTYID_TEXTAREA = 5 |
Definition at line 98 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionFieldEditGUI\checkInput(), getTextArea(), ilDataCollectionDatatype\parseFormInput(), and ilDataCollectionDatatype\parseValue().
const ilDataCollectionField::PROPERTYID_URL = 4 |
LINK OR EMAIL!
Definition at line 97 of file class.ilDataCollectionField.php.
Referenced by checkValidity(), and ilDataCollectionDatatype\parseHTML().
const ilDataCollectionField::PROPERTYID_WIDTH = 7 |
Definition at line 100 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionDatatype\parseValue().
const ilDataCollectionField::VIEW_VIEW = 1 |
Definition at line 107 of file class.ilDataCollectionField.php.
Referenced by ilDataCollectionTable\doCreate().