ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilChatroomCreateTask Class Reference

Class ilChatroomCreateTask. More...

+ Inheritance diagram for ilChatroomCreateTask:
+ Collaboration diagram for ilChatroomCreateTask:

Public Member Functions

 __construct (ilChatroomObjectGUI $gui)
 Constructor.
 executeDefault ($method)
 Switches gui to visible mode.
 save ()
 Inserts new object into gui.

Private Attributes

 $gui

Detailed Description

Class ilChatroomCreateTask.

Author
Jan Posselt jposs.nosp@m.elt@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilChatroomCreateTask.php.

Constructor & Destructor Documentation

ilChatroomCreateTask::__construct ( ilChatroomObjectGUI  $gui)

Constructor.

Sets $this->gui using given $gui

Parameters
ilChatroomObjectGUI$gui

Reimplemented from ilChatroomTaskHandler.

Definition at line 25 of file class.ilChatroomCreateTask.php.

References $gui.

{
$this->gui = $gui;
}

Member Function Documentation

ilChatroomCreateTask::executeDefault (   $method)

Switches gui to visible mode.

Instantiates and prepares form.

ilTemplate $tpl ilObjUser $ilUser ilCtrl2 $ilCtrl

Parameters
string$method

Reimplemented from ilChatroomTaskHandler.

Definition at line 38 of file class.ilChatroomCreateTask.php.

Referenced by save().

{
$this->gui->switchToVisibleMode();
return $this->gui->createObject();
}

+ Here is the caller graph for this function:

ilChatroomCreateTask::save ( )

Inserts new object into gui.

ilCtrl2 $ilCtrl

Definition at line 49 of file class.ilChatroomCreateTask.php.

References $ilCtrl, and executeDefault().

{
global $ilCtrl;
require_once 'Modules/Chatroom/classes/class.ilChatroomFormFactory.php';
$formFactory = new ilChatroomFormFactory();
$form = $formFactory->getCreationForm();
if( $form->checkInput() )
{
$this->gui->insertObject();
$ilCtrl->setParameter( $this->gui, 'ref_id', $this->gui->getRefId() );
$ilCtrl->redirect( $this->gui, 'settings-general' );
}
else
{
$this->executeDefault( 'create' );
}
}

+ Here is the call graph for this function:

Field Documentation

ilChatroomCreateTask::$gui
private

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

Referenced by __construct().


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