ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilNewsItemGUIGen Class Reference

User Interface for NewsItem entities. More...

+ Collaboration diagram for ilNewsItemGUIGen:

Public Member Functions

 __construct ()
 Constructor. 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...
 
 saveNewsItem ()
 FORM NewsItem: Save NewsItem. More...
 
 updateNewsItem ()
 FORM NewsItem: Update NewsItem. More...
 
 initFormNewsItem ($a_mode)
 FORM NewsItem: Init form. More...
 
 getValuesNewsItem ()
 FORM NewsItem: Get current values for NewsItem form. More...
 
 cancelSaveNewsItem ()
 FORM NewsItem: Cancel save. More...
 
 cancelUpdateNewsItem ()
 FORM NewsItem: Cancel update. More...
 
 exitSaveNewsItem ()
 FORM NewsItem: Exit save. More...
 
 exitUpdateNewsItem ()
 FORM NewsItem: Exit update. More...
 
 prepareSaveNewsItem (&$a_news_item)
 FORM NewsItem: Prepare Saving of NewsItem. More...
 
 prepareFormNewsItem (&$a_form_gui)
 FORM NewsItem: Prepare form. More...
 
 getNewsForContextBlock ()
 BLOCK NewsForContext: Get block HTML. More...
 
 prepareBlockNewsForContext (&$a_block_gui)
 BLOCK NewsForContext: Prepare block. More...
 
 prepareBlockQueryNewsForContext (&$a_news_item)
 BLOCK NewsForContext: Prepare query for getting data for list block. More...
 
 getNewsForContextTable ()
 TABLE NewsForContext: Get table HTML. More...
 
 prepareTableQueryNewsForContext (&$a_news_item)
 TABLE NewsForContext: Prepare query for getting data for list table. More...
 
 prepareTableNewsForContext (&$a_table_gui)
 TABLE NewsForContext: Prepare table before it is rendered. More...
 

Protected Attributes

 $enable_edit = 0
 
 $context_obj_id
 
 $context_obj_type
 
 $context_sub_obj_id
 
 $context_sub_obj_type
 
 $form_edit_mode
 

Detailed Description

User Interface for NewsItem entities.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 16 of file class.ilNewsItemGUIGen.php.

Constructor & Destructor Documentation

◆ __construct()

ilNewsItemGUIGen::__construct ( )

Constructor.

Definition at line 30 of file class.ilNewsItemGUIGen.php.

31 {
32 global $ilCtrl;
33
34 $this->ctrl = $ilCtrl;
35
36
37 include_once("Services/News/classes/class.ilNewsItem.php");
38 if ($_GET["news_item_id"] > 0)
39 {
40 $this->news_item = new ilNewsItem($_GET["news_item_id"]);
41 }
42
43 $this->ctrl->saveParameter($this, array("news_item_id"));
44
45 // Init EnableEdit.
46 $this->setEnableEdit(false);
47
48 // Init Context.
49 $this->setContextObjId($ilCtrl->getContextObjId());
50 $this->setContextObjType($ilCtrl->getContextObjType());
51 $this->setContextSubObjId($ilCtrl->getContextSubObjId());
52 $this->setContextSubObjType($ilCtrl->getContextSubObjType());
53
54
55 }
$_GET["client_id"]
setContextSubObjType($a_context_sub_obj_type)
Set ContextSubObjType.
setContextSubObjId($a_context_sub_obj_id)
Set ContextSubObjId.
setContextObjType($a_context_obj_type)
Set ContextObjType.
setContextObjId($a_context_obj_id)
Set ContextObjId.
setEnableEdit($a_enable_edit=0)
Set EnableEdit.
global $ilCtrl
Definition: ilias.php:18

References $_GET, $ilCtrl, setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), and setEnableEdit().

+ Here is the call graph for this function:

Member Function Documentation

◆ cancelSaveNewsItem()

ilNewsItemGUIGen::cancelSaveNewsItem ( )

FORM NewsItem: Cancel save.

(Can be overwritten in derived classes)

Definition at line 364 of file class.ilNewsItemGUIGen.php.

