ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_mode, $a_obj_type= '', $a_obj_id= '', $a_sub_type= '', $a_sub_id= '') | |
Constructor. | |
setPropertyForm ($form) | |
set property form object | |
setSearchValues ($a_values) | |
Set values for search form. | |
setInfoObject ($info) | |
get info sections | |
setSelectedOnly ($a_val) | |
Set selected only flag. | |
getSelectedOnly () | |
Get selected only flag. | |
parse () | |
Get HTML. | |
loadFromPost () | |
Load values from post. | |
saveValues () | |
Save values. | |
parseRecordSelection ($a_sec_head="") | |
Parse property form in editor mode. | |
saveSelection () | |
Save selection per object. | |
setTableGUI ($a_val) | |
Set table. | |
getTableGUI () | |
Get table. | |
setRowData ($a_val) | |
Set row data. | |
getRowData () | |
Get row data. |
Data Fields | |
const | MODE_EDITOR = 1 |
const | MODE_SEARCH = 2 |
const | MODE_INFO = 3 |
const | MODE_REC_SELECTION = 4 |
const | MODE_FILTER = 5 |
const | MODE_TABLE_HEAD = 6 |
const | MODE_TABLE_CELLS = 7 |
Protected Member Functions | |
loadECSDurationPost () | |
load ecs duration post | |
parseDuration ($u_start, $u_end) | |
parse hours and minutes from duration |
Protected Attributes | |
$lng |
Private Member Functions | |
parseEditor () | |
Parse property form in editor mode. | |
parseSearch () | |
Parse search. | |
parseInfoPage () | |
toUnixTime ($date, $time=array()) | |
convert input array to unix time | |
handleECSDefinitions ($a_definition) | |
handle ecs definitions | |
showECSStart ($def) | |
Show special form for ecs start. | |
parseFilter () | |
Parse property for filter (table) | |
parseTableHead () | |
Parse property for table head. | |
parseTableCells () | |
Parse table cells. |
Private Attributes | |
$mode | |
$obj_type | |
$sub_type | |
$obj_id | |
$form | |
$values = array() | |
$search_values = array() |
Definition at line 14 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::__construct | ( | $a_mode, | |
$a_obj_type = '' , |
|||
$a_obj_id = '' , |
|||
$a_sub_type = '' , |
|||
$a_sub_id = '' |
|||
) |
Constructor.
public
int | mode either MODE_EDITOR or MODE_SEARCH |
int | obj_type |
Definition at line 43 of file class.ilAdvancedMDRecordGUI.php.
References $lng.
ilAdvancedMDRecordGUI::getRowData | ( | ) |
Get row data.
Definition at line 781 of file class.ilAdvancedMDRecordGUI.php.
Referenced by parseTableCells().
ilAdvancedMDRecordGUI::getSelectedOnly | ( | ) |
Get selected only flag.
Definition at line 106 of file class.ilAdvancedMDRecordGUI.php.
Referenced by parseEditor(), parseFilter(), parseTableCells(), and parseTableHead().
ilAdvancedMDRecordGUI::getTableGUI | ( | ) |
Get table.
Definition at line 761 of file class.ilAdvancedMDRecordGUI.php.
|
private |
handle ecs definitions
private
object | ilAdvMDFieldDefinition |
Definition at line 549 of file class.ilAdvancedMDRecordGUI.php.
References ilECSServerSettings\getInstance().
Referenced by parseEditor(), parseFilter(), parseTableCells(), and parseTableHead().
|
protected |
load ecs duration post
protected
@return |
Definition at line 225 of file class.ilAdvancedMDRecordGUI.php.
References $_POST, ilAdvancedMDValue\_getInstance(), ilECSDataMappingSettings\_getInstance(), ilECSServerSettings\getInstance(), ilECSDataMappingSetting\MAPPING_IMPORT_RCRS, and toUnixTime().
Referenced by loadFromPost().
ilAdvancedMDRecordGUI::loadFromPost | ( | ) |
Load values from post.
public
Definition at line 154 of file class.ilAdvancedMDRecordGUI.php.
References $_POST, ilAdvancedMDValue\_getInstance(), ilAdvancedMDFieldDefinition\_getInstanceByFieldId(), IL_CAL_FKT_GETDATE, IL_CAL_UNIX, loadECSDurationPost(), ilUtil\stripSlashes(), ilAdvancedMDFieldDefinition\TYPE_DATE, and ilAdvancedMDFieldDefinition\TYPE_DATETIME.
Referenced by ilObjCategoryGUI\updateInfoObject(), ilObjCourseGUI\updateInfoObject(), ilRemoteObjectBaseGUI\updateObject(), and ilGlossaryTermGUI\updateTerm().
ilAdvancedMDRecordGUI::parse | ( | ) |
Get HTML.
public
Definition at line 118 of file class.ilAdvancedMDRecordGUI.php.
References parseEditor(), parseFilter(), parseInfoPage(), parseRecordSelection(), parseSearch(), parseTableCells(), and parseTableHead().
|
protected |
parse hours and minutes from duration
protected
@return |
Definition at line 683 of file class.ilAdvancedMDRecordGUI.php.
Referenced by showECSStart().
|
private |
Parse property form in editor mode.
private
Definition at line 280 of file class.ilAdvancedMDRecordGUI.php.
References $ilUser, $section, $sub_type, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), ilAdvancedMDValue\_getInstance(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), getSelectedOnly(), handleECSDefinitions(), IL_CAL_UNIX, ilAdvancedMDFieldDefinition\TYPE_DATE, ilAdvancedMDFieldDefinition\TYPE_DATETIME, ilAdvancedMDFieldDefinition\TYPE_SELECT, and ilAdvancedMDFieldDefinition\TYPE_TEXT.
Referenced by parse().
|
private |
Parse property for filter (table)
private
Definition at line 792 of file class.ilAdvancedMDRecordGUI.php.
References $ilUser, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilCombinationInputGUI\addCombinationItem(), ilCombinationInputGUI\COMPARISON_ASCENDING, getSelectedOnly(), handleECSDefinitions(), ilDateTimeInputGUI\MODE_INPUT, ilSelectInputGUI\setOptions(), ilTextInputGUI\setSize(), ilAdvancedMDFieldDefinition\TYPE_DATE, ilAdvancedMDFieldDefinition\TYPE_DATETIME, ilAdvancedMDFieldDefinition\TYPE_SELECT, and ilAdvancedMDFieldDefinition\TYPE_TEXT.
Referenced by parse().
|
private |
Definition at line 483 of file class.ilAdvancedMDRecordGUI.php.
References ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), ilAdvancedMDValue\_getInstance(), ilDatePresentation\formatDate(), IL_CAL_UNIX, ilAdvancedMDFieldDefinition\TYPE_DATE, ilAdvancedMDFieldDefinition\TYPE_DATETIME, ilAdvancedMDFieldDefinition\TYPE_SELECT, and ilAdvancedMDFieldDefinition\TYPE_TEXT.
Referenced by parse().
ilAdvancedMDRecordGUI::parseRecordSelection | ( | $a_sec_head = "" | ) |
Parse property form in editor mode.
private
Definition at line 701 of file class.ilAdvancedMDRecordGUI.php.
References $ilUser, $section, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ilAdvancedMDRecord\getObjRecSelection(), and ilFormPropertyGUI\setInfo().
Referenced by parse().
|
private |
Parse search.
private
Definition at line 375 of file class.ilAdvancedMDRecordGUI.php.
References $options, $section, ilAdvancedMDRecord\_getActiveSearchableRecords(), ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), IL_CAL_UNIX, ilTextInputGUI\setValue(), ilCheckboxInputGUI\setValue(), ilSelectInputGUI\setValue(), ilRadioOption\setValue(), ilAdvancedMDFieldDefinition\TYPE_DATE, ilAdvancedMDFieldDefinition\TYPE_DATETIME, ilAdvancedMDFieldDefinition\TYPE_SELECT, and ilAdvancedMDFieldDefinition\TYPE_TEXT.
Referenced by parse().
|
private |
Parse table cells.
Definition at line 908 of file class.ilAdvancedMDRecordGUI.php.
References $ilUser, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), getRowData(), getSelectedOnly(), and handleECSDefinitions().
Referenced by parse().
|
private |
Parse property for table head.
Definition at line 877 of file class.ilAdvancedMDRecordGUI.php.
References $ilUser, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), getSelectedOnly(), and handleECSDefinitions().
Referenced by parse().
ilAdvancedMDRecordGUI::saveSelection | ( | ) |
Save selection per object.
@return |
Definition at line 739 of file class.ilAdvancedMDRecordGUI.php.
References $_POST, ilAdvancedMDRecord\saveObjRecSelection(), and ilUtil\stripSlashesArray().
Referenced by ilObjGlossaryGUI\saveProperties().
ilAdvancedMDRecordGUI::saveValues | ( | ) |
Save values.
public
Definition at line 265 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setInfoObject | ( | $info | ) |
get info sections
public
object | instance of ilInfoScreenGUI |
Definition at line 86 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilRemoteObjectBaseGUI\infoScreen(), ilObjCourseGUI\infoScreen(), and ilObjCategoryGUI\infoScreen().
ilAdvancedMDRecordGUI::setPropertyForm | ( | $form | ) |
set property form object
public
Definition at line 62 of file class.ilAdvancedMDRecordGUI.php.
References $form.
Referenced by ilGlossaryTermGUI\getEditTermForm(), ilRemoteObjectBaseGUI\initEditForm(), ilObjCategoryGUI\initExtendedSettings(), ilObjCourseGUI\initInfoEditor(), and ilObjGlossaryGUI\initSettingsForm().
ilAdvancedMDRecordGUI::setRowData | ( | $a_val | ) |
Set row data.
array | $a_val | assoc array of row data (containing md record data) |
Definition at line 771 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setSearchValues | ( | $a_values | ) |
Set values for search form.
public
Definition at line 73 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setSelectedOnly | ( | $a_val | ) |
Set selected only flag.
boolean | $a_val | retrieve only records, that are selected by the object |
Definition at line 96 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilPresentationListTableGUI\initFilter().
ilAdvancedMDRecordGUI::setTableGUI | ( | $a_val | ) |
Set table.
object | $a_val | table gui class |
Definition at line 751 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Show special form for ecs start.
private
object | ilAdvMDFieldDefinition |
Definition at line 590 of file class.ilAdvancedMDRecordGUI.php.
References $ilUser, ilAdvancedMDValue\_getInstance(), ilECSDataMappingSettings\_getInstance(), IL_CAL_UNIX, parseDuration(), ilDurationInputGUI\setHours(), ilAdvancedMDFieldDefinition\TYPE_SELECT, and ilAdvancedMDFieldDefinition\TYPE_TEXT.
|
private |
convert input array to unix time
private
Definition at line 537 of file class.ilAdvancedMDRecordGUI.php.
Referenced by loadECSDurationPost().
|
private |
Definition at line 31 of file class.ilAdvancedMDRecordGUI.php.
Referenced by setPropertyForm().
|
protected |
Definition at line 24 of file class.ilAdvancedMDRecordGUI.php.
Referenced by __construct().
|
private |
Definition at line 26 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 29 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 27 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 33 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 28 of file class.ilAdvancedMDRecordGUI.php.
Referenced by parseEditor().
|
private |
Definition at line 32 of file class.ilAdvancedMDRecordGUI.php.
const ilAdvancedMDRecordGUI::MODE_EDITOR = 1 |
Definition at line 16 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilGlossaryTermGUI\getEditTermForm(), ilRemoteObjectBaseGUI\initEditForm(), ilObjCategoryGUI\initExtendedSettings(), ilObjCourseGUI\initInfoEditor(), ilObjCategoryGUI\updateInfoObject(), ilObjCourseGUI\updateInfoObject(), ilRemoteObjectBaseGUI\updateObject(), and ilGlossaryTermGUI\updateTerm().
const ilAdvancedMDRecordGUI::MODE_FILTER = 5 |
Definition at line 20 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilPresentationListTableGUI\initFilter().
const ilAdvancedMDRecordGUI::MODE_INFO = 3 |
Definition at line 18 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilRemoteObjectBaseGUI\infoScreen(), ilObjCourseGUI\infoScreen(), and ilObjCategoryGUI\infoScreen().
const ilAdvancedMDRecordGUI::MODE_REC_SELECTION = 4 |
Definition at line 19 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjGlossaryGUI\initSettingsForm(), and ilObjGlossaryGUI\saveProperties().
const ilAdvancedMDRecordGUI::MODE_SEARCH = 2 |
Definition at line 17 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilAdvancedSearchGUI\initAdvancedMetaDataForm().
const ilAdvancedMDRecordGUI::MODE_TABLE_CELLS = 7 |
Definition at line 22 of file class.ilAdvancedMDRecordGUI.php.
const ilAdvancedMDRecordGUI::MODE_TABLE_HEAD = 6 |
Definition at line 21 of file class.ilAdvancedMDRecordGUI.php.