ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilChatroomInfoTask Class Reference

Class ilChatroomInfoTask. More...

+ Inheritance diagram for ilChatroomInfoTask:
+ Collaboration diagram for ilChatroomInfoTask:

Public Member Functions

 __construct (ilDBayObjectGUI $gui)
 Constructor.
 executeDefault ($method)
 Prepares and displays the info screen.
- Public Member Functions inherited from ilDBayTaskHandler
 execute ($method)
 Executes given $method if existing, otherwise executes executeDefault() method.

Private Attributes

 $gui

Detailed Description

Class ilChatroomInfoTask.

Provides methods to prepare and display the info task.

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

Definition at line 15 of file class.ilChatroomInfoTask.php.

Constructor & Destructor Documentation

ilChatroomInfoTask::__construct ( ilDBayObjectGUI  $gui)

Constructor.

Requires ilInfoScreenGUI and sets $this->gui using given $gui.

Parameters
ilDBayObjectGUI$gui

Reimplemented from ilDBayTaskHandler.

Definition at line 26 of file class.ilChatroomInfoTask.php.

References $gui.

{
$this->gui = $gui;
require_once 'Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
}

Member Function Documentation

ilChatroomInfoTask::executeDefault (   $method)

Prepares and displays the info screen.

ilAccessHandler $ilAccess ilCtrl2 $ilCtrl ilLanguage $lng

Parameters
string$method

Reimplemented from ilDBayTaskHandler.

Definition at line 40 of file class.ilChatroomInfoTask.php.

References $_GET, $ilCtrl, $lng, ilChatroom\checkUserPermissions(), and ilUtil\redirect().

{
global $ilAccess, $ilCtrl, $lng;
include_once 'Modules/Chatroom/classes/class.ilChatroom.php';
if ( !ilChatroom::checkUserPermissions( 'read' , $this->gui->ref_id ) )
{
ilUtil::redirect("repository.php");
}
$this->gui->switchToVisibleMode();
if( !$ilAccess->checkAccess( "visible", "", $this->gui->ref_id ) )
{
$this->gui->ilias->raiseError(
$lng->txt( "msg_no_perm_read" ), $this->ilias->error_obj->MESSAGE
);
}
$info = new ilInfoScreenGUI( $this->gui );
$info->enablePrivateNotes();
if( $ilAccess->checkAccess( "read", "", $_GET["ref_id"] ) )
{
$info->enableNews();
}
$info->addMetaDataSections(
$this->gui->object->getId(), 0, $this->gui->object->getType()
);
if(!$method)
{
$ilCtrl->setCmd( 'showSummary' );
}
else
{
$ilCtrl->setCmd( $method );
}
$ilCtrl->forwardCommand( $info );
}

+ Here is the call graph for this function:

Field Documentation

ilChatroomInfoTask::$gui
private

Definition at line 17 of file class.ilChatroomInfoTask.php.

Referenced by __construct().


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