365 {
366 global $ilCtrl;
367
368 $ilCtrl->returnToParent($this);
369 }

References $ilCtrl.

◆ cancelUpdateNewsItem()

ilNewsItemGUIGen::cancelUpdateNewsItem ( )

FORM NewsItem: Cancel update.

(Can be overwritten in derived classes)

Definition at line 375 of file class.ilNewsItemGUIGen.php.

376 {
377 global $ilCtrl;
378
379 $ilCtrl->returnToParent($this);
380 }

References $ilCtrl.

◆ createNewsItem()

ilNewsItemGUIGen::createNewsItem ( )

FORM NewsItem: Create NewsItem.

Definition at line 204 of file class.ilNewsItemGUIGen.php.

205 {
207 return $this->form_gui->getHtml();
208
209 }
const IL_FORM_CREATE
initFormNewsItem($a_mode)
FORM NewsItem: Init form.

References IL_FORM_CREATE, and initFormNewsItem().

+ Here is the call graph for this function:

◆ editNewsItem()

ilNewsItemGUIGen::editNewsItem ( )

FORM NewsItem: Edit form.

Definition at line 215 of file class.ilNewsItemGUIGen.php.

216 {
218 $this->getValuesNewsItem();
219 return $this->form_gui->getHtml();
220
221 }
const IL_FORM_EDIT
getValuesNewsItem()
FORM NewsItem: Get current values for NewsItem form.

References getValuesNewsItem(), IL_FORM_EDIT, and initFormNewsItem().

+ Here is the call graph for this function:

◆ executeCommand()

& ilNewsItemGUIGen::executeCommand ( )

Execute command.

Definition at line 61 of file class.ilNewsItemGUIGen.php.

62 {
63 global $ilCtrl;
64
65 // get next class and command
66 $next_class = $this->ctrl->getNextClass($this);
67 $cmd = $this->ctrl->getCmd();
68
69 switch ($next_class)
70 {
71 default:
72 $html = $this->$cmd();
73 break;
74 }
75
76 return $html;
77
78 }
$html
Definition: example_001.php:87
$cmd
Definition: sahs_server.php:35

References $cmd, $html, and $ilCtrl.

◆ exitSaveNewsItem()

ilNewsItemGUIGen::exitSaveNewsItem ( )

FORM NewsItem: Exit save.

(Can be overwritten in derived classes)

Definition at line 386 of file class.ilNewsItemGUIGen.php.

387 {
388 global $ilCtrl;
389
390 $ilCtrl->returnToParent($this);
391 }

References $ilCtrl.

Referenced by saveNewsItem().

+ Here is the caller graph for this function:

◆ exitUpdateNewsItem()

ilNewsItemGUIGen::exitUpdateNewsItem ( )

FORM NewsItem: Exit update.

(Can be overwritten in derived classes)

Definition at line 397 of file class.ilNewsItemGUIGen.php.

398 {
399 global $ilCtrl;
400
401 $ilCtrl->returnToParent($this);
402 }

References $ilCtrl.

Referenced by updateNewsItem().

+ Here is the caller graph for this function:

◆ getContextObjId()

ilNewsItemGUIGen::getContextObjId ( )

Get ContextObjId.

Returns
int

Definition at line 115 of file class.ilNewsItemGUIGen.php.

References $context_obj_id.

Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().

+ Here is the caller graph for this function:

◆ getContextObjType()

ilNewsItemGUIGen::getContextObjType ( )

Get ContextObjType.

Returns
int

Definition at line 135 of file class.ilNewsItemGUIGen.php.

References $context_obj_type.

Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().

+ Here is the caller graph for this function:

◆ getContextSubObjId()

ilNewsItemGUIGen::getContextSubObjId ( )

Get ContextSubObjId.

Returns
int

Definition at line 155 of file class.ilNewsItemGUIGen.php.

References $context_sub_obj_id.

Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().

+ Here is the caller graph for this function:

◆ getContextSubObjType()

ilNewsItemGUIGen::getContextSubObjType ( )

Get ContextSubObjType.

Returns
int

Definition at line 175 of file class.ilNewsItemGUIGen.php.

