ILIAS
Release_4_0_x_branch Revision 61816
|
User Interface for NewsItem entities. More...
Public Member Functions | |
__construct () | |
Constructor. | |
& | executeCommand () |
Execute command. | |
setEnableEdit ($a_enable_edit=0) | |
Set EnableEdit. | |
getEnableEdit () | |
Get EnableEdit. | |
setContextObjId ($a_context_obj_id) | |
Set ContextObjId. | |
getContextObjId () | |
Get ContextObjId. | |
setContextObjType ($a_context_obj_type) | |
Set ContextObjType. | |
getContextObjType () | |
Get ContextObjType. | |
setContextSubObjId ($a_context_sub_obj_id) | |
Set ContextSubObjId. | |
getContextSubObjId () | |
Get ContextSubObjId. | |
setContextSubObjType ($a_context_sub_obj_type) | |
Set ContextSubObjType. | |
getContextSubObjType () | |
Get ContextSubObjType. | |
setFormEditMode ($a_form_edit_mode) | |
Set FormEditMode. | |
getFormEditMode () | |
Get FormEditMode. | |
createNewsItem () | |
FORM NewsItem: Create NewsItem. | |
editNewsItem () | |
FORM NewsItem: Edit form. | |
saveNewsItem () | |
FORM NewsItem: Save NewsItem. | |
updateNewsItem () | |
FORM NewsItem: Update NewsItem. | |
initFormNewsItem ($a_mode) | |
FORM NewsItem: Init form. | |
getValuesNewsItem () | |
FORM NewsItem: Get current values for NewsItem form. | |
cancelSaveNewsItem () | |
FORM NewsItem: Cancel save. | |
cancelUpdateNewsItem () | |
FORM NewsItem: Cancel update. | |
exitSaveNewsItem () | |
FORM NewsItem: Exit save. | |
exitUpdateNewsItem () | |
FORM NewsItem: Exit update. | |
prepareSaveNewsItem (&$a_news_item) | |
FORM NewsItem: Prepare Saving of NewsItem. | |
prepareFormNewsItem (&$a_form_gui) | |
FORM NewsItem: Prepare form. | |
getNewsForContextBlock () | |
BLOCK NewsForContext: Get block HTML. | |
prepareBlockNewsForContext (&$a_block_gui) | |
BLOCK NewsForContext: Prepare block. | |
prepareBlockQueryNewsForContext (&$a_news_item) | |
BLOCK NewsForContext: Prepare query for getting data for list block. | |
getNewsForContextTable () | |
TABLE NewsForContext: Get table HTML. | |
prepareTableQueryNewsForContext (&$a_news_item) | |
TABLE NewsForContext: Prepare query for getting data for list table. | |
prepareTableNewsForContext (&$a_table_gui) | |
TABLE NewsForContext: Prepare table before it is rendered. |
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 35 of file class.ilNewsItemGUIGen.php.
ilNewsItemGUIGen::__construct | ( | ) |
Constructor.
Reimplemented in ilNewsItemGUI.
Definition at line 49 of file class.ilNewsItemGUIGen.php.
References $_GET, $ilCtrl, setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), and setEnableEdit().
ilNewsItemGUIGen::cancelSaveNewsItem | ( | ) |
FORM NewsItem: Cancel save.
(Can be overwritten in derived classes)
Reimplemented in ilNewsItemGUI.
Definition at line 383 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
ilNewsItemGUIGen::cancelUpdateNewsItem | ( | ) |
FORM NewsItem: Cancel update.
(Can be overwritten in derived classes)
Reimplemented in ilNewsItemGUI.
Definition at line 394 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
ilNewsItemGUIGen::createNewsItem | ( | ) |
FORM NewsItem: Create NewsItem.
Definition at line 223 of file class.ilNewsItemGUIGen.php.
References IL_FORM_CREATE, and initFormNewsItem().
ilNewsItemGUIGen::editNewsItem | ( | ) |
FORM NewsItem: Edit form.
Definition at line 234 of file class.ilNewsItemGUIGen.php.
References getValuesNewsItem(), IL_FORM_EDIT, and initFormNewsItem().
& ilNewsItemGUIGen::executeCommand | ( | ) |
Execute command.
Definition at line 80 of file class.ilNewsItemGUIGen.php.
ilNewsItemGUIGen::exitSaveNewsItem | ( | ) |
FORM NewsItem: Exit save.
(Can be overwritten in derived classes)
Reimplemented in ilNewsItemGUI.
Definition at line 405 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
Referenced by saveNewsItem().
ilNewsItemGUIGen::exitUpdateNewsItem | ( | ) |
FORM NewsItem: Exit update.
(Can be overwritten in derived classes)
Reimplemented in ilNewsItemGUI.
Definition at line 416 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
Referenced by updateNewsItem().
ilNewsItemGUIGen::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 134 of file class.ilNewsItemGUIGen.php.
References $context_obj_id.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 154 of file class.ilNewsItemGUIGen.php.
References $context_obj_type.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 174 of file class.ilNewsItemGUIGen.php.
References $context_sub_obj_id.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 194 of file class.ilNewsItemGUIGen.php.
References $context_sub_obj_type.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getEnableEdit | ( | ) |
Get EnableEdit.
Definition at line 114 of file class.ilNewsItemGUIGen.php.
References $enable_edit.
Referenced by ilNewsItemGUI\confirmDeletionNewsItems(), ilNewsItemGUI\deleteNewsItems(), ilNewsItemGUI\editNews(), ilNewsItemGUI\prepareBlockNewsForContext(), ilNewsItemGUI\saveNewsItem(), and ilNewsItemGUI\updateNewsItem().
ilNewsItemGUIGen::getFormEditMode | ( | ) |
Get FormEditMode.
Definition at line 214 of file class.ilNewsItemGUIGen.php.
References $form_edit_mode.
ilNewsItemGUIGen::getNewsForContextBlock | ( | ) |
BLOCK NewsForContext: Get block HTML.
Definition at line 447 of file class.ilNewsItemGUIGen.php.
References $data, $lng, prepareBlockNewsForContext(), and prepareBlockQueryNewsForContext().
Referenced by ilNewsItemGUI\getHTML().
ilNewsItemGUIGen::getNewsForContextTable | ( | ) |
TABLE NewsForContext: Get table HTML.
Definition at line 496 of file class.ilNewsItemGUIGen.php.
References $data, $lng, prepareTableNewsForContext(), and prepareTableQueryNewsForContext().
Referenced by ilNewsItemGUI\editNews().
ilNewsItemGUIGen::getValuesNewsItem | ( | ) |
FORM NewsItem: Get current values for NewsItem form.
Definition at line 366 of file class.ilNewsItemGUIGen.php.
Referenced by editNewsItem().
ilNewsItemGUIGen::initFormNewsItem | ( | $a_mode | ) |
FORM NewsItem: Init form.
int | $a_mode | Form Edit Mode (IL_FORM_EDIT | IL_FORM_CREATE) |
Definition at line 298 of file class.ilNewsItemGUIGen.php.
References $lng, IL_FORM_CREATE, IL_FORM_RE_CREATE, prepareFormNewsItem(), ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Referenced by createNewsItem(), editNewsItem(), saveNewsItem(), and updateNewsItem().
ilNewsItemGUIGen::prepareBlockNewsForContext | ( | & | $a_block_gui | ) |
BLOCK NewsForContext: Prepare block.
(Can be overwritten in derived classes)
object | $a_block_gui | ilBlockGUI instance. |
Reimplemented in ilNewsItemGUI.
Definition at line 472 of file class.ilNewsItemGUIGen.php.
Referenced by getNewsForContextBlock().
ilNewsItemGUIGen::prepareBlockQueryNewsForContext | ( | & | $a_news_item | ) |
BLOCK NewsForContext: Prepare query for getting data for list block.
object | $a_news_item | NewsItem entity. |
Reimplemented in ilNewsItemGUI.
Definition at line 482 of file class.ilNewsItemGUIGen.php.
References getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
Referenced by getNewsForContextBlock().
ilNewsItemGUIGen::prepareFormNewsItem | ( | & | $a_form_gui | ) |
FORM NewsItem: Prepare form.
(Can be overwritten in derived classes)
object | $a_form_gui | ilPropertyFormGUI instance. |
Reimplemented in ilNewsItemGUI.
Definition at line 438 of file class.ilNewsItemGUIGen.php.
Referenced by initFormNewsItem().
ilNewsItemGUIGen::prepareSaveNewsItem | ( | & | $a_news_item | ) |
FORM NewsItem: Prepare Saving of NewsItem.
object | $a_news_item | NewsItem object. |
Reimplemented in ilNewsItemGUI.
Definition at line 428 of file class.ilNewsItemGUIGen.php.
Referenced by saveNewsItem().
ilNewsItemGUIGen::prepareTableNewsForContext | ( | & | $a_table_gui | ) |
TABLE NewsForContext: Prepare table before it is rendered.
Please overwrite this in derived classes.
object | $a_table_gui | Table GUI object. |
Reimplemented in ilNewsItemGUI.
Definition at line 536 of file class.ilNewsItemGUIGen.php.
Referenced by getNewsForContextTable().
ilNewsItemGUIGen::prepareTableQueryNewsForContext | ( | & | $a_news_item | ) |
TABLE NewsForContext: Prepare query for getting data for list table.
object | $a_news_item | NewsItem entity. |
Definition at line 521 of file class.ilNewsItemGUIGen.php.
References getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
Referenced by getNewsForContextTable().
ilNewsItemGUIGen::saveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Reimplemented in ilNewsItemGUI.
Definition at line 246 of file class.ilNewsItemGUIGen.php.
References exitSaveNewsItem(), IL_FORM_CREATE, initFormNewsItem(), and prepareSaveNewsItem().
ilNewsItemGUIGen::setContextObjId | ( | $a_context_obj_id | ) |
Set ContextObjId.
int | $a_context_obj_id |
Definition at line 124 of file class.ilNewsItemGUIGen.php.
Referenced by __construct().
ilNewsItemGUIGen::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
int | $a_context_obj_type |
Definition at line 144 of file class.ilNewsItemGUIGen.php.
Referenced by __construct().
ilNewsItemGUIGen::setContextSubObjId | ( | $a_context_sub_obj_id | ) |
Set ContextSubObjId.
int | $a_context_sub_obj_id |
Definition at line 164 of file class.ilNewsItemGUIGen.php.
Referenced by __construct().
ilNewsItemGUIGen::setContextSubObjType | ( | $a_context_sub_obj_type | ) |
Set ContextSubObjType.
int | $a_context_sub_obj_type |
Definition at line 184 of file class.ilNewsItemGUIGen.php.
Referenced by __construct().
ilNewsItemGUIGen::setEnableEdit | ( | $a_enable_edit = 0 | ) |
Set EnableEdit.
boolean | $a_enable_edit | Edit mode on/off |
Definition at line 104 of file class.ilNewsItemGUIGen.php.
Referenced by __construct().
ilNewsItemGUIGen::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 204 of file class.ilNewsItemGUIGen.php.
ilNewsItemGUIGen::updateNewsItem | ( | ) |
FORM NewsItem: Update NewsItem.
Reimplemented in ilNewsItemGUI.
Definition at line 272 of file class.ilNewsItemGUIGen.php.
References exitUpdateNewsItem(), IL_FORM_EDIT, and initFormNewsItem().
|
protected |
Definition at line 39 of file class.ilNewsItemGUIGen.php.
Referenced by getContextObjId().
|
protected |
Definition at line 40 of file class.ilNewsItemGUIGen.php.
Referenced by getContextObjType().
|
protected |
Definition at line 41 of file class.ilNewsItemGUIGen.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 42 of file class.ilNewsItemGUIGen.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 38 of file class.ilNewsItemGUIGen.php.
Referenced by getEnableEdit().
|
protected |
Definition at line 43 of file class.ilNewsItemGUIGen.php.
Referenced by getFormEditMode().