ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_mode, $a_obj_type= '', $a_obj_id= '') | |
Constructor. | |
setPropertyForm ($form) | |
set property form object | |
setSearchValues ($a_values) | |
Set values for search form. | |
setInfoObject ($info) | |
get info sections | |
parse () | |
Get HTML. | |
loadFromPost () | |
Load values from post. | |
saveValues () | |
Save values. |
Data Fields | |
const | MODE_EDITOR = 1 |
const | MODE_SEARCH = 2 |
const | MODE_INFO = 3 |
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. |
Private Attributes | |
$mode | |
$obj_type | |
$obj_id | |
$form | |
$values = array() | |
$search_values = array() |
Definition at line 33 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::__construct | ( | $a_mode, | |
$a_obj_type = '' , |
|||
$a_obj_id = '' |
|||
) |
Constructor.
public
int | mode either MODE_EDITOR or MODE_SEARCH |
int | obj_type |
Definition at line 57 of file class.ilAdvancedMDRecordGUI.php.
References $lng.
|
private |
handle ecs definitions
private
object | ilAdvMDFieldDefinition |
Definition at line 519 of file class.ilAdvancedMDRecordGUI.php.
References ilECSDataMappingSettings\_getInstance(), ilECSSettings\_getInstance(), and showECSStart().
Referenced by parseEditor().
|
protected |
load ecs duration post
protected
@return |
Definition at line 205 of file class.ilAdvancedMDRecordGUI.php.
References $_POST, ilECSDataMappingSettings\_getInstance(), ilAdvancedMDValue\_getInstance(), ilECSSettings\_getInstance(), and toUnixTime().
Referenced by loadFromPost().
ilAdvancedMDRecordGUI::loadFromPost | ( | ) |
Load values from post.
public
Definition at line 134 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(), and ilObjRemoteCourseGUI\updateObject().
ilAdvancedMDRecordGUI::parse | ( | ) |
Get HTML.
public
Definition at line 110 of file class.ilAdvancedMDRecordGUI.php.
References parseEditor(), parseInfoPage(), and parseSearch().
|
protected |
parse hours and minutes from duration
protected
@return |
Definition at line 648 of file class.ilAdvancedMDRecordGUI.php.
References $diff.
Referenced by showECSStart().
|
private |
Parse property form in editor mode.
private
Definition at line 260 of file class.ilAdvancedMDRecordGUI.php.
References $section, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), ilAdvancedMDValue\_getInstance(), handleECSDefinitions(), IL_CAL_UNIX, ilAdvancedMDFieldDefinition\TYPE_DATE, ilAdvancedMDFieldDefinition\TYPE_DATETIME, ilAdvancedMDFieldDefinition\TYPE_SELECT, and ilAdvancedMDFieldDefinition\TYPE_TEXT.
Referenced by parse().
|
private |
Definition at line 453 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().
|
private |
Parse search.
private
Definition at line 345 of file class.ilAdvancedMDRecordGUI.php.
References $key, $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().
ilAdvancedMDRecordGUI::saveValues | ( | ) |
Save values.
public
Definition at line 245 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setInfoObject | ( | $info | ) |
get info sections
public
object | instance of ilInfoScreenGUI |
Definition at line 98 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjRemoteCourseGUI\infoScreen(), ilObjCourseGUI\infoScreen(), and ilObjCategoryGUI\infoScreen().
ilAdvancedMDRecordGUI::setPropertyForm | ( | $form | ) |
set property form object
public
Definition at line 74 of file class.ilAdvancedMDRecordGUI.php.
References $form.
Referenced by ilObjRemoteCourseGUI\initEditTable(), ilObjCategoryGUI\initExtendedSettings(), and ilObjCourseGUI\initInfoEditor().
ilAdvancedMDRecordGUI::setSearchValues | ( | $a_values | ) |
Set values for search form.
public
Definition at line 85 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Show special form for ecs start.
private
object | ilAdvMDFieldDefinition |
Definition at line 555 of file class.ilAdvancedMDRecordGUI.php.
References ilECSDataMappingSettings\_getInstance(), ilAdvancedMDValue\_getInstance(), IL_CAL_UNIX, parseDuration(), ilDurationInputGUI\setHours(), ilAdvancedMDFieldDefinition\TYPE_SELECT, and ilAdvancedMDFieldDefinition\TYPE_TEXT.
Referenced by handleECSDefinitions().
|
private |
convert input array to unix time
private
Definition at line 507 of file class.ilAdvancedMDRecordGUI.php.
Referenced by loadECSDurationPost().
|
private |
Definition at line 45 of file class.ilAdvancedMDRecordGUI.php.
Referenced by setPropertyForm().
|
protected |
Definition at line 39 of file class.ilAdvancedMDRecordGUI.php.
Referenced by __construct().
|
private |
Definition at line 41 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 43 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 42 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 47 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 46 of file class.ilAdvancedMDRecordGUI.php.
const ilAdvancedMDRecordGUI::MODE_EDITOR = 1 |
Definition at line 35 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjRemoteCourseGUI\initEditTable(), ilObjCategoryGUI\initExtendedSettings(), ilObjCourseGUI\initInfoEditor(), ilObjCategoryGUI\updateInfoObject(), ilObjCourseGUI\updateInfoObject(), and ilObjRemoteCourseGUI\updateObject().
const ilAdvancedMDRecordGUI::MODE_INFO = 3 |
Definition at line 37 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjRemoteCourseGUI\infoScreen(), ilObjCourseGUI\infoScreen(), and ilObjCategoryGUI\infoScreen().
const ilAdvancedMDRecordGUI::MODE_SEARCH = 2 |
Definition at line 36 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilAdvancedSearchGUI\initAdvancedMetaDataForm().