References $context_sub_obj_type.

Referenced by prepareBlockQueryNewsForContext(), and prepareTableQueryNewsForContext().

+ Here is the caller graph for this function:

◆ getEnableEdit()

ilNewsItemGUIGen::getEnableEdit ( )

Get EnableEdit.

Returns
boolean Edit mode on/off

Definition at line 95 of file class.ilNewsItemGUIGen.php.

References $enable_edit.

◆ getFormEditMode()

ilNewsItemGUIGen::getFormEditMode ( )

Get FormEditMode.

Returns
int Form Edit Mode (IL_FORM_EDIT | IL_FORM_CREATE | IL_FORM_RE_EDIT | IL_FORM_RE_CREATE)

Definition at line 195 of file class.ilNewsItemGUIGen.php.

References $form_edit_mode.

◆ getNewsForContextBlock()

ilNewsItemGUIGen::getNewsForContextBlock ( )

BLOCK NewsForContext: Get block HTML.

Definition at line 428 of file class.ilNewsItemGUIGen.php.

429 {
430 global $lng;
431
432 include_once("Services/News/classes/class.ilNewsForContextBlockGUI.php");
433 $block_gui = new ilNewsForContextBlockGUI(get_class($this));
434 $this->prepareBlockNewsForContext($block_gui);
435
436 $news_item = new ilNewsItem();
437 $this->prepareBlockQueryNewsForContext($news_item);
438 $data = $news_item->queryNewsForContext();
439
440 $block_gui->setTitle($lng->txt("news_block_news_for_context"));
441 $block_gui->setRowTemplate("tpl.block_row_news_for_context.html", "Services/News");
442 $block_gui->setData($data);
443
444 return $block_gui->getHTML();
445
446 }
BlockGUI class for block NewsForContext.
prepareBlockQueryNewsForContext(&$a_news_item)
BLOCK NewsForContext: Prepare query for getting data for list block.
prepareBlockNewsForContext(&$a_block_gui)
BLOCK NewsForContext: Prepare block.
$data
global $lng
Definition: privfeed.php:40

References $data, $lng, prepareBlockNewsForContext(), and prepareBlockQueryNewsForContext().

+ Here is the call graph for this function:

◆ getNewsForContextTable()

ilNewsItemGUIGen::getNewsForContextTable ( )

TABLE NewsForContext: Get table HTML.

Definition at line 477 of file class.ilNewsItemGUIGen.php.

478 {
479 global $lng;
480
481 include_once("Services/News/classes/class.ilNewsForContextTableGUI.php");
482 $table_gui = new ilNewsForContextTableGUI($this, "getNewsForContextTable");
483
484 $news_item = new ilNewsItem();
485 $this->prepareTableQueryNewsForContext($news_item);
486 $data = $news_item->queryNewsForContext();
487
488 $table_gui->setTitle($lng->txt("news_table_news_for_context"));
489 $table_gui->setRowTemplate("tpl.table_row_news_for_context.html", "Services/News");
490 $table_gui->setData($data);
491 $this->prepareTableNewsForContext($table_gui);
492
493 return $table_gui->getHTML();
494
495 }
TableGUI class for table NewsForContext.
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.

References $data, $lng, prepareTableNewsForContext(), and prepareTableQueryNewsForContext().

+ Here is the call graph for this function:

◆ getValuesNewsItem()

ilNewsItemGUIGen::getValuesNewsItem ( )

FORM NewsItem: Get current values for NewsItem form.

Definition at line 347 of file class.ilNewsItemGUIGen.php.

348 {
349 $values = array();
350
351 $values["news_title"] = $this->news_item->getTitle();
352 $values["news_content"] = $this->news_item->getContent();
353 $values["news_visibility"] = $this->news_item->getVisibility();
354 $values["news_content_long"] = $this->news_item->getContentLong();
355
356 $this->form_gui->setValuesByArray($values);
357
358 }

Referenced by editNewsItem().

+ Here is the caller graph for this function:

◆ initFormNewsItem()

ilNewsItemGUIGen::initFormNewsItem (   $a_mode)

