4 require_once
'Services/JSON/classes/class.ilJsonUtil.php';
5 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddyList.php';
6 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystemGUI.php';
7 require_once
'Services/Contact/BuddySystem/classes/states/class.ilBuddySystemRelationStateFactory.php';
8 require_once
'Services/Contact/BuddySystem/interfaces/interface.ilBuddySystemLinkButtonType.php';
46 $this->
user = $DIC[
'ilUser'];
47 $this->lng = $DIC[
'lng'];
88 $this->lng->loadLanguageModule(
'buddysystem');
92 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
98 $relation = $this->buddylist->getRelationByUserId($this->
getUsrId());
106 $button_tpl =
new ilTemplate(
'tpl.buddy_system_link_button.html',
true,
true,
'Services/Contact/BuddySystem');
108 $button_tpl->setVariable(
'BUTTON_BUDDY_ID', $this->
getUsrId());
109 $button_tpl->setVariable(
'BUTTON_CSS_CLASS',
'ilBuddySystemLinkWidget');
110 $button_tpl->setVariable(
'BUTTON_CURRENT_STATE', get_class($relation->getState()));
111 return $button_tpl->get();
static getInstanceByGlobalUser()
special template class to simplify handling of ITX/PEAR
static _lookupPref($a_usr_id, $a_keyword)
static initializeFrontend()
static yn2tf($a_yn)
convert "y"/"n" to true/false