Class ilBuddySystemGUI.
More...
◆ executeCommand()
ilBuddySystemGUI::executeCommand |
( |
| ) |
|
- Exceptions
-
Definition at line 109 of file class.ilBuddySystemGUI.php.
References $cmd.
111 if($this->user->isAnonymous())
113 throw new RuntimeException(
'This controller only accepts requests of logged in users');
116 $next_class = $this->ctrl->getNextClass($this);
117 $cmd = $this->ctrl->getCmd();
◆ ignoreCommand()
ilBuddySystemGUI::ignoreCommand |
( |
| ) |
|
|
private |
◆ isRequestParameterGiven()
ilBuddySystemGUI::isRequestParameterGiven |
( |
|
$key, |
|
|
|
$type |
|
) |
| |
|
protected |
◆ linkCommand()
ilBuddySystemGUI::linkCommand |
( |
| ) |
|
|
private |
◆ requestCommand()
ilBuddySystemGUI::requestCommand |
( |
| ) |
|
|
private |
◆ transitionCommand()
ilBuddySystemGUI::transitionCommand |
( |
|
$cmd, |
|
|
|
$positive_feedback_lng_id, |
|
|
callable |
$onBeforeExecute = null |
|
) |
| |
|
private |
- Parameters
-
string | $cmd | |
string | $positive_feedback_lng_id | |
callable | null | $onBeforeExecute | |
Definition at line 182 of file class.ilBuddySystemGUI.php.
References $_GET, $_POST, $lng, ilObjUser\_isAnonymous(), ilObjUser\_lookupLogin(), ilObjUser\_lookupPref(), exit, isRequestParameterGiven(), ilUtil\sendInfo(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), and ilUtil\yn2tf().
Referenced by ignoreCommand(), linkCommand(), and requestCommand().
187 $this->ctrl->returnToParent($this);
192 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddyList.php';
193 $relation = ilBuddyList::getInstanceByGlobalUser()->getRelationByUserId((
int)
$_GET[
'user_id']);
195 if(null !== $onBeforeExecute)
197 $onBeforeExecute($relation);
200 ilBuddyList::getInstanceByGlobalUser()->$cmd($relation);
217 $this->ctrl->returnToParent($this);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static _lookupLogin($a_user_id)
lookup login
Base class for ILIAS Exception handling.
isRequestParameterGiven($key, $type)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
◆ $buddylist
ilBuddySystemGUI::$buddylist |
|
protected |
◆ $ctrl
◆ $frontend_initialized
ilBuddySystemGUI::$frontend_initialized = false |
|
staticprotected |
◆ $lng
◆ $statefactory
ilBuddySystemGUI::$statefactory |
|
protected |
◆ $user
◆ BS_REQUEST_HTTP_GET
const ilBuddySystemGUI::BS_REQUEST_HTTP_GET = 1 |
◆ BS_REQUEST_HTTP_POST
const ilBuddySystemGUI::BS_REQUEST_HTTP_POST = 2 |
The documentation for this class was generated from the following file: