◆ __construct()
contsructs a new MultiPersonSearch object.
- Parameters
-
string | name of the object and html ids |
◆ addQuickfilter()
addQuickfilter |
( |
|
$title, |
|
|
|
$userArray |
|
) |
| |
adds a new quickfilter.
- Parameters
-
string | $title | title of the new quickfilter |
array | $userArray | containing all user-ids belonging to the quickfilter |
- Returns
- MultiPersonSearch
◆ clearQuickfilters()
◆ clearSession()
◆ get()
◆ getAddedUsers()
returns the newly added persons. The array will contain all persons which are selected (on the right side of the dialog) but without the defaultSelectedUsers.
- Returns
- array containing all new persons
◆ getAdditionalOptionArray()
getAdditionalOptionArray |
( |
| ) |
|
returns an additional option array.
- Returns
- string html code
◆ getAdditionHTML()
returns html code which will be shown inside the form element.
- Returns
- string html code
◆ getDataDialogStatus()
returns if data-dialog is enabled or disabled
- Returns
- bool
◆ getDefaultSelectableUsersIDs()
getDefaultSelectableUsersIDs |
( |
| ) |
|
returns the ids of defaultselectable users.
- Returns
- array
◆ getDefaultSelectedUsersIDs()
getDefaultSelectedUsersIDs |
( |
| ) |
|
returns the ids of defaultselected users.
- Returns
- array
◆ getDescription()
returns the description.
- Returns
- string
◆ getExecuteURL()
returns the action which will handle the added and removed persons after saving the dialog.
- Returns
- string action which will handle the form data.
◆ getJSFunctionOnSubmit()
getJSFunctionOnSubmit |
( |
| ) |
|
returns a JavaScript-function which should be fired when the user has pressed the submit button.
- Returns
- string function name
◆ getLinkIconPath()
returns the icon of the link to open the dialog.
- Returns
- string path ot the icon.
◆ getLinkText()
returns the link text of the link.
- Returns
- string text of the link.
◆ getNavigationItem()
returns the navigation item.
- Returns
- string
◆ getPageUrl()
returns the url of the page where the GUI element is added.
- Returns
- string
◆ getQuickfilterIds()
returns the ids of quickfilters.
- Returns
- array
◆ getRemovedUsers()
returns the removed persons. The array will contain all persons which were selected by default (on the right side of the dialog) and then removed by the user.
- Returns
- array containing all removed persons
◆ getSearchObject()
◆ getTitle()
returns the title.
- Returns
- string
◆ load()
◆ render()
render |
( |
|
$with_link_text = true | ) |
|
renders a link to open the multipersonsearch dialog.
- Parameters
-
string | $with_link_text | include link text in output |
◆ restoreFromSession()
restores the internal data from a session.
◆ saveAddedUsersToSession()
saveAddedUsersToSession |
( |
| ) |
|
saves the added persons to $_SESSION.
◆ saveRemovedUsersToSession()
saveRemovedUsersToSession |
( |
| ) |
|
saves the removed persons to $_SESSION.
◆ setAdditionalHTML()
setAdditionalHTML |
( |
|
$html | ) |
|
sets html code which will be shown inside the form element.
- Parameters
-
- Returns
- MultiPersonSearch
◆ setDataDialogStatus()
setDataDialogStatus |
( |
|
$status | ) |
|
enables or disabled data-dialog
- Parameters
-
- Returns
- $this
◆ setDefaultSelectableUser()
setDefaultSelectableUser |
( |
|
$userArray | ) |
|
sets the persons which will be shown as selectable by default on the left side of the dialoag.
- Parameters
-
array | array containing user-ids |
◆ setDefaultSelectedUser()
setDefaultSelectedUser |
( |
|
$userArray | ) |
|
sets the persons which will be shown as selected by default on the right side of the dialoag.
- Parameters
-
array | array containing user-ids |
◆ setDescription()
sets the description of the dialog.
- Parameters
-
string | $desc | description of the dialog |
- Returns
- MultiPersonSearch
◆ setExecuteURL()
sets the action which will handle the added and removed persons after saving the dialog.
- Parameters
-
- Returns
- MultiPersonSearch
◆ setJSFunctionOnSubmit()
setJSFunctionOnSubmit |
( |
|
$function_name | ) |
|
sets a JavaScript-function to be fired when the user has pressed the submit-button. Arguments are: function fireme(id_of_item, text_of_item) example setting: MPS->setJSFunctionOnSubmit('fireme');
- Parameters
-
string | $function_name | the name of the javascript function |
- Returns
- MultiPersonSearch
◆ setLinkIconPath()
sets the icon of the link to open the dialog. To hide the icon an empty string can be set.
- Parameters
-
- Returns
- MultiPersonSearch
◆ setLinkText()
setLinkText |
( |
|
$text = "" | ) |
|
sets the link text of the link to open the dialog. To hide the text an empty string can be set.
- Parameters
-
- Returns
- MultiPersonSearch
◆ setNavigationItem()
setNavigationItem |
( |
|
$navigationItem | ) |
|
sets the navigation item.
- Parameters
-
string | $navigationItem | navigation item |
- Returns
- MultiPersonSearch
◆ setSearchObject()
setSearchObject |
( |
|
$searchType | ) |
|
◆ setTitle()
sets the title of the dialog.
- Parameters
-
string | $title | title of the dialog |
- Returns
- MultiPersonSearch
◆ storeToSession()
stores the internal data to a session.
The documentation for this class was generated from the following file: