ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (int $a_mode, string $a_obj_type='', int $a_obj_id=0, string $a_sub_type='', int $a_sub_id=0, bool $in_repository=true) | |
Constructor. More... | |
setAdvMdRecordObject (int $a_adv_id, string $a_adv_type, string $a_adv_subtype="-") | |
Set object, that defines the adv md records being used. More... | |
getAdvMdRecordObject () | |
Get adv md record parameters. More... | |
setRefId (int $a_ref_id) | |
Set ref_id for context. More... | |
setPropertyForm (ilPropertyFormGUI $form) | |
setSearchValues (array $a_values) | |
Set values for search form. More... | |
setInfoObject (ilInfoScreenGUI $info) | |
get info sections More... | |
setRecordFilter (?array $filter=null) | |
Set advanced record filter. More... | |
parse () | |
Get HTML. More... | |
importEditFormPostValues () | |
Load edit form values from post. More... | |
writeEditForm (?int $a_obj_id=null, ?int $a_sub_id=null) | |
Write edit form values to db. More... | |
importSearchForm () | |
Load edit form values from post. More... | |
setSearchFormValues (array $a_values) | |
parseRecordSelection (string $a_sec_head="") | |
Parse property form in editor mode. More... | |
saveSelection () | |
Save selection per object. More... | |
setTableGUI (ilTable2GUI $a_val) | |
Set table for self::MODE_TABLE_FILTER. More... | |
getTableGUI () | |
setRowData (array $a_val) | |
Set row data. More... | |
getRowData () | |
Get row data. More... | |
importFilter () | |
Import filter (post) values. More... | |
getFilterElements (bool $a_only_non_empty=true) | |
Get SQL conditions for current filter value(s) More... | |
Data Fields | |
const | MODE_UNDEFINED = 0 |
const | MODE_EDITOR = 1 |
const | MODE_SEARCH = 2 |
const | MODE_INFO = 3 |
const | MODE_APP_PRESENTATION = 8 |
const | MODE_REC_SELECTION = 4 |
const | MODE_FILTER = 5 |
const | MODE_TABLE_HEAD = 6 |
const | MODE_TABLE_CELLS = 7 |
Protected Member Functions | |
checkFilter ($record_id) | |
Check filter. More... | |
parseEditor () | |
Parse property form in editor mode. More... | |
getActiveRecords () | |
Protected Attributes | |
ilPropertyFormGUI | $form = null |
array | $search_values = [] |
array | $search_form = null |
array | $search_form_values = null |
array | $editor_form = [] |
ilInfoScreenGUI | $info = null |
int | $adv_id = null |
string | $adv_type = null |
string | $adv_subtype = null |
bool | $in_repository = true |
ilObjUser | $user |
ilLanguage | $lng |
GlobalHttpState | $http |
RefineryFactory | $refinery |
array | $record_filter = null |
Private Member Functions | |
parseSearch () | |
Parse search. More... | |
parseInfoPage () | |
Presentation for info page. More... | |
parseAppointmentPresentationa () | |
Presentation for calendar agenda list. More... | |
handleECSDefinitions ($a_definition) | |
handle ecs definitions More... | |
parseFilter () | |
Parse property for filter (table) More... | |
parseTableHead () | |
Parse property for table head. More... | |
parseTableCells () | |
Parse table cells. More... | |
Private Attributes | |
int | $mode = self::MODE_UNDEFINED |
string | $obj_type = '' |
string | $sub_type = '' |
int | $sub_id = 0 |
int | $obj_id = 0 |
int | $ref_id = null |
ilTable2GUI | $table_gui = null |
array | $row_data = null |
array | $adt_search = null |
Definition at line 29 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::__construct | ( | int | $a_mode, |
string | $a_obj_type = '' , |
||
int | $a_obj_id = 0 , |
||
string | $a_sub_type = '' , |
||
int | $a_sub_id = 0 , |
||
bool | $in_repository = true |
||
) |
Constructor.
int | $a_mode | mode either MODE_EDITOR or MODE_SEARCH |
Definition at line 92 of file class.ilAdvancedMDRecordGUI.php.
References $DIC, $in_repository, ilObject\_getAllReferences(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
|
protected |
Check filter.
Definition at line 191 of file class.ilAdvancedMDRecordGUI.php.
Referenced by parseEditor().
|
protected |
Definition at line 625 of file class.ilAdvancedMDRecordGUI.php.
References ilAdvancedMDRecord\_getSelectedRecordsByObject(), and getAdvMdRecordObject().
Referenced by parseEditor(), parseFilter(), parseSearch(), parseTableCells(), and parseTableHead().
ilAdvancedMDRecordGUI::getAdvMdRecordObject | ( | ) |
Get adv md record parameters.
Definition at line 136 of file class.ilAdvancedMDRecordGUI.php.
References $adv_id, $adv_subtype, $adv_type, $obj_id, $obj_type, $ref_id, and $sub_type.
Referenced by getActiveRecords().
ilAdvancedMDRecordGUI::getFilterElements | ( | bool | $a_only_non_empty = true | ) |
Get SQL conditions for current filter value(s)
Definition at line 684 of file class.ilAdvancedMDRecordGUI.php.
References $res.
Referenced by ilTable2GUI\isAdvMDFilter().
ilAdvancedMDRecordGUI::getRowData | ( | ) |
Get row data.
Definition at line 617 of file class.ilAdvancedMDRecordGUI.php.
References $row_data.
Referenced by parseTableCells().
ilAdvancedMDRecordGUI::getTableGUI | ( | ) |
Definition at line 599 of file class.ilAdvancedMDRecordGUI.php.
References $table_gui.
|
private |
handle ecs definitions
Definition at line 531 of file class.ilAdvancedMDRecordGUI.php.
References ilECSServerSettings\getInstance().
Referenced by parseTableCells(), and parseTableHead().
ilAdvancedMDRecordGUI::importEditFormPostValues | ( | ) |
Load edit form values from post.
Definition at line 297 of file class.ilAdvancedMDRecordGUI.php.
References $valid.
Referenced by ilObjSessionGUI\saveObject(), ilRemoteObjectBaseGUI\updateObject(), and ilObjSessionGUI\updateObject().
ilAdvancedMDRecordGUI::importFilter | ( | ) |
Import filter (post) values.
Definition at line 670 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::importSearchForm | ( | ) |
ilAdvancedMDRecordGUI::parse | ( | ) |
Get HTML.
InvalidArgumentException | PhpVoidFunctionResultUsedInspection |
Definition at line 206 of file class.ilAdvancedMDRecordGUI.php.
References parseAppointmentPresentationa(), parseEditor(), parseFilter(), parseInfoPage(), parseRecordSelection(), parseSearch(), parseTableCells(), and parseTableHead().
Referenced by ilObjCourseGUI\infoScreen(), and ilObjCategoryGUI\infoScreen().
|
private |
Presentation for calendar agenda list.
TODO replace this by presentation_bridge->getHTML() when maps work in modals (36490). Note that at that point formatting of maps in appointment lists has to be improved.
Definition at line 470 of file class.ilAdvancedMDRecordGUI.php.
References ilAdvancedMDSubstitution\_getInstanceByObjectType(), ilADTFactory\getInstance(), ilAdvancedMDFieldTranslations\getInstanceByRecordId(), ilAdvancedMDFieldDefinition\getInstancesByObjType(), ilAdvancedMDValues\getInstancesForObjectId(), and ILIAS\Repository\user().
Referenced by parse().
|
protected |
Parse property form in editor mode.
Definition at line 241 of file class.ilAdvancedMDRecordGUI.php.
References checkFilter(), ILIAS\Repository\form(), getActiveRecords(), ilADTFactory\getInstance(), ilAdvancedMDRecordTranslations\getInstanceByRecordId(), ilAdvancedMDFieldTranslations\getInstanceByRecordId(), and ILIAS\Repository\user().
Referenced by parse().
|
private |
Parse property for filter (table)
Definition at line 634 of file class.ilAdvancedMDRecordGUI.php.
References getActiveRecords(), ilADTFactory\getInstance(), ilAdvancedMDFieldTranslations\getInstanceByRecordId(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), and ILIAS\Repository\user().
Referenced by parse().
|
private |
Presentation for info page.
Definition at line 432 of file class.ilAdvancedMDRecordGUI.php.
References ilADTFactory\getInstance(), ilAdvancedMDRecordTranslations\getInstanceByRecordId(), ilAdvancedMDFieldTranslations\getInstanceByRecordId(), ilAdvancedMDValues\getInstancesForObjectId(), ILIAS\UI\examples\MessageBox\Info\info(), and ILIAS\Repository\user().
Referenced by parse().
ilAdvancedMDRecordGUI::parseRecordSelection | ( | string | $a_sec_head = "" | ) |
Parse property form in editor mode.
Definition at line 545 of file class.ilAdvancedMDRecordGUI.php.
References ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ILIAS\Repository\form(), ilAdvancedMDRecord\getObjRecSelection(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setInfo().
Referenced by parse().
|
private |
Parse search.
Definition at line 342 of file class.ilAdvancedMDRecordGUI.php.
References ILIAS\Repository\form(), getActiveRecords(), ilADTFactory\getInstance(), ilAdvancedMDRecordTranslations\getInstanceByRecordId(), ilAdvancedMDFieldTranslations\getInstanceByRecordId(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Referenced by parse().
|
private |
Parse table cells.
Definition at line 727 of file class.ilAdvancedMDRecordGUI.php.
References $data, $res, getActiveRecords(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getRowData(), and handleECSDefinitions().
Referenced by parse().
|
private |
Parse property for table head.
Definition at line 703 of file class.ilAdvancedMDRecordGUI.php.
References getActiveRecords(), ilAdvancedMDFieldTranslations\getInstanceByRecordId(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), handleECSDefinitions(), and ILIAS\Repository\user().
Referenced by parse().
ilAdvancedMDRecordGUI::saveSelection | ( | ) |
Save selection per object.
Definition at line 577 of file class.ilAdvancedMDRecordGUI.php.
References ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ilAdvancedMDRecord\saveObjRecSelection().
ilAdvancedMDRecordGUI::setAdvMdRecordObject | ( | int | $a_adv_id, |
string | $a_adv_type, | ||
string | $a_adv_subtype = "-" |
||
) |
Set object, that defines the adv md records being used.
Default is $this->object, but the context may set another object (e.g. media pool for media objects)
int | $a_adv_id | ref id, if $in_repository is true, otherwise object id |
Definition at line 125 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setInfoObject | ( | ilInfoScreenGUI | $info | ) |
get info sections
Definition at line 174 of file class.ilAdvancedMDRecordGUI.php.
References $info, and ILIAS\UI\examples\MessageBox\Info\info().
Referenced by ilObjIndividualAssessmentGUI\buildInfoScreen(), ilObjOrgUnitGUI\executeCommand(), ilObjStudyProgrammeGUI\fillInfoScreen(), ilObjExerciseGUI\getService(), ilRemoteObjectBaseGUI\infoScreen(), ilObjCourseGUI\infoScreen(), ilObjCategoryGUI\infoScreen(), ilObjGroupGUI\infoScreen(), and ilObjSessionGUI\showJoinRequestButton().
ilAdvancedMDRecordGUI::setPropertyForm | ( | ilPropertyFormGUI | $form | ) |
Definition at line 157 of file class.ilAdvancedMDRecordGUI.php.
References $form, and ILIAS\Repository\form().
Referenced by ilObjStudyProgrammeGUI\editAdvancedSettings(), ilObjOrgUnitGUI\editAdvancedSettings(), ilObjTalkTemplateGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjEmployeeTalkGUI\getAdminTabs(), ilGlossaryTermGUI\getEditTermForm(), ilWikiPageGUI\initAdvancedMetaDataForm(), ilRemoteObjectBaseGUI\initEditForm(), ilObjCategoryGUI\initExtendedSettings(), ilObjSessionGUI\initForm(), ilObjCourseGUI\initInfoEditor(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), and ilObjOrgUnitGUI\updateAdvancedSettings().
ilAdvancedMDRecordGUI::setRecordFilter | ( | ?array | $filter = null | ) |
Set advanced record filter.
?int[] | $filter |
Definition at line 183 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setRefId | ( | int | $a_ref_id | ) |
Set ref_id for context.
In case of object creations this is the reference id of the parent container.
Definition at line 152 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjTalkTemplateGUI\initMetaDataForm().
ilAdvancedMDRecordGUI::setRowData | ( | array | $a_val | ) |
Set row data.
array | $a_val | assoc array of row data (containing md record data) |
Definition at line 608 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setSearchFormValues | ( | array | $a_values | ) |
Definition at line 423 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setSearchValues | ( | array | $a_values | ) |
Set values for search form.
Definition at line 165 of file class.ilAdvancedMDRecordGUI.php.
ilAdvancedMDRecordGUI::setTableGUI | ( | ilTable2GUI | $a_val | ) |
Set table for self::MODE_TABLE_FILTER.
Definition at line 594 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilPresentationListTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), and ilMediaPoolTableGUI\fillRow().
ilAdvancedMDRecordGUI::writeEditForm | ( | ?int | $a_obj_id = null , |
?int | $a_sub_id = null |
||
) |
Write edit form values to db.
Definition at line 314 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 53 of file class.ilAdvancedMDRecordGUI.php.
|
protected |
Definition at line 69 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getAdvMdRecordObject().
|
protected |
Definition at line 71 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getAdvMdRecordObject().
|
protected |
Definition at line 70 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getAdvMdRecordObject().
|
protected |
Definition at line 59 of file class.ilAdvancedMDRecordGUI.php.
|
protected |
Definition at line 54 of file class.ilAdvancedMDRecordGUI.php.
Referenced by setPropertyForm().
|
protected |
Definition at line 78 of file class.ilAdvancedMDRecordGUI.php.
|
protected |
Definition at line 74 of file class.ilAdvancedMDRecordGUI.php.
Referenced by __construct().
|
protected |
Definition at line 61 of file class.ilAdvancedMDRecordGUI.php.
Referenced by setInfoObject().
|
protected |
Definition at line 77 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 43 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 47 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getAdvMdRecordObject().
|
private |
Definition at line 44 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getAdvMdRecordObject().
|
protected |
Definition at line 85 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 48 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getAdvMdRecordObject().
|
protected |
Definition at line 79 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 52 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getRowData().
|
protected |
Definition at line 56 of file class.ilAdvancedMDRecordGUI.php.
|
protected |
Definition at line 57 of file class.ilAdvancedMDRecordGUI.php.
|
protected |
Definition at line 55 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 46 of file class.ilAdvancedMDRecordGUI.php.
|
private |
Definition at line 45 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getAdvMdRecordObject().
|
private |
Definition at line 51 of file class.ilAdvancedMDRecordGUI.php.
Referenced by getTableGUI().
|
protected |
Definition at line 76 of file class.ilAdvancedMDRecordGUI.php.
const ilAdvancedMDRecordGUI::MODE_APP_PRESENTATION = 8 |
Definition at line 35 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilAppointmentPresentationGUI\addMetaData().
const ilAdvancedMDRecordGUI::MODE_EDITOR = 1 |
Definition at line 32 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjStudyProgrammeGUI\editAdvancedSettings(), ilObjOrgUnitGUI\editAdvancedSettings(), ilObjTalkTemplateGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjEmployeeTalkGUI\getAdminTabs(), ilGlossaryTermGUI\getEditTermForm(), ilPCAMDFormGUI\getPortfolioForm(), ilWikiPageGUI\initAdvancedMetaDataForm(), ilRemoteObjectBaseGUI\initEditForm(), ilObjectMetaDataGUI\initEditForm(), ilObjCategoryGUI\initExtendedSettings(), ilBookingObjectGUI\initForm(), ilObjSessionGUI\initForm(), ilObjCourseGUI\initInfoEditor(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), and ilRemoteObjectBaseGUI\updateObject().
const ilAdvancedMDRecordGUI::MODE_FILTER = 5 |
Definition at line 39 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilPresentationListTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilBookingObjectsTableGUI\getItems(), and ilBookingReservationsTableGUI\getItems().
const ilAdvancedMDRecordGUI::MODE_INFO = 3 |
Definition at line 34 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjIndividualAssessmentGUI\buildInfoScreen(), ilObjOrgUnitGUI\executeCommand(), ilObjStudyProgrammeGUI\fillInfoScreen(), ilObjExerciseGUI\getService(), ilRemoteObjectBaseGUI\infoScreen(), ilObjCourseGUI\infoScreen(), ilObjCategoryGUI\infoScreen(), ilObjGroupGUI\infoScreen(), and ilObjSessionGUI\showJoinRequestButton().
const ilAdvancedMDRecordGUI::MODE_REC_SELECTION = 4 |
Definition at line 38 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilObjTalkTemplateGUI\initMetaDataForm().
const ilAdvancedMDRecordGUI::MODE_SEARCH = 2 |
Definition at line 33 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilAdvancedSearchGUI\initAdvancedMetaDataForm(), and ilPCAMDPageListGUI\initForm().
const ilAdvancedMDRecordGUI::MODE_TABLE_CELLS = 7 |
Definition at line 41 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilMediaPoolTableGUI\fillRow().
const ilAdvancedMDRecordGUI::MODE_TABLE_HEAD = 6 |
Definition at line 40 of file class.ilAdvancedMDRecordGUI.php.
Referenced by ilMediaPoolTableGUI\__construct().
const ilAdvancedMDRecordGUI::MODE_UNDEFINED = 0 |
Definition at line 31 of file class.ilAdvancedMDRecordGUI.php.