|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
User Interface for NewsItem entities. More...
Collaboration diagram for ilNewsItemGUI:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getHTML () | |
| Get html. More... | |
| executeCommand () | |
| Execute command. More... | |
| setEnableEdit ($a_enable_edit=0) | |
| Set EnableEdit. More... | |
| getEnableEdit () | |
| Get EnableEdit. More... | |
| setContextObjId ($a_context_obj_id) | |
| Set ContextObjId. More... | |
| getContextObjId () | |
| Get ContextObjId. More... | |
| setContextObjType ($a_context_obj_type) | |
| Set ContextObjType. More... | |
| getContextObjType () | |
| Get ContextObjType. More... | |
| setContextSubObjId ($a_context_sub_obj_id) | |
| Set ContextSubObjId. More... | |
| getContextSubObjId () | |
| Get ContextSubObjId. More... | |
| setContextSubObjType ($a_context_sub_obj_type) | |
| Set ContextSubObjType. More... | |
| getContextSubObjType () | |
| Get ContextSubObjType. More... | |
| setFormEditMode ($a_form_edit_mode) | |
| Set FormEditMode. More... | |
| getFormEditMode () | |
| Get FormEditMode. More... | |
| createNewsItem () | |
| FORM NewsItem: Create NewsItem. More... | |
| editNewsItem () | |
| FORM NewsItem: Edit form. More... | |
| getValuesNewsItem (\ilPropertyFormGUI $a_form) | |
| FORM NewsItem: Get current values for NewsItem form. More... | |
| saveNewsItem () | |
| FORM NewsItem: Save NewsItem. More... | |
| exitSaveNewsItem () | |
| updateNewsItem () | |
| FORM NewsItem: Save NewsItem. More... | |
| exitUpdateNewsItem () | |
| cancelUpdateNewsItem () | |
| FORM NewsItem: Save NewsItem. More... | |
| cancelSaveNewsItem () | |
| FORM NewsItem: Save NewsItem. More... | |
| editNews () | |
| Edit news. More... | |
| cancelUpdate () | |
| Cancel update. More... | |
| confirmDeletionNewsItems () | |
| Confirmation Screen. More... | |
| deleteNewsItems () | |
| Delete news items. More... | |
| getNewsForContextBlock () | |
| BLOCK NewsForContext: Get block HTML. More... | |
| getNewsForContextTable () | |
| TABLE NewsForContext: Get table HTML. More... | |
| setTabs () | |
| Set tabs. More... | |
Static Public Member Functions | |
| static | getEditForm ($a_mode, $a_ref_id) |
| FORM NewsItem: Init form. More... | |
| static | isRteActivated () |
| Is Rte activated. More... | |
Data Fields | |
| const | FORM_EDIT = 0 |
| const | FORM_CREATE = 1 |
| const | FORM_RE_EDIT = 2 |
| const | FORM_RE_CREATE = 2 |
Protected Member Functions | |
| initFormNewsItem ($a_mode) | |
| FORM NewsItem: Init form. More... | |
Protected Attributes | |
| $ctrl | |
| $lng | |
| $tabs | |
| $user | |
| $toolbar | |
| $enable_edit = 0 | |
| $context_obj_id | |
| $context_obj_type | |
| $context_sub_obj_id | |
| $context_sub_obj_type | |
| $form_edit_mode | |
User Interface for NewsItem entities.
Definition at line 16 of file class.ilNewsItemGUI.php.
| ilNewsItemGUI::__construct | ( | ) |
Constructor.
Definition at line 59 of file class.ilNewsItemGUI.php.
References $_GET, $DIC, $lng, setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), setEnableEdit(), and user().
Here is the call graph for this function:| ilNewsItemGUI::cancelSaveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 548 of file class.ilNewsItemGUI.php.
References $_GET, $ctrl, and editNews().
Here is the call graph for this function:| ilNewsItemGUI::cancelUpdate | ( | ) |
Cancel update.
Definition at line 587 of file class.ilNewsItemGUI.php.
References editNews().
Here is the call graph for this function:| ilNewsItemGUI::cancelUpdateNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 539 of file class.ilNewsItemGUI.php.
References editNews().
Here is the call graph for this function:| ilNewsItemGUI::confirmDeletionNewsItems | ( | ) |
Confirmation Screen.
Definition at line 595 of file class.ilNewsItemGUI.php.
References $_POST, $ctrl, $lng, $tabs, editNews(), getEnableEdit(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilNewsItemGUI::createNewsItem | ( | ) |
FORM NewsItem: Create NewsItem.
Definition at line 260 of file class.ilNewsItemGUI.php.
References initFormNewsItem().
Here is the call graph for this function:| ilNewsItemGUI::deleteNewsItems | ( | ) |
Delete news items.
Definition at line 634 of file class.ilNewsItemGUI.php.
References $_POST, editNews(), and getEnableEdit().
Here is the call graph for this function:| ilNewsItemGUI::editNews | ( | ) |
Edit news.
Definition at line 564 of file class.ilNewsItemGUI.php.
References $ctrl, $lng, $tabs, $toolbar, getEnableEdit(), getNewsForContextTable(), and setTabs().
Referenced by cancelSaveNewsItem(), cancelUpdate(), cancelUpdateNewsItem(), confirmDeletionNewsItems(), and deleteNewsItems().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItemGUI::editNewsItem | ( | ) |
FORM NewsItem: Edit form.
Definition at line 270 of file class.ilNewsItemGUI.php.
References getValuesNewsItem(), and initFormNewsItem().
Here is the call graph for this function:| ilNewsItemGUI::executeCommand | ( | ) |
Execute command.
Definition at line 112 of file class.ilNewsItemGUI.php.
References $ctrl, and ilNewsItem\_lookupContextObjId().
Here is the call graph for this function:| ilNewsItemGUI::exitSaveNewsItem | ( | ) |
Definition at line 463 of file class.ilNewsItemGUI.php.
Referenced by saveNewsItem().
Here is the caller graph for this function:| ilNewsItemGUI::exitUpdateNewsItem | ( | ) |
Definition at line 528 of file class.ilNewsItemGUI.php.
References $ctrl.
Referenced by updateNewsItem().
Here is the caller graph for this function:| ilNewsItemGUI::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 171 of file class.ilNewsItemGUI.php.
References $context_obj_id.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
Here is the caller graph for this function:| ilNewsItemGUI::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 191 of file class.ilNewsItemGUI.php.
References $context_obj_type.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
Here is the caller graph for this function:| ilNewsItemGUI::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 211 of file class.ilNewsItemGUI.php.
References $context_sub_obj_id.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
Here is the caller graph for this function:| ilNewsItemGUI::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 231 of file class.ilNewsItemGUI.php.
References $context_sub_obj_type.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
Here is the caller graph for this function:
|
static |
FORM NewsItem: Init form.
| int | $a_mode | Form Edit Mode |
Definition at line 301 of file class.ilNewsItemGUI.php.
References $DIC, $lng, ilNewsItem\_getDefaultVisibilityForRefId(), and ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilNewsTimelineGUI\getEditModal(), initFormNewsItem(), ilNewsTimelineGUI\save(), and ilNewsTimelineGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItemGUI::getEnableEdit | ( | ) |
Get EnableEdit.
Definition at line 151 of file class.ilNewsItemGUI.php.
References $enable_edit.
Referenced by confirmDeletionNewsItems(), deleteNewsItems(), editNews(), getNewsForContextBlock(), saveNewsItem(), and updateNewsItem().
Here is the caller graph for this function:| ilNewsItemGUI::getFormEditMode | ( | ) |
Get FormEditMode.
Definition at line 251 of file class.ilNewsItemGUI.php.
References $form_edit_mode.
| ilNewsItemGUI::getHTML | ( | ) |
Get html.
Definition at line 98 of file class.ilNewsItemGUI.php.
References $ctrl, $lng, and getNewsForContextBlock().
Here is the call graph for this function:| ilNewsItemGUI::getNewsForContextBlock | ( | ) |
BLOCK NewsForContext: Get block HTML.
Definition at line 652 of file class.ilNewsItemGUI.php.
References $data, $lng, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getEnableEdit().
Referenced by getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItemGUI::getNewsForContextTable | ( | ) |
TABLE NewsForContext: Get table HTML.
Definition at line 688 of file class.ilNewsItemGUI.php.
References $_GET, $data, $lng, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
Referenced by editNews().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItemGUI::getValuesNewsItem | ( | \ilPropertyFormGUI | $a_form | ) |
FORM NewsItem: Get current values for NewsItem form.
Definition at line 388 of file class.ilNewsItemGUI.php.
References ilObject\_lookupTitle(), ilPropertyFormGUI\getItemByPostVar(), and ilPropertyFormGUI\setValuesByArray().
Referenced by editNewsItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
FORM NewsItem: Init form.
| int | $a_mode | Form Edit Mode |
Definition at line 284 of file class.ilNewsItemGUI.php.
References $_GET, $tabs, and getEditForm().
Referenced by createNewsItem(), editNewsItem(), saveNewsItem(), and updateNewsItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Is Rte activated.
Definition at line 766 of file class.ilNewsItemGUI.php.
References ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilNewsTimelineGUI\save(), and ilNewsTimelineGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItemGUI::saveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 410 of file class.ilNewsItemGUI.php.
References $ilUser, $user, ilObjMediaObject\_saveTempFileAsMediaObject(), exitSaveNewsItem(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getEnableEdit(), and initFormNewsItem().
Here is the call graph for this function:| ilNewsItemGUI::setContextObjId | ( | $a_context_obj_id | ) |
Set ContextObjId.
| int | $a_context_obj_id |
Definition at line 161 of file class.ilNewsItemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilNewsItemGUI::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
| int | $a_context_obj_type |
Definition at line 181 of file class.ilNewsItemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilNewsItemGUI::setContextSubObjId | ( | $a_context_sub_obj_id | ) |
Set ContextSubObjId.
| int | $a_context_sub_obj_id |
Definition at line 201 of file class.ilNewsItemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilNewsItemGUI::setContextSubObjType | ( | $a_context_sub_obj_type | ) |
Set ContextSubObjType.
| int | $a_context_sub_obj_type |
Definition at line 221 of file class.ilNewsItemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilNewsItemGUI::setEnableEdit | ( | $a_enable_edit = 0 | ) |
Set EnableEdit.
| boolean | $a_enable_edit | Edit mode on/off |
Definition at line 141 of file class.ilNewsItemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilNewsItemGUI::setFormEditMode | ( | $a_form_edit_mode | ) |
Set FormEditMode.
| int | $a_form_edit_mode | Form Edit Mode |
Definition at line 241 of file class.ilNewsItemGUI.php.
| ilNewsItemGUI::setTabs | ( | ) |
Set tabs.
return
Definition at line 748 of file class.ilNewsItemGUI.php.
References $ctrl, $lng, and $tabs.
Referenced by editNews().
Here is the caller graph for this function:| ilNewsItemGUI::updateNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 478 of file class.ilNewsItemGUI.php.
References $_POST, $ilUser, $user, ilObject\_lookupType(), ilObjMediaObject\_saveTempFileAsMediaObject(), exitUpdateNewsItem(), getEnableEdit(), and initFormNewsItem().
Here is the call graph for this function:
|
protected |
Definition at line 49 of file class.ilNewsItemGUI.php.
Referenced by getContextObjId().
|
protected |
Definition at line 50 of file class.ilNewsItemGUI.php.
Referenced by getContextObjType().
|
protected |
Definition at line 51 of file class.ilNewsItemGUI.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 52 of file class.ilNewsItemGUI.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 26 of file class.ilNewsItemGUI.php.
Referenced by cancelSaveNewsItem(), confirmDeletionNewsItems(), editNews(), executeCommand(), exitSaveNewsItem(), exitUpdateNewsItem(), getHTML(), and setTabs().
|
protected |
Definition at line 48 of file class.ilNewsItemGUI.php.
Referenced by getEnableEdit().
|
protected |
Definition at line 53 of file class.ilNewsItemGUI.php.
Referenced by getFormEditMode().
|
protected |
Definition at line 31 of file class.ilNewsItemGUI.php.
Referenced by __construct(), confirmDeletionNewsItems(), editNews(), getEditForm(), getHTML(), getNewsForContextBlock(), getNewsForContextTable(), and setTabs().
|
protected |
Definition at line 36 of file class.ilNewsItemGUI.php.
Referenced by confirmDeletionNewsItems(), editNews(), initFormNewsItem(), and setTabs().
|
protected |
Definition at line 46 of file class.ilNewsItemGUI.php.
Referenced by editNews().
|
protected |
Definition at line 41 of file class.ilNewsItemGUI.php.
Referenced by saveNewsItem(), and updateNewsItem().
| const ilNewsItemGUI::FORM_CREATE = 1 |
Definition at line 19 of file class.ilNewsItemGUI.php.
| const ilNewsItemGUI::FORM_EDIT = 0 |
Definition at line 18 of file class.ilNewsItemGUI.php.
Referenced by ilNewsTimelineGUI\getEditModal(), ilNewsTimelineGUI\save(), and ilNewsTimelineGUI\update().
| const ilNewsItemGUI::FORM_RE_CREATE = 2 |
Definition at line 21 of file class.ilNewsItemGUI.php.
| const ilNewsItemGUI::FORM_RE_EDIT = 2 |
Definition at line 20 of file class.ilNewsItemGUI.php.