FORM NewsItem: Init form.

Parameters
int$a_modeForm Edit Mode (IL_FORM_EDIT | IL_FORM_CREATE)

Definition at line 279 of file class.ilNewsItemGUIGen.php.

280 {
281 global $lng;
282
283 $lng->loadLanguageModule("news");
284
285 include("Services/Form/classes/class.ilPropertyFormGUI.php");
286
287 $this->form_gui = new ilPropertyFormGUI();
288
289
290 // Property Title
291 $text_input = new ilTextInputGUI($lng->txt("news_news_item_title"), "news_title");
292 $text_input->setInfo("");
293 $text_input->setRequired(true);
294 $text_input->setMaxLength(200);
295 $this->form_gui->addItem($text_input);
296
297 // Property Content
298 $text_area = new ilTextAreaInputGUI($lng->txt("news_news_item_content"), "news_content");
299 $text_area->setInfo("");
300 $text_area->setRequired(false);
301 $this->form_gui->addItem($text_area);
302
303 // Property Visibility
304 $radio_group = new ilRadioGroupInputGUI($lng->txt("news_news_item_visibility"), "news_visibility");
305 $radio_option = new ilRadioOption($lng->txt("news_visibility_users"), "users");
306 $radio_group->addOption($radio_option);
307 $radio_option = new ilRadioOption($lng->txt("news_visibility_public"), "public");
308 $radio_group->addOption($radio_option);
309 $radio_group->setInfo($lng->txt("news_news_item_visibility_info"));
310 $radio_group->setRequired(false);
311 $radio_group->setValue("users");
312 $this->form_gui->addItem($radio_group);
313
314 // Property ContentLong
315 $text_area = new ilTextAreaInputGUI($lng->txt("news_news_item_content_long"), "news_content_long");
316 $text_area->setInfo($lng->txt("news_news_item_content_long_info"));
317 $text_area->setRequired(false);
318 $text_area->setCols("40");
319 $text_area->setRows("8");
320 $text_area->setUseRte(true);
321 $this->form_gui->addItem($text_area);
322
323
324 // save and cancel commands
325 if (in_array($a_mode, array(IL_FORM_CREATE,IL_FORM_RE_CREATE)))
326 {
327 $this->form_gui->addCommandButton("saveNewsItem", $lng->txt("save"));
328 $this->form_gui->addCommandButton("cancelSaveNewsItem", $lng->txt("cancel"));
329 }
330 else
331 {
332 $this->form_gui->addCommandButton("updateNewsItem", $lng->txt("save"));
333 $this->form_gui->addCommandButton("cancelUpdateNewsItem", $lng->txt("cancel"));
334 }
335
336 $this->form_gui->setTitle($lng->txt("news_news_item_head"));
337 $this->form_gui->setFormAction($this->ctrl->getFormAction($this));
338
339 $this->prepareFormNewsItem($this->form_gui);
340
341 }
const IL_FORM_RE_CREATE
prepareFormNewsItem(&$a_form_gui)
FORM NewsItem: Prepare form.
This class represents a property form user interface.
This class represents a property in a property form.
This class represents an option in a radio group.
This class represents a text area property in a property form.
This class represents a text property in a property form.

References $lng, IL_FORM_CREATE, IL_FORM_RE_CREATE, and prepareFormNewsItem().

Referenced by createNewsItem(), editNewsItem(), saveNewsItem(), and updateNewsItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareBlockNewsForContext()

ilNewsItemGUIGen::prepareBlockNewsForContext ( $a_block_gui)

BLOCK NewsForContext: Prepare block.

(Can be overwritten in derived classes)

Parameters
object$a_block_guiilBlockGUI instance.

Definition at line 453 of file class.ilNewsItemGUIGen.php.

454 {
455
456 }

Referenced by getNewsForContextBlock().

+ Here is the caller graph for this function:

◆ prepareBlockQueryNewsForContext()

ilNewsItemGUIGen::prepareBlockQueryNewsForContext ( $a_news_item)

BLOCK NewsForContext: Prepare query for getting data for list block.

