194 if($this->tabs_gui->hasTabs())
198 $this->tabs_gui->addSubTab(
'my_contacts', $this->lng->txt(
'my_contacts'), $this->ctrl->getLinkTarget($this));
200 if(in_array(strtolower($this->ctrl->getCmdClass()), array_map(
'strtolower',
array(
'ilUsersGalleryGUI', get_class($this)))))
202 require_once
'Services/Form/classes/class.ilSelectInputGUI.php';
204 $view_selection->setOptions(
array(
205 self::CONTACTS_VIEW_TABLE => $this->lng->txt(
'buddy_view_table'),
206 self::CONTACTS_VIEW_GALLERY => $this->lng->txt(
'buddy_view_gallery')
208 $view_selection->setValue(
209 strtolower($this->ctrl->getCmdClass()) ==
'ilusersgallerygui' ? self::CONTACTS_VIEW_GALLERY : self::CONTACTS_VIEW_TABLE
211 $this->toolbar->addInputItem($view_selection);
213 require_once
'Services/UIComponent/Button/classes/class.ilSubmitButton.php';
215 $contact_view_btn->setCaption(
'submit');
216 $contact_view_btn->setCommand(
'changeContactsView');
217 $this->toolbar->addButtonInstance($contact_view_btn);
218 $this->toolbar->setFormAction($this->ctrl->getFormAction($this,
'changeContactsView'));
221 $this->tabs_gui->addSubTab(
'mail_my_mailing_lists', $this->lng->txt(
'mail_my_mailing_lists'), $this->ctrl->getLinkTargetByClass(
'ilmailinglistsgui'));
224 $this->tabs_gui->addSubTab(
'mail_my_courses', $this->lng->txt(
'mail_my_courses'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchcoursesgui'));
225 $this->tabs_gui->addSubTab(
'mail_my_groups', $this->lng->txt(
'mail_my_groups'), $this->ctrl->getLinkTargetByClass(
'ilmailsearchgroupsgui'));
226 $this->has_sub_tabs =
true;
230 $this->help->setScreenIdComponent(
'contacts');
234 $this->tabs_gui->addTab(
'my_contacts', $this->lng->txt(
'my_contacts'), $this->ctrl->getLinkTarget($this));
236 if(in_array(strtolower($this->ctrl->getCmdClass()), array_map(
'strtolower',
array(
'ilUsersGalleryGUI', get_class($this)))))
238 $this->tabs_gui->addSubTab(
'buddy_view_table', $this->lng->txt(
'buddy_view_table'), $this->ctrl->getLinkTarget($this));
239 $this->tabs_gui->addSubTab(
'buddy_view_gallery', $this->lng->txt(
'buddy_view_gallery'), $this->ctrl->getLinkTargetByClass(
'ilUsersGalleryGUI'));
242 $this->tabs_gui->addTab(
'mail_my_mailing_lists', $this->lng->txt(
'mail_my_mailing_lists'), $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'));
Create styles array
The data for the language used.