ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMembershipGUI Class Reference

Membership GUI. More...

+ Collaboration diagram for ilMembershipGUI:

Public Member Functions

 __construct (ilObjectGUI $object)
 getCurrentObject ()
 executeCommand ()
 execute command
 sendMailToSelectedUsers ()
 show send mail

Protected Member Functions

 createMailSignature ()
 Create a course mail signature.

Protected Attributes

 $ctrl
 $lng

Private Attributes

 $object = null

Detailed Description

Membership GUI.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

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

Constructor & Destructor Documentation

ilMembershipGUI::__construct ( ilObjectGUI  $object)

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

References $ilCtrl, $lng, and $object.

{
global $ilCtrl, $lng;
$this->object = $object;
$this->ctrl = $ilCtrl;
$this->lng = $lng;
}

Member Function Documentation

ilMembershipGUI::createMailSignature ( )
protected

Create a course mail signature.

Returns

Definition at line 103 of file class.ilMembershipGUI.php.

References $GLOBALS, ilLink\_getLink(), and getCurrentObject().

Referenced by sendMailToSelectedUsers().

{
$GLOBALS['lng']->loadLanguageModule($this->getCurrentObject()->object->getType());
$link = chr(13).chr(10).chr(13).chr(10);
$link .= $this->lng->txt($this->getCurrentObject()->object->getType().'_mail_permanent_link');
$link .= chr(13).chr(10).chr(13).chr(10);
include_once 'Services/Link/classes/class.ilLink.php';
$link .= ilLink::_getLink($this->getCurrentObject()->object->getRefId());
return rawurlencode(base64_encode($link));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMembershipGUI::executeCommand ( )

execute command

public

Returns

Definition at line 39 of file class.ilMembershipGUI.php.

References $cmd.

{
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
switch($next_class)
{
default:
$this->$cmd();
break;
}
return true;
}
ilMembershipGUI::getCurrentObject ( )

Definition at line 28 of file class.ilMembershipGUI.php.

References $object.

Referenced by createMailSignature(), and sendMailToSelectedUsers().

{
return $this->object;
}

+ Here is the caller graph for this function:

ilMembershipGUI::sendMailToSelectedUsers ( )

show send mail

public

Parameters
@return

Definition at line 62 of file class.ilMembershipGUI.php.

References $_GET, $_POST, $GLOBALS, ilObjUser\_lookupLogin(), createMailSignature(), getCurrentObject(), ilMailFormCall\getRedirectTarget(), ilUtil\redirect(), and ilUtil\sendFailure().

{
if(isset($_GET['member_id']))
{
$_POST['participants'] = array($_GET['member_id']);
}
else
{
$_POST['participants'] = array_unique(array_merge(
(array) $_POST['admins'],
(array) $_POST['tutors'],
(array) $_POST['members'],
(array) $_POST['roles'],
(array) $_POST['waiting'],
(array) $_POST['subscribers']));
}
if (!count($_POST['participants']))
{
ilUtil::sendFailure($GLOBALS['lng']->txt("no_checkbox"),TRUE);
$this->ctrl->returnToParent($this);
return false;
}
foreach($_POST['participants'] as $usr_id)
{
$rcps[] = ilObjUser::_lookupLogin($usr_id);
}
require_once 'Services/Mail/classes/class.ilMailFormCall.php';
$this->getCurrentObject(),
'members',
array(),
array('type' => 'new', 'rcp_to' => implode(',',$rcps),'sig' => $this->createMailSignature())));
return true;
}

+ Here is the call graph for this function:

Field Documentation

ilMembershipGUI::$ctrl
protected

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

ilMembershipGUI::$lng
protected

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

Referenced by __construct().

ilMembershipGUI::$object = null
private

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

Referenced by __construct(), and getCurrentObject().


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