19 declare(strict_types=1);
36 $this->
user = $DIC[
'ilUser'];
37 $this->
lng = $DIC[
'lng'];
45 return new self($usrId);
60 $this->
lng->loadLanguageModule(
'buddysystem');
77 'tpl.buddy_system_link_button.html',
80 'Services/Contact/BuddySystem' 82 $buttonTemplate->setVariable(
85 (
int) $this->
user->getId(),
89 $buttonTemplate->setVariable(
'BUTTON_BUDDY_ID', $this->
getUsrId());
90 $buttonTemplate->setVariable(
'BUTTON_CSS_CLASS',
'ilBuddySystemLinkWidget');
91 $buttonTemplate->setVariable(
'BUTTON_CURRENT_STATE',
$relation->getState()::class);
93 return $buttonTemplate->get();
static getInstance(?ilLanguage $lng=null)
static _lookupPref(int $a_usr_id, string $a_keyword)
static getInstanceByGlobalUser(ilObjUser $user=null)
static yn2tf(string $a_yn)