ILIAS
release_4-3 Revision
|
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 16 of file class.ilNewsItemGUIGen.php.
ilNewsItemGUIGen::__construct | ( | ) |
Constructor.
Definition at line 30 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)
Definition at line 364 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
ilNewsItemGUIGen::cancelUpdateNewsItem | ( | ) |
FORM NewsItem: Cancel update.
(Can be overwritten in derived classes)
Definition at line 375 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
ilNewsItemGUIGen::createNewsItem | ( | ) |
FORM NewsItem: Create NewsItem.
Definition at line 204 of file class.ilNewsItemGUIGen.php.
References IL_FORM_CREATE, and initFormNewsItem().
ilNewsItemGUIGen::editNewsItem | ( | ) |
FORM NewsItem: Edit form.
Definition at line 215 of file class.ilNewsItemGUIGen.php.
References getValuesNewsItem(), IL_FORM_EDIT, and initFormNewsItem().
& ilNewsItemGUIGen::executeCommand | ( | ) |
Execute command.
Definition at line 61 of file class.ilNewsItemGUIGen.php.
ilNewsItemGUIGen::exitSaveNewsItem | ( | ) |
FORM NewsItem: Exit save.
(Can be overwritten in derived classes)
Definition at line 386 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
Referenced by saveNewsItem().
ilNewsItemGUIGen::exitUpdateNewsItem | ( | ) |
FORM NewsItem: Exit update.
(Can be overwritten in derived classes)
Definition at line 397 of file class.ilNewsItemGUIGen.php.
References $ilCtrl.
Referenced by updateNewsItem().
ilNewsItemGUIGen::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 115 of file class.ilNewsItemGUIGen.php.
References $context_obj_id.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 135 of file class.ilNewsItemGUIGen.php.
References $context_obj_type.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 155 of file class.ilNewsItemGUIGen.php.
References $context_sub_obj_id.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 175 of file class.ilNewsItemGUIGen.php.
References $context_sub_obj_type.
Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getEnableEdit | ( | ) |
Get EnableEdit.
Definition at line 95 of file class.ilNewsItemGUIGen.php.
References $enable_edit.
ilNewsItemGUIGen::getFormEditMode | ( | ) |
Get FormEditMode.
Definition at line 195 of file class.ilNewsItemGUIGen.php.
References $form_edit_mode.
ilNewsItemGUIGen::getNewsForContextBlock | ( | ) |
BLOCK NewsForContext: Get block HTML.
Definition at line 428 of file class.ilNewsItemGUIGen.php.
References $data, $lng, prepareBlockNewsForContext(), and prepareBlockQueryNewsForContext().
ilNewsItemGUIGen::getNewsForContextTable | ( | ) |
TABLE NewsForContext: Get table HTML.
Definition at line 477 of file class.ilNewsItemGUIGen.php.
References $data, $lng, prepareTableNewsForContext(), and prepareTableQueryNewsForContext().
ilNewsItemGUIGen::getValuesNewsItem | ( | ) |
FORM NewsItem: Get current values for NewsItem form.
Definition at line 347 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 279 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. |
Definition at line 453 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. |
Definition at line 463 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. |
Definition at line 419 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. |
Definition at line 409 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. |
Definition at line 517 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 502 of file class.ilNewsItemGUIGen.php.
References getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
Referenced by getNewsForContextTable().
ilNewsItemGUIGen::saveNewsItem | ( | ) |
FORM NewsItem: Save NewsItem.
Definition at line 227 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 105 of file class.ilNewsItemGUIGen.php.
Referenced by __construct().
ilNewsItemGUIGen::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
int | $a_context_obj_type |
Definition at line 125 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 145 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 165 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 85 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 185 of file class.ilNewsItemGUIGen.php.
ilNewsItemGUIGen::updateNewsItem | ( | ) |
FORM NewsItem: Update NewsItem.
Definition at line 253 of file class.ilNewsItemGUIGen.php.
References exitUpdateNewsItem(), IL_FORM_EDIT, and initFormNewsItem().
|
protected |
Definition at line 20 of file class.ilNewsItemGUIGen.php.
Referenced by getContextObjId().
|
protected |
Definition at line 21 of file class.ilNewsItemGUIGen.php.
Referenced by getContextObjType().
|
protected |
Definition at line 22 of file class.ilNewsItemGUIGen.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 23 of file class.ilNewsItemGUIGen.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 19 of file class.ilNewsItemGUIGen.php.
Referenced by getEnableEdit().
|
protected |
Definition at line 24 of file class.ilNewsItemGUIGen.php.
Referenced by getFormEditMode().