Parameters
object$a_news_itemNewsItem entity.

Definition at line 463 of file class.ilNewsItemGUIGen.php.

464 {
465
466 $a_news_item->setContextObjId($this->getContextObjId());
467 $a_news_item->setContextObjType($this->getContextObjType());
468 $a_news_item->setContextSubObjId($this->getContextSubObjId());
469 $a_news_item->setContextSubObjType($this->getContextSubObjType());
470
471 }
getContextObjType()
Get ContextObjType.
getContextObjId()
Get ContextObjId.
getContextSubObjId()
Get ContextSubObjId.
getContextSubObjType()
Get ContextSubObjType.

References getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().

Referenced by getNewsForContextBlock().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareFormNewsItem()

ilNewsItemGUIGen::prepareFormNewsItem ( $a_form_gui)

FORM NewsItem: Prepare form.

(Can be overwritten in derived classes)

Parameters
object$a_form_guiilPropertyFormGUI instance.

Definition at line 419 of file class.ilNewsItemGUIGen.php.

420 {
421
422 }

Referenced by initFormNewsItem().

+ Here is the caller graph for this function:

◆ prepareSaveNewsItem()

ilNewsItemGUIGen::prepareSaveNewsItem ( $a_news_item)

FORM NewsItem: Prepare Saving of NewsItem.

Parameters
object$a_news_itemNewsItem object.

Definition at line 409 of file class.ilNewsItemGUIGen.php.

410 {
411
412 }

Referenced by saveNewsItem().

+ Here is the caller graph for this function:

◆ prepareTableNewsForContext()

ilNewsItemGUIGen::prepareTableNewsForContext ( $a_table_gui)

TABLE NewsForContext: Prepare table before it is rendered.

Please overwrite this in derived classes.

Parameters
object$a_table_guiTable GUI object.

Definition at line 517 of file class.ilNewsItemGUIGen.php.

518 {
519
520 }

Referenced by getNewsForContextTable().

+ Here is the caller graph for this function:

◆ prepareTableQueryNewsForContext()

ilNewsItemGUIGen::prepareTableQueryNewsForContext ( $a_news_item)

TABLE NewsForContext: Prepare query for getting data for list table.

Parameters
object$a_news_itemNewsItem entity.

Definition at line 502 of file class.ilNewsItemGUIGen.php.

503 {
504
505 $a_news_item->setContextObjId($this->getContextObjId());
506 $a_news_item->setContextObjType($this->getContextObjType());
507 $a_news_item->setContextSubObjId($this->getContextSubObjId());
508 $a_news_item->setContextSubObjType($this->getContextSubObjType());
509
510 }

References getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().

Referenced by getNewsForContextTable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveNewsItem()

ilNewsItemGUIGen::saveNewsItem ( )

FORM NewsItem: Save NewsItem.

Definition at line 227 of file class.ilNewsItemGUIGen.php.

228 {
230 if ($this->form_gui->checkInput())
231 {
232 $this->news_item = new ilNewsItem();
233 $this->news_item->setTitle($this->form_gui->getInput("news_title"));
234 $this->news_item->setContent($this->form_gui->getInput("news_content"));
235 $this->news_item->setVisibility($this->form_gui->getInput("news_visibility"));
236 $this->news_item->setContentLong($this->form_gui->getInput("news_content_long"));
237 $this->prepareSaveNewsItem($this->news_item);
238 $this->news_item->create();
239 $this->exitSaveNewsItem();
240 }
241 else
242 {
243 $this->form_gui->setValuesByPost();
244 return $this->form_gui->getHtml();
245 }
246
247 }
prepareSaveNewsItem(&$a_news_item)
FORM NewsItem: Prepare Saving of NewsItem.
exitSaveNewsItem()
FORM NewsItem: Exit save.

References exitSaveNewsItem(), IL_FORM_CREATE, initFormNewsItem(), and prepareSaveNewsItem().

+ Here is the call graph for this function:

◆ setContextObjId()

ilNewsItemGUIGen::setContextObjId (   $a_context_obj_id)

Set ContextObjId.

Parameters
int$a_context_obj_id

