ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | |
$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 20 of file class.ilNewsItemGUI.php.
ilNewsItemGUI::__construct | ( | ) |
Constructor.
Definition at line 58 of file class.ilNewsItemGUI.php.
References $_GET, $DIC, $ilCtrl, $lng, array, setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), setEnableEdit(), and user().
ilNewsItemGUI::cancelSaveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 498 of file class.ilNewsItemGUI.php.
References $_GET, $ctrl, $ilCtrl, and editNews().
ilNewsItemGUI::cancelUpdate | ( | ) |
Cancel update.
Definition at line 537 of file class.ilNewsItemGUI.php.
References editNews().
ilNewsItemGUI::cancelUpdateNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 489 of file class.ilNewsItemGUI.php.
References editNews().
ilNewsItemGUI::confirmDeletionNewsItems | ( | ) |
Confirmation Screen.
Definition at line 545 of file class.ilNewsItemGUI.php.
References $_POST, $ctrl, $ilCtrl, $lng, $tabs, editNews(), getEnableEdit(), and ilUtil\sendFailure().
ilNewsItemGUI::createNewsItem | ( | ) |
FORM NewsItem: Create NewsItem.
Definition at line 259 of file class.ilNewsItemGUI.php.
References $form, IL_FORM_CREATE, and initFormNewsItem().
ilNewsItemGUI::deleteNewsItems | ( | ) |
Delete news items.
Definition at line 584 of file class.ilNewsItemGUI.php.
References $_POST, editNews(), and getEnableEdit().
ilNewsItemGUI::editNews | ( | ) |
Edit news.
Definition at line 514 of file class.ilNewsItemGUI.php.
References $ctrl, $ilCtrl, $lng, $tabs, $toolbar, getEnableEdit(), getNewsForContextTable(), and setTabs().
Referenced by cancelSaveNewsItem(), cancelUpdate(), cancelUpdateNewsItem(), confirmDeletionNewsItems(), and deleteNewsItems().
ilNewsItemGUI::editNewsItem | ( | ) |
FORM NewsItem: Edit form.
Definition at line 269 of file class.ilNewsItemGUI.php.
References $form, getValuesNewsItem(), IL_FORM_EDIT, and initFormNewsItem().
ilNewsItemGUI::executeCommand | ( | ) |
Execute command.
Definition at line 111 of file class.ilNewsItemGUI.php.
References $ctrl, $html, $ilCtrl, ilNewsItem\_lookupContextObjId(), and getContextObjId().
ilNewsItemGUI::exitSaveNewsItem | ( | ) |
Definition at line 436 of file class.ilNewsItemGUI.php.
References $_GET, $ctrl, and $ilCtrl.
Referenced by saveNewsItem().
ilNewsItemGUI::exitUpdateNewsItem | ( | ) |
Definition at line 478 of file class.ilNewsItemGUI.php.
References $ctrl, and $ilCtrl.
Referenced by updateNewsItem().
ilNewsItemGUI::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 170 of file class.ilNewsItemGUI.php.
References $context_obj_id.
Referenced by executeCommand(), getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
ilNewsItemGUI::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 190 of file class.ilNewsItemGUI.php.
References $context_obj_type.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
ilNewsItemGUI::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 210 of file class.ilNewsItemGUI.php.
References $context_sub_obj_id.
Referenced by getNewsForContextBlock(), getNewsForContextTable(), and saveNewsItem().
ilNewsItemGUI::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 230 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 300 of file class.ilNewsItemGUI.php.
References $DIC, $form, $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 150 of file class.ilNewsItemGUI.php.
References $enable_edit.
Referenced by confirmDeletionNewsItems(), deleteNewsItems(), editNews(), getNewsForContextBlock(), saveNewsItem(), and updateNewsItem().
ilNewsItemGUI::getFormEditMode | ( | ) |
Get FormEditMode.
Definition at line 250 of file class.ilNewsItemGUI.php.
References $form_edit_mode.
ilNewsItemGUI::getHTML | ( | ) |
Get html.
Definition at line 97 of file class.ilNewsItemGUI.php.
References $ctrl, $ilCtrl, $lng, and getNewsForContextBlock().
ilNewsItemGUI::getNewsForContextBlock | ( | ) |
BLOCK NewsForContext: Get block HTML.
Definition at line 602 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 638 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 377 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 283 of file class.ilNewsItemGUI.php.
References $_GET, $form, and $tabs.
Referenced by createNewsItem(), editNewsItem(), saveNewsItem(), and updateNewsItem().
|
static |
Is Rte activated.
Definition at line 716 of file class.ilNewsItemGUI.php.
References ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilNewsTimelineGUI\save(), and ilNewsTimelineGUI\update().
ilNewsItemGUI::saveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 394 of file class.ilNewsItemGUI.php.
References $form, $ilUser, $user, 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 160 of file class.ilNewsItemGUI.php.
Referenced by __construct().
ilNewsItemGUI::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
int | $a_context_obj_type |
Definition at line 180 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 200 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 220 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 140 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 240 of file class.ilNewsItemGUI.php.
ilNewsItemGUI::setTabs | ( | ) |
Set tabs.
Definition at line 698 of file class.ilNewsItemGUI.php.
References $ctrl, $ilCtrl, $lng, and $tabs.
Referenced by editNews().
ilNewsItemGUI::updateNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 451 of file class.ilNewsItemGUI.php.
References $form, $ilUser, $user, exitUpdateNewsItem(), getEnableEdit(), IL_FORM_EDIT, and initFormNewsItem().
|
protected |
Definition at line 48 of file class.ilNewsItemGUI.php.
Referenced by getContextObjId().
|
protected |
Definition at line 49 of file class.ilNewsItemGUI.php.
Referenced by getContextObjType().
|
protected |
Definition at line 50 of file class.ilNewsItemGUI.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 51 of file class.ilNewsItemGUI.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 25 of file class.ilNewsItemGUI.php.
Referenced by cancelSaveNewsItem(), confirmDeletionNewsItems(), editNews(), executeCommand(), exitSaveNewsItem(), exitUpdateNewsItem(), getHTML(), and setTabs().
|
protected |
Definition at line 47 of file class.ilNewsItemGUI.php.
Referenced by getEnableEdit().
|
protected |
Definition at line 52 of file class.ilNewsItemGUI.php.
Referenced by getFormEditMode().
|
protected |
Definition at line 30 of file class.ilNewsItemGUI.php.
Referenced by __construct(), confirmDeletionNewsItems(), editNews(), getEditForm(), getHTML(), getNewsForContextBlock(), getNewsForContextTable(), and setTabs().
|
protected |
Definition at line 35 of file class.ilNewsItemGUI.php.
Referenced by confirmDeletionNewsItems(), editNews(), initFormNewsItem(), and setTabs().
|
protected |
Definition at line 45 of file class.ilNewsItemGUI.php.
Referenced by editNews().
|
protected |
Definition at line 40 of file class.ilNewsItemGUI.php.
Referenced by saveNewsItem(), and updateNewsItem().