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

Statically used helper class for generating links to the mail form user interface. More...

+ Collaboration diagram for ilMailFormCall:

Static Public Member Functions

static getLinkTarget ($gui, $cmd, Array $gui_params=array(), Array $mail_params=array())
static getRedirectTarget ($gui, $cmd, Array $gui_params=array(), Array $mail_params=array())
static storeReferer ($request_params)
static getSignature ()
 Get preset signature.
static getRefererRedirectUrl ()
static isRefererStored ()

Data Fields

const REFERER_KEY = 'r'
 HTTP-GET parameter for the referer url.
const SIGNATURE_KEY = 'sig'
 Session parameter for the hash.

Detailed Description

Statically used helper class for generating links to the mail form user interface.

Version
: $Id$
Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 10 of file class.ilMailFormCall.php.

Member Function Documentation

static ilMailFormCall::getLinkTarget (   $gui,
  $cmd,
Array  $gui_params = array(),
Array  $mail_params = array() 
)
static
Parameters
mixed$gui
string$cmd
array$gui_params
array$mail_params
Returns
string

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

References $cmd.

Referenced by ilAssignedUsersTableGUI\fillRow(), ilUsersOnlineBlockGUI\fillRow(), ilPublicUserProfileGUI\getEmbeddable(), ilObjCourseGUI\infoScreen(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilObjiLincCourseGUI\membersObject(), and ilPaymentTrusteeGUI\showTrustees().

{
return self::getTargetUrl('&', $gui, $cmd, $gui_params, $mail_params);
}

+ Here is the caller graph for this function:

static ilMailFormCall::getRedirectTarget (   $gui,
  $cmd,
Array  $gui_params = array(),
Array  $mail_params = array() 
)
static
Parameters
mixed$gui
string$cmd
array$gui_params
array$mail_params
Returns
string

Definition at line 43 of file class.ilMailFormCall.php.

References $cmd.

Referenced by ilObjRoleGUI\mailToRoleObject(), ilObjExerciseGUI\redirectFeedbackMailObject(), ilBookmarkAdministrationGUI\sendmail(), ilObjCourseGUI\sendMailToSelectedUsersObject(), and ilObjGroupGUI\sendMailToSelectedUsersObject().

{
return self::getTargetUrl('&', $gui, $cmd, $gui_params, $mail_params);
}

+ Here is the caller graph for this function:

static ilMailFormCall::getRefererRedirectUrl ( )
static
Returns
string

Definition at line 126 of file class.ilMailFormCall.php.

References $_SESSION, and REFERER_KEY.

Referenced by ilMailFormGUI\cancelMail(), ilMailFormGUI\saveDraft(), and ilMailFormGUI\sendMessage().

{
if(strlen($url))
{
$parts = parse_url($url);
if(isset($parts['query']) && strlen($parts['query']))
{
$url .= '&returned_from_mail=1';
}
else
{
$url .= '?returned_from_mail=1';
}
}
unset($_SESSION[self::REFERER_KEY]);
return $url;
}

+ Here is the caller graph for this function:

static ilMailFormCall::getSignature ( )
static

Get preset signature.

Returns
string signature

Definition at line 113 of file class.ilMailFormCall.php.

References $_SESSION, and SIGNATURE_KEY.

Referenced by ilMailFormGUI\showForm().

{
unset($_SESSION[self::SIGNATURE_KEY]);
return $sig;
}

+ Here is the caller graph for this function:

static ilMailFormCall::isRefererStored ( )
static
Returns
bool

Definition at line 152 of file class.ilMailFormCall.php.

References $_SESSION.

Referenced by ilMailFormGUI\cancelMail(), ilMailFormGUI\saveDraft(), ilMailFormGUI\sendMessage(), and ilMailFormGUI\showForm().

{
return isset($_SESSION[self::REFERER_KEY]) && strlen($_SESSION[self::REFERER_KEY]) ? true : false;
}

+ Here is the caller graph for this function:

static ilMailFormCall::storeReferer (   $request_params)
static
Parameters
array$request_params

Definition at line 94 of file class.ilMailFormCall.php.

References $_SESSION, REFERER_KEY, and SIGNATURE_KEY.

Referenced by ilMailGUI\executeCommand().

{
if(isset($request_params[self::REFERER_KEY]))
{
$_SESSION[self::REFERER_KEY] = base64_decode(rawurldecode($request_params[self::REFERER_KEY]));
$_SESSION[self::SIGNATURE_KEY] = base64_decode(rawurldecode($request_params[self::SIGNATURE_KEY]));
}
else
{
unset($_SESSION[self::REFERER_KEY]);
unset($_SESSION[self::SIGNATURE_KEY]);
}
}

+ Here is the caller graph for this function:

Field Documentation

const ilMailFormCall::REFERER_KEY = 'r'

HTTP-GET parameter for the referer url.

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

Referenced by getRefererRedirectUrl(), and storeReferer().

const ilMailFormCall::SIGNATURE_KEY = 'sig'

Session parameter for the hash.

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

Referenced by getSignature(), and storeReferer().


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