183 if ($this->tabs_gui->hasTabs()) {
185 $this->tabs_gui->addSubTab(
'my_contacts', $this->lng->txt(
'my_contacts'), $this->ctrl->getLinkTarget($this));
187 if (in_array(strtolower($this->ctrl->getCmdClass()), array_map(
'strtolower',
array(
'ilUsersGalleryGUI', get_class($this))))) {
188 require_once
'Services/Form/classes/class.ilSelectInputGUI.php';
190 $view_selection->setOptions(
array(
191 self::CONTACTS_VIEW_TABLE => $this->lng->txt(
'buddy_view_table'),
192 self::CONTACTS_VIEW_GALLERY => $this->lng->txt(
'buddy_view_gallery')
194 $view_selection->setValue(
195 strtolower($this->ctrl->getCmdClass()) ==
'ilusersgallerygui' ? self::CONTACTS_VIEW_GALLERY : self::CONTACTS_VIEW_TABLE
197 $this->toolbar->addInputItem($view_selection);
199 require_once
'Services/UIComponent/Button/classes/class.ilSubmitButton.php';
201 $contact_view_btn->setCaption(
'submit');
202 $contact_view_btn->setCommand(
'changeContactsView');
203 $this->toolbar->addButtonInstance($contact_view_btn);
204 $this->toolbar->setFormAction($this->ctrl->getFormAction($this,
'changeContactsView'));
211 $this->tabs_gui->addSubTab(
212 'mail_my_mailing_lists',
213 $this->lng->txt(
'mail_my_mailing_lists'),
214 $this->ctrl->getLinkTargetByClass(
'ilmailinglistsgui')
219 $this->tabs_gui->addSubTab(
'mail_my_courses', $this->lng->txt(
'mail_my_courses'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchcoursesgui'));
220 $this->tabs_gui->addSubTab(
'mail_my_groups', $this->lng->txt(
'mail_my_groups'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchgroupsgui'));
221 $this->has_sub_tabs =
true;
223 $this->help->setScreenIdComponent(
'contacts');
226 $this->tabs_gui->addTab(
'my_contacts', $this->lng->txt(
'my_contacts'), $this->ctrl->getLinkTarget($this));
228 if (in_array(strtolower($this->ctrl->getCmdClass()), array_map(
'strtolower',
array(
'ilUsersGalleryGUI', get_class($this))))) {
229 $this->tabs_gui->addSubTab(
'buddy_view_table', $this->lng->txt(
'buddy_view_table'), $this->ctrl->getLinkTarget($this));
230 $this->tabs_gui->addSubTab(
'buddy_view_gallery', $this->lng->txt(
'buddy_view_gallery'), $this->ctrl->getLinkTargetByClass(
'ilUsersGalleryGUI'));
237 $this->tabs_gui->addTab(
238 'mail_my_mailing_lists',
239 $this->lng->txt(
'mail_my_mailing_lists'),
240 $this->ctrl->getLinkTargetByClass(
'ilmailinglistsgui')
245 $this->tabs_gui->addTab(
'mail_my_courses', $this->lng->txt(
'mail_my_courses'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchcoursesgui'));
246 $this->tabs_gui->addTab(
'mail_my_groups', $this->lng->txt(
'mail_my_groups'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchgroupsgui'));
static getInstanceByGlobalUser()
Create styles array
The data for the language used.