ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
User Interface for NewsItem entities. More...
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 ($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... | |
Protected Member Functions | |
initFormNewsItem ($a_mode) | |
FORM NewsItem: Init form. More... | |
Protected Attributes | |
$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 20 of file class.ilNewsItemGUI.php.
ilNewsItemGUI::__construct | ( | ) |
Constructor.
Definition at line 33 of file class.ilNewsItemGUI.php.
References $_GET, $ilCtrl, $lng, array, setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), and setEnableEdit().
ilNewsItemGUI::cancelSaveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 491 of file class.ilNewsItemGUI.php.
References $_GET, $ilCtrl, and editNews().
ilNewsItemGUI::cancelUpdate | ( | ) |
Cancel update.
Definition at line 529 of file class.ilNewsItemGUI.php.
References editNews().
ilNewsItemGUI::cancelUpdateNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 482 of file class.ilNewsItemGUI.php.
References editNews().
ilNewsItemGUI::confirmDeletionNewsItems | ( | ) |
Confirmation Screen.
Definition at line 537 of file class.ilNewsItemGUI.php.
References $_POST, $ilCtrl, $lng, editNews(), getEnableEdit(), and ilUtil\sendFailure().
ilNewsItemGUI::createNewsItem | ( | ) |
FORM NewsItem: Create NewsItem.
Definition at line 230 of file class.ilNewsItemGUI.php.
References IL_FORM_CREATE, and initFormNewsItem().
ilNewsItemGUI::deleteNewsItems | ( | ) |
Delete news items.
Definition at line 577 of file class.ilNewsItemGUI.php.
References $_POST, editNews(), and getEnableEdit().
ilNewsItemGUI::editNews | ( | ) |
Edit news.
Definition at line 510 of file class.ilNewsItemGUI.php.
References $ilCtrl, $lng, getEnableEdit(), getNewsForContextTable(), and setTabs().
Referenced by cancelSaveNewsItem(), cancelUpdate(), cancelUpdateNewsItem(), confirmDeletionNewsItems(), and deleteNewsItems().
ilNewsItemGUI::editNewsItem | ( | ) |
FORM NewsItem: Edit form.
Definition at line 240 of file class.ilNewsItemGUI.php.
References getValuesNewsItem(), IL_FORM_EDIT, and initFormNewsItem().
ilNewsItemGUI::executeCommand | ( | ) |
Execute command.
Definition at line 79 of file class.ilNewsItemGUI.php.
References $cmd, $html, $ilCtrl, ilNewsItem\_lookupContextObjId(), and getContextObjId().
ilNewsItemGUI::exitSaveNewsItem | ( | ) |
Definition at line 421 of file class.ilNewsItemGUI.php.
References $_GET, and $ilCtrl.
Referenced by saveNewsItem().
ilNewsItemGUI::exitUpdateNewsItem | ( | ) |
Definition at line 471 of file class.ilNewsItemGUI.php.
References $ilCtrl.
Referenced by updateNewsItem().
ilNewsItemGUI::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 141 of file class.ilNewsItemGUI.php.
References $context_obj_id.
Referenced by executeCommand(), getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
ilNewsItemGUI::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 161 of file class.ilNewsItemGUI.php.
References $context_obj_type.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
ilNewsItemGUI::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 181 of file class.ilNewsItemGUI.php.
References $context_sub_obj_id.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
ilNewsItemGUI::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 201 of file class.ilNewsItemGUI.php.
References $context_sub_obj_type.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
|
static |
FORM NewsItem: Init form.
int | $a_mode | Form Edit Mode (IL_FORM_EDIT | IL_FORM_CREATE) |
Definition at line 272 of file class.ilNewsItemGUI.php.
References $lng, ilNewsItem\_getDefaultVisibilityForRefId(), array, IL_FORM_CREATE, IL_FORM_RE_CREATE, ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Referenced by ilNewsTimelineGUI\getEditModal(), ilNewsTimelineGUI\save(), and ilNewsTimelineGUI\update().
ilNewsItemGUI::getEnableEdit | ( | ) |
Get EnableEdit.
Definition at line 121 of file class.ilNewsItemGUI.php.
References $enable_edit.
Referenced by confirmDeletionNewsItems(), deleteNewsItems(), editNews(), getNewsForContextBlock(), saveNewsItem(), and updateNewsItem().
ilNewsItemGUI::getFormEditMode | ( | ) |
Get FormEditMode.
Definition at line 221 of file class.ilNewsItemGUI.php.
References $form_edit_mode.
ilNewsItemGUI::getHTML | ( | ) |
Get html.
Definition at line 66 of file class.ilNewsItemGUI.php.
References $ilCtrl, $lng, and getNewsForContextBlock().
ilNewsItemGUI::getNewsForContextBlock | ( | ) |
BLOCK NewsForContext: Get block HTML.
Definition at line 597 of file class.ilNewsItemGUI.php.
References $data, $lng, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getEnableEdit().
Referenced by getHTML().
ilNewsItemGUI::getNewsForContextTable | ( | ) |
TABLE NewsForContext: Get table HTML.
Definition at line 634 of file class.ilNewsItemGUI.php.
References $_GET, $data, $lng, array, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
Referenced by editNews().
ilNewsItemGUI::getValuesNewsItem | ( | $a_form | ) |
FORM NewsItem: Get current values for NewsItem form.
Definition at line 354 of file class.ilNewsItemGUI.php.
References array.
Referenced by editNewsItem().
|
protected |
FORM NewsItem: Init form.
int | $a_mode | Form Edit Mode (IL_FORM_EDIT | IL_FORM_CREATE) |
Definition at line 255 of file class.ilNewsItemGUI.php.
References $_GET.
Referenced by createNewsItem(), editNewsItem(), saveNewsItem(), and updateNewsItem().
|
static |
Is Rte activated.
Definition at line 702 of file class.ilNewsItemGUI.php.
References ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilNewsTimelineGUI\save(), and ilNewsTimelineGUI\update().
ilNewsItemGUI::saveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 372 of file class.ilNewsItemGUI.php.
References $ilUser, exitSaveNewsItem(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getEnableEdit(), IL_FORM_CREATE, and initFormNewsItem().
ilNewsItemGUI::setContextObjId | ( | $a_context_obj_id | ) |
Set ContextObjId.
int | $a_context_obj_id |
Definition at line 131 of file class.ilNewsItemGUI.php.
Referenced by __construct().
ilNewsItemGUI::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
int | $a_context_obj_type |
Definition at line 151 of file class.ilNewsItemGUI.php.
Referenced by __construct().
ilNewsItemGUI::setContextSubObjId | ( | $a_context_sub_obj_id | ) |
Set ContextSubObjId.
int | $a_context_sub_obj_id |
Definition at line 171 of file class.ilNewsItemGUI.php.
Referenced by __construct().
ilNewsItemGUI::setContextSubObjType | ( | $a_context_sub_obj_type | ) |
Set ContextSubObjType.
int | $a_context_sub_obj_type |
Definition at line 191 of file class.ilNewsItemGUI.php.
Referenced by __construct().
ilNewsItemGUI::setEnableEdit | ( | $a_enable_edit = 0 | ) |
Set EnableEdit.
boolean | $a_enable_edit | Edit mode on/off |
Definition at line 111 of file class.ilNewsItemGUI.php.
Referenced by __construct().
ilNewsItemGUI::setFormEditMode | ( | $a_form_edit_mode | ) |
Set FormEditMode.
int | $a_form_edit_mode | Form Edit Mode (IL_FORM_EDIT | IL_FORM_CREATE | IL_FORM_RE_EDIT | IL_FORM_RE_CREATE) |
Definition at line 211 of file class.ilNewsItemGUI.php.
ilNewsItemGUI::setTabs | ( | ) |
Set tabs.
Definition at line 688 of file class.ilNewsItemGUI.php.
Referenced by editNews().
ilNewsItemGUI::updateNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 439 of file class.ilNewsItemGUI.php.
References $ilUser, exitUpdateNewsItem(), getEnableEdit(), IL_FORM_EDIT, and initFormNewsItem().
|
protected |
Definition at line 23 of file class.ilNewsItemGUI.php.
Referenced by getContextObjId().
|
protected |
Definition at line 24 of file class.ilNewsItemGUI.php.
Referenced by getContextObjType().
|
protected |
Definition at line 25 of file class.ilNewsItemGUI.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 26 of file class.ilNewsItemGUI.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 22 of file class.ilNewsItemGUI.php.
Referenced by getEnableEdit().
|
protected |
Definition at line 27 of file class.ilNewsItemGUI.php.
Referenced by getFormEditMode().