Definition at line 105 of file class.ilNewsItemGUIGen.php.

106 {
107 $this->context_obj_id = $a_context_obj_id;
108 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setContextObjType()

ilNewsItemGUIGen::setContextObjType (   $a_context_obj_type)

Set ContextObjType.

Parameters
int$a_context_obj_type

Definition at line 125 of file class.ilNewsItemGUIGen.php.

126 {
127 $this->context_obj_type = $a_context_obj_type;
128 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setContextSubObjId()

ilNewsItemGUIGen::setContextSubObjId (   $a_context_sub_obj_id)

Set ContextSubObjId.

Parameters
int$a_context_sub_obj_id

Definition at line 145 of file class.ilNewsItemGUIGen.php.

146 {
147 $this->context_sub_obj_id = $a_context_sub_obj_id;
148 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setContextSubObjType()

ilNewsItemGUIGen::setContextSubObjType (   $a_context_sub_obj_type)

Set ContextSubObjType.

Parameters
int$a_context_sub_obj_type

Definition at line 165 of file class.ilNewsItemGUIGen.php.

166 {
167 $this->context_sub_obj_type = $a_context_sub_obj_type;
168 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setEnableEdit()

ilNewsItemGUIGen::setEnableEdit (   $a_enable_edit = 0)

Set EnableEdit.

Parameters
boolean$a_enable_editEdit mode on/off

Definition at line 85 of file class.ilNewsItemGUIGen.php.

86 {
87 $this->enable_edit = $a_enable_edit;
88 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setFormEditMode()

ilNewsItemGUIGen::setFormEditMode (   $a_form_edit_mode)

Set FormEditMode.

Parameters
int$a_form_edit_modeForm 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.

186 {
187 $this->form_edit_mode = $a_form_edit_mode;
188 }

◆ updateNewsItem()

ilNewsItemGUIGen::updateNewsItem ( )

FORM NewsItem: Update NewsItem.

Definition at line 253 of file class.ilNewsItemGUIGen.php.

254 {
256 if ($this->form_gui->checkInput())
257 {
258
259 $this->news_item->setTitle($this->form_gui->getInput("news_title"));
260 $this->news_item->setContent($this->form_gui->getInput("news_content"));
261 $this->news_item->setVisibility($this->form_gui->getInput("news_visibility"));
262 $this->news_item->setContentLong($this->form_gui->getInput("news_content_long"));
263 $this->news_item->update();
264 $this->exitUpdateNewsItem();
265 }
266 else
267 {
268 $this->form_gui->setValuesByPost();
269 return $this->form_gui->getHtml();
270 }
271
272 }
exitUpdateNewsItem()
FORM NewsItem: Exit update.

References exitUpdateNewsItem(), IL_FORM_EDIT, and initFormNewsItem().

+ Here is the call graph for this function:

Field Documentation

◆ $context_obj_id

ilNewsItemGUIGen::$context_obj_id
protected

Definition at line 20 of file class.ilNewsItemGUIGen.php.

Referenced by getContextObjId().

◆ $context_obj_type

ilNewsItemGUIGen::$context_obj_type
protected

Definition at line 21 of file class.ilNewsItemGUIGen.php.

Referenced by getContextObjType().

◆ $context_sub_obj_id

ilNewsItemGUIGen::$context_sub_obj_id
protected

Definition at line 22 of file class.ilNewsItemGUIGen.php.

Referenced by getContextSubObjId().

◆ $context_sub_obj_type

ilNewsItemGUIGen::$context_sub_obj_type
protected

Definition at line 23 of file class.ilNewsItemGUIGen.php.

Referenced by getContextSubObjType().

◆ $enable_edit

ilNewsItemGUIGen::$enable_edit = 0
protected

Definition at line 19 of file class.ilNewsItemGUIGen.php.

Referenced by getEnableEdit().

◆ $form_edit_mode

ilNewsItemGUIGen::$form_edit_mode
protected

Definition at line 24 of file class.ilNewsItemGUIGen.php.

Referenced by getFormEditMode().


The documentation for this class was generated from the following file: