4 require_once
'Services/Object/classes/class.ilObject2GUI.php';
5 require_once
'Services/Contact/BuddySystem/classes/class.ilBuddySystem.php';
20 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
22 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
23 $this->lng->loadLanguageModule(
'buddysystem');
41 $tabs_gui->
addTarget(
'settings', $this->ctrl->getLinkTarget($this,
'showConfigurationForm'), array(
'',
'view',
'showConfigurationForm',
'saveConfigurationForm'), __CLASS__);
46 $tabs_gui->
addTarget(
'perm_settings', $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
'perm'), array(
'perm',
'info',
'owner'),
'ilpermissiongui');
55 $next_class = $this->ctrl->getNextClass($this);
56 $cmd = $this->ctrl->getCmd();
61 case 'ilpermissiongui':
62 require_once
'Services/AccessControl/classes/class.ilPermissionGUI.php';
64 $this->ctrl->forwardCommand($perm_gui);
70 $cmd =
'showConfigurationForm';
82 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
84 $form->setTitle($this->lng->txt(
'settings'));
85 $form->setFormAction($this->ctrl->getFormAction($this,
'saveConfigurationForm'));
88 $enabled->
setInfo($this->lng->txt(
'buddy_enable_info'));
90 $form->addItem($enabled);
92 $form->addCommandButton(
'saveConfigurationForm', $this->lng->txt(
'save'));
107 $form->setValuesByArray(array(
112 $this->tpl->setContent($form->getHTML());
123 if(!$form->checkInput())
125 $form->setValuesByPost();
133 $this->ctrl->redirect($this);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
New implementation of ilObjectGUI.
addTarget($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false)
DEPRECATED.
checkPermission($a_perm, $a_cmd="")
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.