ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUtil Class Reference

Util class various functions, usage as namespace. More...

+ Collaboration diagram for ilUtil:

Public Member Functions

 includeMathjax ($a_tpl=null)
 Include Mathjax. More...
 
 rangeDownload ($file)
 Send a file via range request, see http://mobiforge.com/design-development/content-delivery-mobile-devices alternatives could be. More...
 

Static Public Member Functions

static getImageTagByType ($a_type, $a_path, $a_big=false)
 Builds an html image tag TODO: function still in use, but in future use getImagePath and move HTML-Code to your template file public. More...
 
static getTypeIconPath ($a_type, $a_obj_id, $a_size='small')
 Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Deprecated, use ilObject::_getIcon instead. More...
 
static getImagePath ($img, $module_path="", $mode="output", $offline=false)
 get image path (for images located in a template directory) More...
 
static getHtmlPath ($relative_path)
 get url of path More...
 
static getStyleSheetLocation ($mode="output", $a_css_name="", $a_css_location="")
 get full style sheet file name (path inclusive) of current user More...
 
static getJSLocation ($a_js_name, $a_js_location="", $add_version=false)
 get full javascript file name (path inclusive) of current user More...
 
static getP3PLocation ()
 Get p3p file path. More...
 
static getNewContentStyleSheetLocation ($mode="output")
 get full style sheet file name (path inclusive) of current user More...
 
static formSelect ( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
 Builds a select form field with options and shows the selected option first. More...
 
static getSelectName ($selected, $values)
 ??? More...
 
static formCheckbox ($checked, $varname, $value, $disabled=false)
 ??? public More...
 
static formDisabledRadioButton ($checked, $varname, $value, $disabled)
 ??? More...
 
static formRadioButton ($checked, $varname, $value, $onclick=null, $disabled=false)
 ??? public More...
 
static formInput ($varname, $value, $disabled=false)
 create html input area More...
 
static checkInput ($vars)
 ??? More...
 
static setPathStr ($a_path)
 ??? public More...
 
static switchColor ($a_num, $a_css1, $a_css2)
 switches style sheets for each even $a_num (used for changing colors of different result rows) More...
 
static checkFormEmpty ($emptyFields)
 ??? public More...
 
static Linkbar ($AScript, $AHits, $ALimit, $AOffset, $AParams=array(), $ALayout=array(), $prefix='')
 Linkbar Diese Funktion erzeugt einen typischen Navigationsbalken mit "Previous"- und "Next"-Links und den entsprechenden Seitenzahlen. More...
 
static makeClickable ($a_text, $detectGotoLinks=false)
 makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen More...
 
static replaceLinkProperties ($matches)
 replaces target _blank with _self and the link text with the according object title. More...
 
static makeDateSelect ($prefix, $year="", $month="", $day="", $startyear="", $a_long_month=true, $a_further_options=array(), $emptyoption=false)
 Creates a combination of HTML selects for date inputs. More...
 
static makeTimeSelect ($prefix, $short=true, $hour="", $minute="", $second="", $a_use_default=true, $a_further_options=array())
 Creates a combination of HTML selects for time inputs. More...
 
static is_email ($a_email, ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
 This preg-based function checks whether an e-mail address is formally valid. More...
 
static isPassword ($a_passwd, &$customError=null)
 validates a password public More...
 
static isPasswordValidForUserContext ($clear_text_password, $user, &$error_language_variable=null)
 
static getPasswordValidChars ($a_as_regex=true, $a_only_special_chars=false)
 All valid chars for password. More...
 
static getPasswordRequirementsInfo ()
 infotext for ilPasswordInputGUI setInfo() More...
 
static isLogin ($a_login)
 
static shortenText ( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
 shorten a string to given length. More...
 
static shortenWords ($a_str, $a_len=30, $a_dots=true)
 Ensure that the maximum word lenght within a text is not longer than $a_len. More...
 
static attribsToArray ($a_str)
 converts a string of format var1 = "val1" var2 = "val2" ... More...
 
static rCopy ($a_sdir, $a_tdir, $preserveTimeAttributes=false)
 Copies content of a directory $a_sdir recursively to a directory $a_tdir. More...
 
static getWebspaceDir ($mode="filesystem")
 get webspace directory More...
 
static getDataDir ()
 get data directory (outside webspace) More...
 
static getUsersOnline ($a_user_id=0)
 reads all active sessions from db and returns users that are online OR returns only one active user if a user_id is given More...
 
static getAssociatedUsersOnline ($a_user_id)
 reads all active sessions from db and returns users that are online and who have a local role in a group or a course for which the the current user has also a local role. More...
 
static ilTempnam ($a_temp_path=null)
 Create a temporary file in an ILIAS writable directory. More...
 
static createDirectory ($a_dir, $a_mod=0755)
 create directory More...
 
static unzip ($a_file, $overwrite=false, $a_flat=false)
 unzip file More...
 
static zip ($a_dir, $a_file, $compress_content=false)
 zips given directory/file into given zip.file More...
 
static CreateIsoFromFolder ($a_dir, $a_file)
 
static getConvertCmd ()
 get convert command More...
 
static execConvert ($args)
 execute convert command More...
 
static isConvertVersionAtLeast ($a_version)
 Compare convert version numbers. More...
 
static convertImage ( $a_from, $a_to, $a_target_format="", $a_geometry="", $a_background_color="")
 convert image More...
 
static resizeImage ($a_from, $a_to, $a_width, $a_height, $a_constrain_prop=false)
 resize image More...
 
static img ($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
 Build img tag. More...
 
static deliverData ($a_data, $a_filename, $mime="application/octet-stream", $charset="")
 deliver data for download via browser. More...
 
static deliverFile ( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
 deliver file for download via browser. More...
 
static readFile ($a_file)
 there are some known problems with the original readfile method, which sometimes truncates delivered files regardless of php.ini setting (see http://de.php.net/manual/en/function.readfile.php) use this method to avoid these problems. More...
 
static getASCIIFilename ($a_filename)
 convert utf8 to ascii filename More...
 
static htmlentitiesOutsideHTMLTags ($htmlText)
 Encodes HTML entities outside of HTML tags. More...
 
static getJavaPath ()
 get full java path (dir + java command) More...
 
static appendUrlParameterString ($a_url, $a_par, $xml_style=false)
 append URL parameter string ("par1=value1&par2=value2...") to given URL string More...
 
static makeDir ($a_dir)
 creates a new directory and inherits all filesystem permissions of the parent directory You may pass only the name of your new directory or with the entire path or relative path information. More...
 
static makeDirParents ($a_dir)
 Create a new directory and all parent directories. More...
 
static delDir ($a_dir, $a_clean_only=false)
 removes a dir and all its content (subdirs and files) recursively More...
 
static getDir ($a_dir, $a_rec=false, $a_sub_dir="")
 get directory More...
 
static stripSlashesArray ($a_arr, $a_strip_html=true, $a_allow="")
 Strip slashes from array. More...
 
static getClientIdByString ($clientId)
 
static stripSlashesRecursive ($a_data, $a_strip_html=true, $a_allow="")
 Strip slashes from array and sub-arrays. More...
 
static stripSlashes ($a_str, $a_strip_html=true, $a_allow="")
 strip slashes if magic qoutes is enabled More...
 
static stripOnlySlashes ($a_str)
 strip slashes if magic qoutes is enabled More...
 
static secureString ($a_str, $a_strip_html=true, $a_allow="")
 Remove unsecure tags. More...
 
static getSecureTags ()
 
static maskSecureTags ($a_str, $allow_array)
 
static unmaskSecureTags ($a_str, $allow_array)
 
static securePlainString ($a_str)
 Remove unsecure characters from a plain text string. More...
 
static htmlencodePlainString ($a_str, $a_make_links_clickable, $a_detect_goto_links=false)
 Encodes a plain text string into HTML for display in a browser. More...
 
static maskAttributeTag ($a_str, $tag, $tag_att)
 
static unmaskAttributeTag ($a_str, $tag, $tag_att)
 
static maskTag ($a_str, $t, $fix_param="")
 
static unmaskTag ($a_str, $t, $fix_param="")
 
static secureLink ($a_str)
 
static stripScriptHTML ($a_str, $a_allow="", $a_rm_js=true)
 strip only html tags (4.0) from text $allowed contains tags to be allowed, in format tags a and b are allowed todo: needs to be optimized-> not very efficient More...
 
static prepareFormOutput ($a_str, $a_strip=false)
 prepares string output for html forms public More...
 
static secureUrl ($url)
 Prepare secure href attribute. More...
 
static prepareDBString ($a_str)
 prepare a string for db writing (insert/update) More...
 
static removeItemFromDesktops ($a_id)
 removes object from all user's desktops public More...
 
static extractParameterString ($a_parstr)
 extracts parameter value pairs from a string into an array More...
 
static assembleParameterString ($a_par_arr)
 
static dumpString ($a_str)
 dumps ord values of every character of string $a_str More...
 
static yn2tf ($a_yn)
 convert "y"/"n" to true/false More...
 
static tf2yn ($a_tf)
 convert true/false to "y"/"n" More...
 
static sort_func ($a, $b)
 sub-function to sort an array More...
 
static sort_func_numeric ($a, $b)
 sub-function to sort an array More...
 
static sortArray ( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
 sortArray More...
 
static stableSortArray ($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false)
 Sort an aray using a stable sort algorithm, which preveserves the sequence of array elements which have the same sort value. More...
 
static mergesort (&$array, $cmp_function='strcmp')
 
static unique_multi_array ($array, $sub_key)
 Make a multi-dimensional array to have only DISTINCT values for a certain "column". More...
 
static getGDSupportedImageType ($a_desired_type)
 returns the best supported image type by this PHP build More...
 
static deducibleSize ($a_mime)
 checks if mime type is provided by getimagesize() More...
 
static redirect ($a_script)
 
static insertInstIntoID ($a_value)
 inserts installation id into ILIAS id More...
 
static groupNameExists ($a_group_name, $a_id=0)
 checks if group name already exists. More...
 
static getMemString ()
 get current memory usage as string More...
 
static isWindows ()
 check wether the current client system is a windows system More...
 
static escapeShellArg ($a_arg)
 
static escapeShellCmd ($a_arg)
 escape shell cmd More...
 
static execQuoted ($cmd, $args=null)
 exec command and fix spaces on windows More...
 
static excelTime ($year="", $month="", $day="", $hour="", $minute="", $second="")
 Calculates a Microsoft Excel date/time value. More...
 
static renameExecutables ($a_dir)
 Rename uploaded executables for security reasons. More...
 
static getSafeFilename ($a_initial_filename)
 
static rRenameSuffix ($a_dir, $a_old_suffix, $a_new_suffix)
 Renames all files with certain suffix and gives them a new suffix. More...
 
static isAPICall ()
 
static KT_replaceParam ($qstring, $paramName, $paramValue)
 
static replaceUrlParameterString ($url, $parametersArray)
 
static generatePasswords ($a_number)
 Generate a number of passwords. More...
 
static removeTrailingPathSeparators ($path)
 
static array_php2js ($data)
 convert php arrays to javascript arrays More...
 
static virusHandling ($a_file, $a_orig_name="", $a_clean=true)
 scan file for viruses and clean files if possible More...
 
static date_mysql2time ($mysql_date_time)
 make time object from mysql_date_time More...
 
static now ()
 Return current timestamp in Y-m-d H:i:s format. More...
 
static & processCSVRow (&$row, $quoteAll=false, $separator=";", $outUTF8=false, $compatibleWithMSExcel=true)
 Convertes an array for CSV usage. More...
 
static isDN ($a_str)
 
static isIPv4 ($a_str)
 
static _getObjectsByOperations ($a_obj_type, $a_operation, $a_usr_id=0, $limit=0)
 Get all objects of a specific type and check access This function is not recursive, instead it parses the serialized rbac_pa entries. More...
 
static insertLatexImages ($a_text, $a_start='[tex]', $a_end='[/tex]')
 replace [tex]...[/tex] tags with formula image code More...
 
static buildLatexImages ($a_text, $a_dir)
 replace [tex]...[/tex] tags with formula image code for offline use More...
 
static prepareTextareaOutput ($txt_output, $prepare_for_latex_output=false, $omitNl2BrWhenTextArea=false)
 Prepares a string for a text area output where latex code may be in it If the text is HTML-free, CHR(13) will be converted to a line break. More...
 
static isHTML ($a_text)
 Checks if a given string contains HTML or not. More...
 
static period2String (ilDateTime $a_from, $a_to=null)
 Return a string of time period. More...
 
static getFileSizeInfo ()
 
static formatBytes ($size, $decimals=0)
 
static getUploadSizeLimitBytes ()
 
static convertPhpIniSizeValueToBytes ($phpIniSizeValue)
 
static __extractRefId ($role_title)
 extract ref id from role title, e.g. More...
 
static __extractId ($ilias_id, $inst_id)
 extract ref id from role title, e.g. More...
 
static _sortIds ($a_ids, $a_table, $a_field, $a_id_name)
 Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,7),'usr_data','lastname','usr_id') => sorts by lastname. More...
 
static getMySQLTimestamp ($a_ts)
 Get MySQL timestamp in 4.1.x or higher format (yyyy-mm-dd hh:mm:ss) This function converts a timestamp, if MySQL 4.0 is used. More...
 
static quoteArray ($a_array)
 Quotes all members of an array for usage in DB query statement. More...
 
static sendInfo ($a_info="", $a_keep=false)
 Send Info Message to Screen. More...
 
static sendFailure ($a_info="", $a_keep=false)
 Send Failure Message to Screen. More...
 
static sendQuestion ($a_info="", $a_keep=false)
 Send Question to Screen. More...
 
static sendSuccess ($a_info="", $a_keep=false)
 Send Success Message to Screen. More...
 
static infoPanel ($a_keep=true)
 
static dirsize ($directory)
 get size of a directory or a file. More...
 
static randomhash ()
 
static setCookie ($a_cookie_name, $a_cookie_value='', $a_also_set_super_global=true, $a_set_cookie_invalid=false)
 
static _sanitizeFilemame ($a_filename)
 
static _getHttpPath ()
 
static printBacktrace ($a_limit=0)
 printBacktrace More...
 
static parseImportId ($a_import_id)
 Parse an ilias import id Typically of type il_[IL_INST_ID]_[OBJ_TYPE]_[OBJ_ID] returns array( 'orig' => 'il_4800_rolt_123' 'prefix' => 'il' 'inst_id => '4800' 'type' => 'rolt' 'id' => '123'. More...
 
static unserializeSession ($data)
 Returns the unserialized ILIAS session data. More...
 
static formatSize ($size, $a_mode='short', $a_lng=null)
 Returns the specified file size value in a human friendly form. More...
 
static MB2Bytes ($a_value)
 
static Bytes2MB ($a_value)
 
static dbSupportsDisctinctUmlauts ()
 Only temp fix for #8603, should go to db classes. More...
 
static dumpVar ($mixed=null)
 Dump var. More...
 

Static Protected Member Functions

static processConvertVersion ($a_version)
 Parse convert version string, e.g. More...
 
static sanitateTargetPath ($a_target)
 
static _getSizeMagnitude ()
 Returns the magnitude used for size units. More...
 
static fmtFloat ($a_float, $a_decimals=0, $a_dec_point=null, $a_thousands_sep=null, $a_suppress_dot_zero=false)
 format a float More...
 

Static Protected Attributes

static $db_supports_distinct_umlauts
 

Detailed Description

Util class various functions, usage as namespace.

Author
Sascha Hofmann sasch.nosp@m.ahof.nosp@m.mann@.nosp@m.gmx..nosp@m.de
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 21 of file class.ilUtil.php.

Member Function Documentation

◆ __extractId()

static ilUtil::__extractId (   $ilias_id,
  $inst_id 
)
static

extract ref id from role title, e.g.

893 from 'il_122_role_893'

Parameters
iliasid with format like il_<instid>_<objTyp>_ID
intinst_id Installation ID must match inst id in param ilias_id
Returns
id or false

Definition at line 4413 of file class.ilUtil.php.

Referenced by ilGroupXMLParser\__save(), ilObjUser\_getUserData(), ilUserImportParser\extractRolesBeginTag(), ilObjectXMLParser\handlerBeginTag(), ilExerciseXMLParser\handlerBeginTag(), ilFileXMLParser\handlerBeginTag(), ilUserImportParser\importBeginTag(), ilSoapUserAdministration\importUsers(), ilSoapRBACAdministration\parseUserID(), and ilUserImportParser\verifyBeginTag().

4414  {
4415  $test_str = explode('_', $ilias_id);
4416 
4417  if ($test_str[0] == 'il' && $test_str[1] == $inst_id && count($test_str) == 4) {
4418  $test2 = (int) $test_str[3];
4419  return is_numeric($test2) ? (int) $test2 : false;
4420  }
4421  return false;
4422  }
+ Here is the caller graph for this function:

◆ __extractRefId()

static ilUtil::__extractRefId (   $role_title)
static

extract ref id from role title, e.g.

893 from 'il_crs_member_893'

Parameters
role_titlewith format like il_crs_member_893
Returns
ref id or false

Definition at line 4392 of file class.ilUtil.php.

Referenced by ilSoapCourseAdministration\getCoursesForUser(), ilSoapGroupAdministration\getGroupsForUser(), and ilSoapRoleObjectXMLWriter\start().

4393  {
4394  $test_str = explode('_', $role_title);
4395 
4396  if ($test_str[0] == 'il') {
4397  $test2 = (int) $test_str[3];
4398  return is_numeric($test2) ? (int) $test2 : false;
4399  }
4400  return false;
4401  }
+ Here is the caller graph for this function:

◆ _getHttpPath()

static ilUtil::_getHttpPath ( )
static

Definition at line 4706 of file class.ilUtil.php.

References $_SERVER, $DIC, $ilIliasIniFile, and ilContext\usesHTTP().

Referenced by ilMailSummaryNotification\__construct(), ilMail\_getAutoGeneratedMessageString(), ilMail\_getInstallationSignature(), ilObjFileAccessSettingsGUI\getInstallationDocsLink(), ilForumMailNotification\getPermanentLink(), ilChatroomAdminViewGUI\getReadmePath(), ilSoapClient\init(), ilSendMailActivity\processPlaceholders(), ilCronManager\runActiveJobs(), ilDiskQuotaSummaryNotification\send(), and ilCronDeleteInactiveUserReminderMail\sendReminder().

4707  {
4708  global $DIC;
4709 
4710  $ilIliasIniFile = $DIC["ilIliasIniFile"];
4711 
4712  if ($_SERVER['SHELL'] || php_sapi_name() == 'cli' ||
4713  // fallback for windows systems, useful in crons
4714  (class_exists("ilContext") && !ilContext::usesHTTP())) {
4715  return $ilIliasIniFile->readVariable('server', 'http_path');
4716  } else {
4717  return ILIAS_HTTP_PATH;
4718  }
4719  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static usesHTTP()
Uses HTTP aka browser.
global $DIC
Definition: saml.php:7
$ilIliasIniFile
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getObjectsByOperations()

static ilUtil::_getObjectsByOperations (   $a_obj_type,
  $a_operation,
  $a_usr_id = 0,
  $limit = 0 
)
static

Get all objects of a specific type and check access This function is not recursive, instead it parses the serialized rbac_pa entries.

Get all objects of a specific type where access is granted for the given operation. This function does a checkAccess call for all objects in the object hierarchy and return only the objects of the given type. Please note if access is not granted to any object in the hierarchy the function skips all objects under it. Example: You want a list of all Courses that are visible and readable for the user. The function call would be: $your_list = IlUtil::getObjectsByOperation ("crs", "visible"); Lets say there is a course A where the user would have access to according to his role assignments. Course A lies within a group object which is not readable for the user. Therefore course A won't appear in the result list although the queried operations 'read' would actually permit the user to access course A.

public

Parameters
string/arrayobject type 'lm' or array('lm','sahs')
stringpermission to check e.g. 'visible' or 'read'
intid of user in question
intlimit of results. if not given it defaults to search max hits.If limit is -1 limit is unlimited
Returns
array of ref_ids

Definition at line 4033 of file class.ilUtil.php.

References $counter, $DIC, $ilDB, $ilSetting, $ilUser, $query, $res, $row, ilRbacReview\_getOperationIdsByName(), array, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilGroupActionTargetExplorerGUI\__construct(), ilObjSurveyQuestionPool\_getAvailableQuestionpools(), ilObjQuestionPool\_getAvailableQuestionpools(), ilObjTest\_getAvailableTests(), ilECSSettingsGUI\exportImported(), ilGroupUserActionProvider\getCommandAccess(), ilCourseGroupingAssignmentTableGUI\getItems(), ilObjSurvey\getQuestionblocksTable(), ilECSSettingsGUI\imported(), ilWebResourceCronLinkCheck\run(), ilObjectCopyGUI\sourceExists(), ilRBACTest\testRbacUA(), and ilObjectTest\testTreeTrash().

4034  {
4035  global $DIC;
4036 
4037  $ilDB = $DIC->database();
4038  $rbacreview = $DIC->rbac()->review();
4039  $ilAccess = $DIC->access();
4040  $ilUser = $DIC->user();
4041  $ilSetting = $DIC->settings();
4042  $tree = $DIC->repositoryTree();
4043 
4044  if (!is_array($a_obj_type)) {
4045  $where = "WHERE type = " . $ilDB->quote($a_obj_type, "text") . " ";
4046  } else {
4047  $where = "WHERE " . $ilDB->in("type", $a_obj_type, false, "text") . " ";
4048  }
4049 
4050  // limit number of results default is search result limit
4051  if (!$limit) {
4052  $limit = $ilSetting->get('search_max_hits', 100);
4053  }
4054  if ($limit == -1) {
4055  $limit = 10000;
4056  }
4057 
4058  // default to logged in usr
4059  $a_usr_id = $a_usr_id ? $a_usr_id : $ilUser->getId();
4060  $a_roles = $rbacreview->assignedRoles($a_usr_id);
4061 
4062  // Since no rbac_pa entries are available for the system role. This function returns !all! ref_ids in the case the user
4063  // is assigned to the system role
4064  if ($rbacreview->isAssigned($a_usr_id, SYSTEM_ROLE_ID)) {
4065  $query = "SELECT ref_id FROM object_reference obr LEFT JOIN object_data obd ON obr.obj_id = obd.obj_id " .
4066  "LEFT JOIN tree ON obr.ref_id = tree.child " .
4067  $where .
4068  "AND tree = 1";
4069 
4070  $res = $ilDB->query($query);
4071  $counter = 0;
4072  while ($row = $ilDB->fetchObject($res)) {
4073  // Filter recovery folder
4074  if ($tree->isGrandChild(RECOVERY_FOLDER_ID, $row->ref_id)) {
4075  continue;
4076  }
4077 
4078  if ($counter++ >= $limit) {
4079  break;
4080  }
4081 
4082  $ref_ids[] = $row->ref_id;
4083  }
4084  return $ref_ids ? $ref_ids : array();
4085  } // End Administrators
4086 
4087  // Check ownership if it is not asked for edit_permission or a create permission
4088  if ($a_operation == 'edit_permissions' or strpos($a_operation, 'create') !== false) {
4089  $check_owner = ") ";
4090  } else {
4091  $check_owner = "OR owner = " . $ilDB->quote($a_usr_id, "integer") . ") ";
4092  }
4093 
4094  $ops_ids = ilRbacReview::_getOperationIdsByName(array($a_operation));
4095  $ops_id = $ops_ids[0];
4096 
4097  $and = "AND ((" . $ilDB->in("rol_id", $a_roles, false, "integer") . " ";
4098 
4099  $query = "SELECT DISTINCT(obr.ref_id),obr.obj_id,type FROM object_reference obr " .
4100  "JOIN object_data obd ON obd.obj_id = obr.obj_id " .
4101  "LEFT JOIN rbac_pa ON obr.ref_id = rbac_pa.ref_id " .
4102  $where .
4103  $and .
4104  "AND (" . $ilDB->like("ops_id", "text", "%i:" . $ops_id . "%") . " " .
4105  "OR " . $ilDB->like("ops_id", "text", "%:\"" . $ops_id . "\";%") . ")) " .
4106  $check_owner;
4107 
4108  $res = $ilDB->query($query);
4109  $counter = 0;
4110  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
4111  if ($counter >= $limit) {
4112  break;
4113  }
4114 
4115  // Filter objects in recovery folder
4116  if ($tree->isGrandChild(RECOVERY_FOLDER_ID, $row->ref_id)) {
4117  continue;
4118  }
4119 
4120  // Check deleted, hierarchical access ...
4121  if ($ilAccess->checkAccessOfUser($a_usr_id, $a_operation, '', $row->ref_id, $row->type, $row->obj_id)) {
4122  $counter++;
4123  $ref_ids[] = $row->ref_id;
4124  }
4125  }
4126  return $ref_ids ? $ref_ids : array();
4127  }
static _getOperationIdsByName($operations)
get ops_id&#39;s by name.
global $DIC
Definition: saml.php:7
$counter
foreach($_POST as $key=> $value) $res
$ilUser
Definition: imgupload.php:18
$query
Create styles array
The data for the language used.
global $ilSetting
Definition: privfeed.php:17
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getSizeMagnitude()

static ilUtil::_getSizeMagnitude ( )
staticprotected

Returns the magnitude used for size units.

This function always returns the value 1024. Thus the value returned by this function is the same value that Windows and Mac OS X return for a file. The value is a GibiBit, MebiBit, KibiBit or byte unit.

For more information about these units see: http://en.wikipedia.org/wiki/Megabyte

Returns
<type>

Definition at line 4917 of file class.ilUtil.php.

4918  {
4919  return 1024;
4920  }

◆ _sanitizeFilemame()

static ilUtil::_sanitizeFilemame (   $a_filename)
static

Definition at line 4701 of file class.ilUtil.php.

Referenced by ilSoapUtils\distributeMails(), ilFileDataMail\storeAsAttachment(), ilFileDataForumDrafts\storeUploadedFile(), ilFileDataForum\storeUploadedFile(), and ilFileDataMail\storeUploadedFile().

4702  {
4703  return strip_tags(self::stripSlashes($a_filename));
4704  }
+ Here is the caller graph for this function:

◆ _sortIds()

static ilUtil::_sortIds (   $a_ids,
  $a_table,
  $a_field,
  $a_id_name 
)
static

Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,7),'usr_data','lastname','usr_id') => sorts by lastname.

Parameters
arrayArray of ids
stringtable name
stringtable field
stringid name
Returns
array sorted ids

protected

Definition at line 4438 of file class.ilUtil.php.

References $DIC, $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and quoteArray().

Referenced by ilObjRoleGUI\adoptPermObject(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilObjSessionGUI\eventsListObject(), ilSessionOverviewGUI\exportCSV(), ilMemberExport\fetchUsers(), ilAttendanceList\getHTML(), ilCourseGroupingAssignmentTableGUI\getItems(), ilPermissionGUI\initRoleForm(), ilConsultationHoursTableGUI\parse(), ilLDAPSettingsGUI\prepareGlobalRoleSelection(), ilAuthShibbolethSettingsGUI\prepareRoleSelect(), ilLDAPSettingsGUI\prepareRoleSelect(), ilECSSettingsGUI\prepareRoleSelect(), ilRadiusSettingsGUI\prepareRoleSelection(), ilCASSettingsGUI\prepareRoleSelection(), ilSamlSettingsGUI\prepareRoleSelection(), and ilMailSearchCoursesGUI\showMembers().

4439  {
4440  global $DIC;
4441 
4442  $ilDB = $DIC->database();
4443 
4444  if (!$a_ids) {
4445  return array();
4446  }
4447 
4448  // use database to sort user array
4449  $where = "WHERE " . $a_id_name . " IN (";
4450  $where .= implode(",", ilUtil::quoteArray($a_ids));
4451  $where .= ") ";
4452 
4453  $query = "SELECT " . $a_id_name . " FROM " . $a_table . " " .
4454  $where .
4455  "ORDER BY " . $a_field;
4456 
4457  $res = $ilDB->query($query);
4458  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
4459  $ids[] = $row->$a_id_name;
4460  }
4461  return $ids ? $ids : array();
4462  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
Create styles array
The data for the language used.
static quoteArray($a_array)
Quotes all members of an array for usage in DB query statement.
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ appendUrlParameterString()

static ilUtil::appendUrlParameterString (   $a_url,
  $a_par,
  $xml_style = false 
)
static

append URL parameter string ("par1=value1&par2=value2...") to given URL string

Definition at line 2170 of file class.ilUtil.php.

References $url.

Referenced by ilTemplate\addILIASFooter(), ilObjectListGUI\appendRepositoryFrameParameter(), ilCtrl\appendRequestTokenParameterString(), assImagemapQuestionGUI\buildAreaLinkTarget(), ilCaptchaInputGUI\checkInput(), ilAssQuestionHintRequestGUI\confirmRequestCmd(), ilStartUpGUI\doApacheAuthentication(), ilTestExpressPageObjectGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), ilTemplate\fillJavascriptFile(), ilAssQuestionHintsTableGUI\fillRow(), ilSecurImageUtil\getAudioScript(), ilObjQuestionPoolListGUI\getCommandLink(), ilObjTestListGUI\getCommandLink(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\getDeleteHref(), ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI\getEditHref(), ilCtrl\getFormActionByClass(), ilMainMenuGUI\getLanguageSelection(), ilIntLinkRepItemExplorerGUI\getNodeHref(), assImagemapQuestionGUI\getPreviousSolutionConfirmationCheckboxHtml(), ilLMPresentationGUI\getSourcecodeDownloadLink(), ilAuthFrontendCredentialsApache\getTargetUrl(), ilCtrl\getUrlParameters(), ilInternalLinkGUI\renderLink(), ilCtrl\returnToParent(), ilObjContentObjectGUI\setilLMMenu(), ilPCQuestionGUI\setTabs(), and ilNoteGUI\showTargets().

2171  {
2172  $amp = $xml_style
2173  ? "&amp;"
2174  : "&";
2175 
2176  $url = (is_int(strpos($a_url, "?")))
2177  ? $a_url . $amp . $a_par
2178  : $a_url . "?" . $a_par;
2179 
2180  return $url;
2181  }
$url
+ Here is the caller graph for this function:

◆ array_php2js()

static ilUtil::array_php2js (   $data)
static

convert php arrays to javascript arrays

Author
gigi@.nosp@m.orso.nosp@m.ne.co.nosp@m.m public
Parameters
array
Returns
string

Definition at line 3788 of file class.ilUtil.php.

References $data, and array.

3789  {
3790  if (empty($data)) {
3791  $data = array();
3792  }
3793 
3794  foreach ($data as $k=>$datum) {
3795  if (is_null($datum)) {
3796  $data[$k] = 'null';
3797  }
3798  if (is_string($datum)) {
3799  $data[$k] = "'" . $datum . "'";
3800  }
3801  if (is_array($datum)) {
3802  $data[$k] = array_php2js($datum);
3803  }
3804  }
3805 
3806  return "[" . implode(', ', $data) . "]";
3807  }
Create styles array
The data for the language used.
static array_php2js($data)
convert php arrays to javascript arrays

◆ assembleParameterString()

static ilUtil::assembleParameterString (   $a_par_arr)
static

Definition at line 2983 of file class.ilUtil.php.

References $target_arr, and array.

Referenced by ilMediaItem\getParameterString().

2984  {
2985  if (is_array($a_par_arr)) {
2986  $target_arr = array();
2987  foreach ($a_par_arr as $par => $val) {
2988  $target_arr[] = "$par=\"$val\"";
2989  }
2990  $target_str = implode(", ", $target_arr);
2991  }
2992 
2993  return $target_str;
2994  }
$target_arr
Definition: goto.php:47
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ attribsToArray()

static ilUtil::attribsToArray (   $a_str)
static

converts a string of format var1 = "val1" var2 = "val2" ...

into an array

Parameters
string$a_strstring in format: var1 = "val1" var2 = "val2" ...
Returns
array array of variable value pairs

Definition at line 1428 of file class.ilUtil.php.

References array.

Referenced by ilPCParagraph\_input2xml(), ilPCParagraph\handleAjaxContent(), ilPCParagraph\intLinks2xml(), ilPCParagraph\xml2output(), and ilPCParagraphGUI\xml2outputJS().

1429  {
1430  $attribs = array();
1431  while (is_int(strpos($a_str, "="))) {
1432  $eq_pos = strpos($a_str, "=");
1433  $qu1_pos = strpos($a_str, "\"");
1434  $qu2_pos = strpos(substr($a_str, $qu1_pos + 1), "\"") + $qu1_pos + 1;
1435  if (is_int($eq_pos) && is_int($qu1_pos) && is_int($qu2_pos)) {
1436  $var = trim(substr($a_str, 0, $eq_pos));
1437  $val = trim(substr($a_str, $qu1_pos + 1, ($qu2_pos - $qu1_pos) - 1));
1438  $attribs[$var] = $val;
1439  $a_str = substr($a_str, $qu2_pos + 1);
1440  } else {
1441  $a_str = "";
1442  }
1443  }
1444  return $attribs;
1445  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ buildLatexImages()

static ilUtil::buildLatexImages (   $a_text,
  $a_dir 
)
static

replace [tex]...[/tex] tags with formula image code for offline use

Deprecated:

Definition at line 4187 of file class.ilUtil.php.

References ilMathJax\getInstance().

4188  {
4189  include_once './Services/MathJax/classes/class.ilMathJax.php';
4190  return ilMathJax::getInstance()->insertLatexImages($a_text, '[tex]', '[/tex]', $a_dir . '/teximg', './teximg');
4191  }
static getInstance()
Singleton: get instance.
+ Here is the call graph for this function:

◆ Bytes2MB()

static ilUtil::Bytes2MB (   $a_value)
static

Definition at line 5038 of file class.ilUtil.php.

Referenced by ilObjUserGUI\getValues(), and ilObjRoleGUI\readRoleProperties().

5039  {
5040  return ((int) $a_value) / (pow(self::_getSizeMagnitude(), 2));
5041  }
+ Here is the caller graph for this function:

◆ checkFormEmpty()

static ilUtil::checkFormEmpty (   $emptyFields)
static

??? public

Parameters
array
Returns
string

Definition at line 608 of file class.ilUtil.php.

References $key.

609  {
610  $feedback = "";
611 
612  foreach ($emptyFields as $key => $val) {
613  if ($val == "") {
614  if ($feedback != "") {
615  $feedback .= ", ";
616  }
617  $feedback .= $key;
618  }
619  }
620 
621  return $feedback;
622  }
$key
Definition: croninfo.php:18

◆ checkInput()

static ilUtil::checkInput (   $vars)
static

???

Parameters
string

Definition at line 556 of file class.ilUtil.php.

557  {
558  // TO DO:
559  // Diese Funktion soll Formfeldeingaben berprfen (empty und required)
560  }

◆ convertImage()

static ilUtil::convertImage (   $a_from,
  $a_to,
  $a_target_format = "",
  $a_geometry = "",
  $a_background_color = "" 
)
static

convert image

Parameters
string$a_fromsource file
string$a_totarget file
string$a_target_formattarget image file format

Definition at line 1882 of file class.ilUtil.php.

References escapeShellArg(), and execConvert().

Referenced by ilMediaItem\copyOriginal(), assOrderingQuestion\createImageThumbnail(), assOrderingQuestionImport\fromXML(), ilObjMediaObject\generatePreviewPic(), assSingleChoice\generateThumbForFile(), assMultipleChoice\generateThumbForFile(), assKprimChoice\generateThumbForFile(), assOrderingQuestion\generateThumbForFile(), assMatchingQuestion\generateThumbForFile(), ilMediaItem\getThumbnailTarget(), ilCertificate\importCertificate(), ilObjMediaObject\makeThumbnail(), assMatchingQuestion\setImageFile(), ilObjCertificateSettings\uploadBackgroundImage(), and ilCertificate\uploadBackgroundImage().

1888  {
1889  $format_str = ($a_target_format != "")
1890  ? strtoupper($a_target_format) . ":"
1891  : "";
1892  $geometry = "";
1893  if ($a_geometry != "") {
1894  if (is_int(strpos($a_geometry, "x"))) {
1895  $geometry = " -geometry " . $a_geometry . " ";
1896  } else {
1897  $geometry = " -geometry " . $a_geometry . "x" . $a_geometry . " ";
1898  }
1899  }
1900 
1901  $bg_color = ($a_background_color != "")
1902  ? " -background color " . $a_background_color . " "
1903  : "";
1904  $convert_cmd = ilUtil::escapeShellArg($a_from) . " " . $bg_color . $geometry . ilUtil::escapeShellArg($format_str . $a_to);
1905 
1906  ilUtil::execConvert($convert_cmd);
1907  }
static execConvert($args)
execute convert command
static escapeShellArg($a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convertPhpIniSizeValueToBytes()

static ilUtil::convertPhpIniSizeValueToBytes (   $phpIniSizeValue)
static

Definition at line 4354 of file class.ilUtil.php.

4355  {
4356  if (is_numeric($phpIniSizeValue)) {
4357  return $phpIniSizeValue;
4358  }
4359 
4360  $suffix = substr($phpIniSizeValue, -1);
4361  $value = substr($phpIniSizeValue, 0, -1);
4362 
4363  switch (strtoupper($suffix)) {
4364  case 'P':
4365  $value *= 1024;
4366  // no break
4367  case 'T':
4368  $value *= 1024;
4369  // no break
4370  case 'G':
4371  $value *= 1024;
4372  // no break
4373  case 'M':
4374  $value *= 1024;
4375  // no break
4376  case 'K':
4377  $value *= 1024;
4378  break;
4379  }
4380 
4381  return $value;
4382  }

◆ createDirectory()

static ilUtil::createDirectory (   $a_dir,
  $a_mod = 0755 
)
static

create directory

Parameters
string$a_dir
int$a_mod
Deprecated:
in favour of Filesystem::createDir() located at the filesystem service.
See also
::createDir()

Definition at line 1614 of file class.ilUtil.php.

References makeDir().

Referenced by ilObjMediaObject\_createThumbnailDirectory(), ilObjCategoryGUI\_importCategories(), ilObjMediaObject\createDirectory(), ilMediaItem\createWorkDirectory(), ilPropertyFormGUI\getHTML(), ilTempnam(), ilSCORM2004ScoGUI\importSave(), assQuestion\moveUploadedMediaFile(), and ilSetup\unzip().

1615  {
1616  ilUtil::makeDir($a_dir);
1617  //@mkdir($a_dir);
1618  //@chmod($a_dir, $a_mod);
1619  }
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateIsoFromFolder()

static ilUtil::CreateIsoFromFolder (   $a_dir,
  $a_file 
)
static

Definition at line 1787 of file class.ilUtil.php.

References $file, $name, $source, escapeShellArg(), and execQuoted().

Referenced by ilScorm2004Export\buildExportFileISO().

1788  {
1789  $cdir = getcwd();
1790 
1791  $pathinfo = pathinfo($a_dir);
1792  chdir($pathinfo["dirname"]);
1793 
1794  $pathinfo = pathinfo($a_file);
1795  $dir = $pathinfo["dirname"];
1796  $file = $pathinfo["basename"];
1797  $zipcmd = "-r " . ilUtil::escapeShellArg($a_file) . " " . $source;
1798 
1799  $mkisofs = PATH_TO_MKISOFS;
1800  if (!$mkisofs) {
1801  chdir($cdir);
1802  return false;
1803  }
1804 
1805  $name = basename($a_dir);
1807 
1808  $zipcmd = "-r -J -o " . $a_file . " " . $source;
1809  ilUtil::execQuoted($mkisofs, $zipcmd);
1810  chdir($cdir);
1811  return true;
1812  }
if($format !==null) $name
Definition: metadata.php:146
static execQuoted($cmd, $args=null)
exec command and fix spaces on windows
static escapeShellArg($a_arg)
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
$source
Definition: linkback.php:22
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ date_mysql2time()

static ilUtil::date_mysql2time (   $mysql_date_time)
static

make time object from mysql_date_time

Definition at line 3921 of file class.ilUtil.php.

References $tag.

Referenced by ilFileXMLWriter\start().

3922  {
3923  list($datum, $uhrzeit) = explode(" ", $mysql_date_time);
3924  list($jahr, $monat, $tag) = explode("-", $datum);
3925  list($std, $min, $sec) = explode(":", $uhrzeit);
3926  return mktime((int) $std, (int) $min, (int) $sec, (int) $monat, (int) $tag, (int) $jahr);
3927  }
if(function_exists('posix_getuid') &&posix_getuid()===0) if(!array_key_exists('t', $options)) $tag
Definition: cron.php:35
+ Here is the caller graph for this function:

◆ dbSupportsDisctinctUmlauts()

static ilUtil::dbSupportsDisctinctUmlauts ( )
static

Only temp fix for #8603, should go to db classes.

Parameters

Definition at line 5050 of file class.ilUtil.php.

References $DIC, and $ilDB.

Referenced by ilAlphabetInputGUI\fixDBUmlauts().

5051  {
5052  global $DIC;
5053 
5054  if (!isset(self::$db_supports_distinct_umlauts)) {
5055  $ilDB = $DIC->database();
5056  $set = $ilDB->query("SELECT (" . $ilDB->quote("A", "text") . " = " . $ilDB->quote("Ä", "text") . ") t FROM DUAL ");
5057  $rec = $ilDB->fetchAssoc($set);
5058  self::$db_supports_distinct_umlauts = !(bool) $rec["t"];
5059  }
5060 
5061  return self::$db_supports_distinct_umlauts;
5062  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the caller graph for this function:

◆ deducibleSize()

static ilUtil::deducibleSize (   $a_mime)
static

checks if mime type is provided by getimagesize()

Parameters
string$a_mimemime format
Returns
boolean returns true if size is deducible by getimagesize()_DiffEngine

Definition at line 3335 of file class.ilUtil.php.

Referenced by ilObjMediaObject\_determineWidthHeight(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilMediaPoolTableGUI\fillRow(), ilMediaItem\getOriginalSize(), and ilObjMediaPoolSubItemListGUI\parseImage().

3336  {
3337  if (($a_mime == "image/gif") || ($a_mime == "image/jpeg") ||
3338  ($a_mime == "image/png") || ($a_mime == "application/x-shockwave-flash") ||
3339  ($a_mime == "image/tiff") || ($a_mime == "image/x-ms-bmp") ||
3340  ($a_mime == "image/psd") || ($a_mime == "image/iff")) {
3341  return true;
3342  } else {
3343  return false;
3344  }
3345  }
+ Here is the caller graph for this function:

◆ delDir()

static ilUtil::delDir (   $a_dir,
  $a_clean_only = false 
)
static

removes a dir and all its content (subdirs and files) recursively

public

Parameters
string$a_dirdir to delete
bool$a_clean_only
Author
Unknown flexe.nosp@m.r@cu.nosp@m.tephp.nosp@m..com (source: http://www.php.net/rmdir)
Deprecated:
in favour of Filesystem::deleteDir() located at the filesystem service.
See also
::deleteDir()

Definition at line 2305 of file class.ilUtil.php.

References $file, $files, and array.

Referenced by ilMailCronOrphanedMailsDeletionProcessor\__construct(), ilFileDataMail\__deleteAttachmentDirectory(), ilObjTest\_createImportDirectory(), assSingleChoice\afterSyncWithOriginal(), assMatchingQuestion\afterSyncWithOriginal(), ilScorm2004DataSet\afterXmlRecordWriting(), ilUserDataSet\afterXmlRecordWriting(), ilPortfolioHTMLExport\buildExportFile(), ilWikiHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilScorm2004Export\buildExportFileHTML(), ilScorm2004Export\buildExportFileHTMLOne(), ilScorm2004Export\buildExportFileISO(), ilScorm2004Export\buildExportFilePDF(), ilScorm2004Export\buildExportFileSCORM(), ilSurveyExport\buildExportFileXML(), ilObjStyleSheet\cleanExportDirectory(), assOrderingQuestion\cleanImagefiles(), ilMathJax\clearCache(), ilObjFile\clearDataDirectory(), assLongMenu\clearFolder(), ilExAssignment\clearMultiFeedbackDirectory(), ilMobMultiSrtUpload\clearMultiSrtDirectory(), ilObjMediaObject\clearMultiSrtDirectory(), ilSetup\cloneFromSource(), ilTestExportGUI\createTestArchiveExport(), ilUpdateUtils\delDir(), ilObjMediaObject\delete(), ilFileDataForumDrafts\delete(), ilObjFileBasedLM\delete(), ilFileSystemStorage5069\delete(), ilFileSystemStorage\delete(), ilBadgeImageTemplate\delete(), ilExportGUI\delete(), ilObjSurvey\delete(), ilObjContentObject\delete(), ilClient\delete(), SurveyQuestion\delete(), ilObjSAHSLearningModule\delete(), assQuestion\delete(), ilObjSurveyQuestionPool\deleteAllData(), ilCertificate\deleteCertificate(), ilFileDataCourse\deleteDirectory(), ilFileSystemStorage5069\deleteDirectory(), ilFileSystemStorage\deleteDirectory(), ilObjSurveyQuestionPoolGUI\deleteExportFileObject(), ilFileSystemGUI\deleteFile(), ilObjMediaObjectGUI\deleteFileObject(), ilExAssignment\deleteGlobalFeedbackFile(), ilObjQuestionPool\deleteQuestionpool(), ilBadge\deleteStaticFiles(), assQuestion\deleteSuggestedSolutions(), ilObjSurvey\deleteSurveyRecord(), ilZipBackgroundTaskHandler\deleteTempFiles(), ilObjTest\deleteTest(), ilObjFile\deleteVersions(), ilCertificate\deliverExportFileXML(), ilFileDataForumDrafts\deliverZipFile(), ilFileDataForum\deliverZipFile(), ilObjFile\doDelete(), ilExSubmission\downloadAllAssignmentFiles(), ilObjFolder\downloadFolder(), ilExSubmission\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilExport\exportEntity(), ilObjGlossary\exportHTML(), ilObjFileBasedLMGUI\exportHTML(), ilObjContentObject\exportHTML(), ilExportContainer\exportObject(), ilExport\exportObject(), ilObjUser\exportPersonalData(), ilObjContentObject\exportSCORM(), ilCloudPluginUploadGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilExAssignment\handleGlobalFeedbackFileUpload(), ilObjUserFolderGUI\importCancelledObject(), ilCertificate\importCertificate(), ilExcCriteriaFile\importFromPeerReviewForm(), ilObjContentObject\importFromZipFile(), ilImport\importObject(), ilObjSurveyQuestionPool\importObject(), ilObjSurvey\importObject(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjUserFolderGUI\importUsersObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilScormAiccImporter\importXmlRepresentation(), assMultipleChoice\isForcedEmptySolution(), ilTestExportGUI\listExportFiles(), ilZipBackgroundTaskHandler\process(), ilExSubmission\processUploadedZipFile(), ilFileUtils\processZipFile(), assKprimChoice\removeAnswerImage(), ilAssFileUploadUploadsExporter\removeFileUploadCollection(), ilObjTest\removeTestResultsByActiveIds(), ilCalendarZipJob\run(), assSingleChoice\savePreviewData(), ilObjFileGUI\saveUnzip(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), assSingleChoice\syncImages(), assMultipleChoice\syncImages(), assQuestion\syncSuggestedSolutionFiles(), ilFileDataImportMail\unlinkLast(), unzip(), ilSetup\updateNewClient(), ilObjHelpSettings\uploadHelpModule(), ilExAssignment\uploadMultiFeedbackFile(), ilMobMultiSrtUpload\uploadMultipleSubtitleFile(), ilObjMediaObject\uploadMultipleSubtitleFile(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjQuestionPoolGUI\uploadQplObject(), and ilObjTestGUI\uploadTstObject().

2306  {
2307  if (!is_dir($a_dir) || is_int(strpos($a_dir, ".."))) {
2308  return;
2309  }
2310 
2311  $current_dir = opendir($a_dir);
2312 
2313  $files = array();
2314 
2315  // this extra loop has been necessary because of a strange bug
2316  // at least on MacOS X. A looped readdir() didn't work
2317  // correctly with larger directories
2318  // when an unlink happened inside the loop. Getting all files
2319  // into the memory first solved the problem.
2320  while ($entryname = readdir($current_dir)) {
2321  $files[] = $entryname;
2322  }
2323 
2324  foreach ($files as $file) {
2325  if (is_dir($a_dir . "/" . $file) and ($file != "." and $file!="..")) {
2326  ilUtil::delDir($a_dir . "/" . $file);
2327  } elseif ($file != "." and $file != "..") {
2328  unlink($a_dir . "/" . $file);
2329  }
2330  }
2331 
2332  closedir($current_dir);
2333  if (!$a_clean_only) {
2334  @rmdir($a_dir);
2335  }
2336  }
$files
Definition: add-vimline.php:18
Create styles array
The data for the language used.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
+ Here is the caller graph for this function:

◆ deliverData()

static ilUtil::deliverData (   $a_data,
  $a_filename,
  $mime = "application/octet-stream",
  $charset = "" 
)
static

deliver data for download via browser.

We need to set the following headers to make downloads work using IE in HTTPS mode.

Definition at line 1966 of file class.ilUtil.php.

References $ascii_filename, exit, getASCIIFilename(), ilHTTPS\getInstance(), and header.

Referenced by ilTestExport\aggregatedResultsToCSV(), ilCertificate\createPreview(), ilMemberExportGUI\deliverData(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilPublicUserProfileGUI\deliverVCard(), ilObjLanguageFolderGUI\downloadDeprecatedObject(), ilMemberExportGUI\downloadExportFile(), ilObjSystemFolderGUI\downloadJavaServerIniObject(), ilObjLanguageExtGUI\downloadObject(), ilBookmarkAdministrationGUI\export(), ilSurveyParticipantsGUI\exportAllCodesObject(), ilAccountCodesGUI\exportCodes(), ilRegistrationSettingsGUI\exportCodes(), ilSurveyParticipantsGUI\exportCodesObject(), ilSessionOverviewGUI\exportCSV(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilSurveyEvaluationGUI\exportEvaluationUser(), ilForumExportGUI\exportHTML(), ilObjLinkResourceGUI\exportHTML(), ilECSSettingsGUI\exportImported(), ilObjAssessmentFolderGUI\exportLogObject(), ilNoteGUI\exportNotesHTML(), ilECSSettingsGUI\exportReleased(), ilDidacticTemplateSettingsGUI\exportTemplate(), ilTestExport\exportToCSV(), ilCalendarRemoteAccessHandler\handleRequest(), ilCertificate\outCertificate(), ilPageObject\send_paragraph(), and ilObjSCORMLearningModule\sendExportFile().

1967  {
1968  $disposition = "attachment"; // "inline" to view file in browser or "attachment" to download to hard disk
1969  // $mime = "application/octet-stream"; // or whatever the mime type is
1970 
1971  include_once './Services/Http/classes/class.ilHTTPS.php';
1972 
1973  //if($_SERVER['HTTPS'])
1974  if (ilHTTPS::getInstance()->isDetected()) {
1975 
1976  // Added different handling for IE and HTTPS => send pragma after content informations
1980  #header("Pragma: ");
1981  #header("Cache-Control: ");
1982  #header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
1983  #header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
1984  #header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
1985  #header("Cache-Control: post-check=0, pre-check=0", false);
1986  } elseif ($disposition == "attachment") {
1987  header("Cache-control: private");
1988  } else {
1989  header("Cache-Control: no-cache, must-revalidate");
1990  header("Pragma: no-cache");
1991  }
1992 
1994 
1995  if (strlen($charset)) {
1996  $charset = "; charset=$charset";
1997  }
1998  header("Content-Type: $mime$charset");
1999  header("Content-Disposition:$disposition; filename=\"" . $ascii_filename . "\"");
2000  header("Content-Description: " . $ascii_filename);
2001  header("Content-Length: " . (string) (strlen($a_data)));
2002 
2003  //if($_SERVER['HTTPS'])
2004  if (ilHTTPS::getInstance()->isDetected()) {
2005  header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
2006  header('Pragma: public');
2007  }
2008 
2009  header("Connection: close");
2010  echo $a_data;
2011  exit;
2012  }
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
Add a drawing to the header
Definition: 04printing.php:69
$ascii_filename
Definition: metadata.php:317
static getInstance()
Get https instance.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deliverFile()

static ilUtil::deliverFile (   $a_file,
  $a_filename,
  $a_mime = '',
  $isInline = false,
  $removeAfterDelivery = false,
  $a_exit_after = true 
)
static

deliver file for download via browser.

Parameters
$mimeMime of the file
$isInlineSet this to true, if the file shall be shown in browser

Definition at line 2022 of file class.ilUtil.php.

References $DIC, ilFileDelivery\DISP_ATTACHMENT, and ilFileDelivery\DISP_INLINE.

Referenced by ilObjTestVerificationGUI\deliver(), ilObjCourseVerificationGUI\deliver(), ilObjExerciseVerificationGUI\deliver(), ilObjSCORMVerificationGUI\deliver(), ilZipBackgroundTaskHandler\deliver(), ilCertificate\deliverExportFileXML(), ilWikiUserHTMLExport\deliverFile(), ilFileDataForumDrafts\deliverFile(), ilFileDataForum\deliverFile(), ilMailFolderGUI\deliverFile(), assFileUpload\deliverFileUploadZIPFile(), ilBookingObjectGUI\deliverInfo(), ilNewsItem\deliverMobFile(), ilHtmlToPdfTransformerFactory\deliverPDF(), ilBookingObjectGUI\deliverPostFile(), ilFileDataForumDrafts\deliverZipFile(), ilFileDataForum\deliverZipFile(), ilExportGUI\download(), ilExSubmission\downloadAllAssignmentFiles(), ilCourseArchivesGUI\downloadArchives(), ilIndividualAssessmentMemberGUI\downloadAttachment(), ilBlogExerciseGUI\downloadExcAssFile(), ilPortfolioExerciseGUI\downloadExcAssFile(), ilBlogExerciseGUI\downloadExcSubFile(), ilPortfolioExerciseGUI\downloadExcSubFile(), ilSCORM2004ScoGUI\downloadExportFile(), ilGlossaryPresentationGUI\downloadExportFile(), ilObjSCORM2004LearningModuleGUI\downloadExportFile(), ilLMPresentationGUI\downloadExportFile(), ilObjSurveyQuestionPoolGUI\downloadExportFileObject(), ilObjUserFolderGUI\downloadExportFileObject(), ilExSubmissionGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilFileSystemGUI\downloadFile(), ilObjIndividualAssessmentGUI\downloadFileObject(), ilExSubmissionGUI\downloadFileObject(), ilObjFolder\downloadFolder(), ilObjFolderGUI\downloadFolderObject(), ilExSubmissionGUI\downloadGlobalFeedbackFileObject(), ilExAssignmentEditorGUI\downloadGlobalFeedbackFileObject(), ilExSubmission\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilObjContentObjectGUI\downloadPDFFile(), ilExPeerReviewGUI\downloadPeerReviewObject(), ilSCORM2004ScoGUI\downloadResource(), ilExSubmission\downloadSingleFile(), ilSAHSEditGUI\executeCommand(), ilObjPortfolioBaseGUI\export(), ilObjBlogGUI\export(), ilPageLayoutAdministrationGUI\exportLayout(), ilObjQuestionPoolGUI\exportQuestionObject(), ilObjStyleSheetGUI\exportStyleObject(), ilTestExportGUI\listExportFiles(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), ilDclRecordListGUI\sendFile(), ilObjSessionGUI\sendFileObject(), ilObjCourseGUI\sendFileObject(), ilExAssignment\sendMultiFeedbackStructureFile(), and ilObjUser\sendPersonalDataFile().

2029  {
2030  global $DIC;
2031  // should we fail silently?
2032  if (!file_exists($a_file)) {
2033  return false;
2034  }
2035  $delivery = new ilFileDelivery($a_file);
2036 
2037  if ($isInline) {
2038  $delivery->setDisposition(ilFileDelivery::DISP_INLINE);
2039  } else {
2040  $delivery->setDisposition(ilFileDelivery::DISP_ATTACHMENT);
2041  }
2042 
2043  if (strlen($a_mime)) {
2044  $delivery->setMimeType($a_mime);
2045  }
2046 
2047  $delivery->setDownloadFileName($a_filename);
2048  $delivery->setConvertFileNameToAsci((bool) !$DIC['ilClientIniFile']->readVariable('file_access', 'disable_ascii'));
2049  $delivery->setDeleteFile($removeAfterDelivery);
2050  $delivery->deliver();
2051  }
global $DIC
Definition: saml.php:7
Class ilFileDelivery.
+ Here is the caller graph for this function:

◆ dirsize()

static ilUtil::dirsize (   $directory)
static

get size of a directory or a file.

Parameters
stringpath to a directory or a file
Returns
integer. Returns -1, if the directory does not exist.

Definition at line 4624 of file class.ilUtil.php.

References $size.

Referenced by ilObjMediaCastAccess\_lookupDiskUsage(), ilObjSAHSLearningModuleAccess\_lookupDiskUsage(), ilObjFileBasedLMAccess\_lookupDiskUsage(), ilObjFileAccess\_lookupDiskUsage(), ilFileDataMail\_lookupDiskUsageOfUser(), ilExSubmission\downloadAllAssignmentFiles(), ilMathJax\getCacheSize(), ilObjPortfolio\handleQuotaUpdate(), ilVerificationObject\handleQuotaUpdate(), ilObjBlog\handleQuotaUpdate(), ilCronPersonalWorkspaceRecalculateQuota\quotaHandleFile(), ilCronPersonalWorkspaceRecalculateQuota\quotaHandleFileStorage(), ilCronPersonalWorkspaceRecalculateQuota\quotaHandleMob(), and ilCronPersonalWorkspaceRecalculateQuota\quotaHandleVerification().

4625  {
4626  $size = 0;
4627  if (!is_dir($directory)) {
4628  // BEGIN DiskQuota Suppress PHP warning when attempting to determine
4629  // dirsize of non-existing directory
4630  $size = @filesize($directory);
4631  // END DiskQuota Suppress PHP warning.
4632  return ($size === false) ? -1 : $size;
4633  }
4634  if ($DIR = opendir($directory)) {
4635  while (($dirfile = readdir($DIR)) !== false) {
4636  if (is_link($directory . DIRECTORY_SEPARATOR . $dirfile) || $dirfile == '.' || $dirfile == '..') {
4637  continue;
4638  }
4639  if (is_file($directory . DIRECTORY_SEPARATOR . $dirfile)) {
4640  $size += filesize($directory . DIRECTORY_SEPARATOR . $dirfile);
4641  } elseif (is_dir($directory . DIRECTORY_SEPARATOR . $dirfile)) {
4642  // BEGIN DiskQuota: dirsize is not a global function anymore
4643  $dirSize = ilUtil::dirsize($directory . DIRECTORY_SEPARATOR . $dirfile);
4644  // END DiskQuota: dirsize is not a global function anymore
4645  if ($dirSize >= 0) {
4646  $size += $dirSize;
4647  } else {
4648  return -1;
4649  }
4650  }
4651  }
4652  closedir($DIR);
4653  }
4654  return $size;
4655  }
$size
Definition: RandomTest.php:84
static dirsize($directory)
get size of a directory or a file.
+ Here is the caller graph for this function:

◆ dumpString()

static ilUtil::dumpString (   $a_str)
static

dumps ord values of every character of string $a_str

Definition at line 3002 of file class.ilUtil.php.

References $i, and $ret.

3003  {
3004  $ret = $a_str . ": ";
3005  for ($i=0; $i<strlen($a_str); $i++) {
3006  $ret.= ord(substr($a_str, $i, 1)) . " ";
3007  }
3008  return $ret;
3009  }
$ret
Definition: parser.php:6
$i
Definition: disco.tpl.php:19

◆ dumpVar()

static ilUtil::dumpVar (   $mixed = null)
static

Dump var.

Parameters
null$mixed

Definition at line 5069 of file class.ilUtil.php.

5070  {
5071  echo '<pre>';
5072  var_dump($mixed);
5073  echo '</pre>';
5074  }

◆ escapeShellArg()

static ilUtil::escapeShellArg (   $a_arg)
static

◆ escapeShellCmd()

static ilUtil::escapeShellCmd (   $a_arg)
static

escape shell cmd

public

Parameters

Definition at line 3467 of file class.ilUtil.php.

Referenced by ilImagemapPreview\createPreview().

3468  {
3469  if (ini_get('safe_mode') == 1) {
3470  return $a_arg;
3471  }
3472  setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8"); // fix for PHP escapeshellcmd bug. See: http://bugs.php.net/bug.php?id=45132
3473  return escapeshellcmd($a_arg);
3474  }
+ Here is the caller graph for this function:

◆ excelTime()

static ilUtil::excelTime (   $year = "",
  $month = "",
  $day = "",
  $hour = "",
  $minute = "",
  $second = "" 
)
static

Calculates a Microsoft Excel date/time value.

Calculates a Microsoft Excel date/time value (nr of days after 1900/1/1 0:00) for a given date and time. The function only accepts dates after 1970/1/1, because the unix timestamp functions used in the function are starting with that date. If you don't enter parameters the date/time value for the actual date/time will be calculated.

static function

Parameters
integer$yearYear
integer$monthMonth
integer$dayDay
integer$hourHour
integer$minuteMinute
integer$secondSecond
Returns
float The Microsoft Excel date/time value public

Definition at line 3538 of file class.ilUtil.php.

References time.

3539  {
3540  $starting_time = mktime(0, 0, 0, 1, 2, 1970);
3541  if (strcmp("$year$month$day$hour$minute$second", "") == 0) {
3542  $target_time = time();
3543  } else {
3544  if ($year < 1970) {
3545  return 0;
3546  }
3547  }
3548  $target_time = mktime($hour, $minute, $second, $month, $day, $year);
3549  $difference = $target_time - $starting_time;
3550  $days = (($difference - ($difference % 86400)) / 86400);
3551  $difference = $difference - ($days * 86400) + 3600;
3552 
3553  // #15343 - using a global locale leads to , instead of . for (implicit) floats
3554  return str_replace(",", ".", ($days + 25570 + ($difference / 86400)));
3555  }
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.

◆ execConvert()

static ilUtil::execConvert (   $args)
static

execute convert command

Parameters
string$args

Definition at line 1834 of file class.ilUtil.php.

References execQuoted().

Referenced by ilObjUser\_uploadPersonalPicture(), convertImage(), ilImagemapPreview\createPreview(), ilPreviewRenderer\createPreviewImage(), ilObjMediaObject\generatePreviewPic(), resizeImage(), ilObjPortfolioBase\uploadImage(), ilObjBlog\uploadImage(), ilObjPoll\uploadImage(), ilPersonalProfileGUI\uploadUserPicture(), and ilObjUserGUI\uploadUserPictureObject().

1835  {
1836  ilUtil::execQuoted(PATH_TO_CONVERT, $args);
1837  }
static execQuoted($cmd, $args=null)
exec command and fix spaces on windows
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ execQuoted()

static ilUtil::execQuoted (   $cmd,
  $args = null 
)
static

exec command and fix spaces on windows

Parameters
string$cmd
string$args
Returns
array

Definition at line 3485 of file class.ilUtil.php.

References $DIC, and isWindows().

Referenced by CreateIsoFromFolder(), ilGitInformation\detect(), ilFFmpeg\exec(), execConvert(), ilPhantomJSRenderer\generatePDF(), isConvertVersionAtLeast(), ilCountPDFPagesPreProcessors\process(), ilGhostscriptRenderer\renderImages(), unzip(), and zip().

3486  {
3487  global $DIC;
3488 
3489  if (ilUtil::isWindows() && strpos($cmd, " ") !== false && substr($cmd, 0, 1) !== '"') {
3490  // cmd won't work without quotes
3491  $cmd = '"' . $cmd . '"';
3492  if ($args) {
3493  // args are also quoted, workaround is to quote the whole command AGAIN
3494  // was fixed in php 5.2 (see php bug #25361)
3495  if (version_compare(phpversion(), "5.2", "<") && strpos($args, '"') !== false) {
3496  $cmd = '"' . $cmd . " " . $args . '"';
3497  }
3498  // args are not quoted or php is fixed, just append
3499  else {
3500  $cmd .= " " . $args;
3501  }
3502  }
3503  }
3504  // nothing todo, just append args
3505  elseif ($args) {
3506  $cmd .= " " . $args;
3507  }
3508 
3509  exec($cmd, $arr);
3510 
3511  $DIC->logger()->root()->debug("ilUtil::execQuoted: " . $cmd . ".");
3512 
3513  return $arr;
3514  }
global $DIC
Definition: saml.php:7
static isWindows()
check wether the current client system is a windows system
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extractParameterString()

static ilUtil::extractParameterString (   $a_parstr)
static

extracts parameter value pairs from a string into an array

Parameters
string$a_parstrparameter string (format: par1="value1", par2="value2", ...)
Returns
array array of parameter value pairs

Definition at line 2935 of file class.ilUtil.php.

References $ok, and array.

Referenced by ilPCMediaObjectGUI\saveAliasProperties(), and ilMediaItem\setParameters().

2936  {
2937  // parse parameters in array
2938  $par = array();
2939  $ok=true;
2940  while (($spos=strpos($a_parstr, "=")) && $ok) {
2941  // extract parameter
2942  $cpar = substr($a_parstr, 0, $spos);
2943  $a_parstr = substr($a_parstr, $spos, strlen($a_parstr)-$spos);
2944  while (substr($cpar, 0, 1)=="," ||substr($cpar, 0, 1)==" " || substr($cpar, 0, 1)==chr(13) || substr($cpar, 0, 1)==chr(10)) {
2945  $cpar = substr($cpar, 1, strlen($cpar)-1);
2946  }
2947  while (substr($cpar, strlen($cpar)-1, 1)==" " || substr($cpar, strlen($cpar)-1, 1)==chr(13) || substr($cpar, strlen($cpar)-1, 1)==chr(10)) {
2948  $cpar = substr($cpar, 0, strlen($cpar)-1);
2949  }
2950 
2951  // parameter name should only
2952  $cpar_old = "";
2953  while ($cpar != $cpar_old) {
2954  $cpar_old = $cpar;
2955  $cpar = preg_replace("/[^a-zA-Z0-9_]/i", "", $cpar);
2956  }
2957 
2958  // extract value
2959  if ($cpar != "") {
2960  if ($spos=strpos($a_parstr, "\"")) {
2961  $a_parstr = substr($a_parstr, $spos+1, strlen($a_parstr)-$spos);
2962  $spos=strpos($a_parstr, "\"");
2963  if (is_int($spos)) {
2964  $cval = substr($a_parstr, 0, $spos);
2965  $par[$cpar]=$cval;
2966  $a_parstr = substr($a_parstr, $spos+1, strlen($a_parstr)-$spos-1);
2967  } else {
2968  $ok=false;
2969  }
2970  } else {
2971  $ok=false;
2972  }
2973  }
2974  }
2975 
2976  if ($ok) {
2977  return $par;
2978  } else {
2979  return false;
2980  }
2981  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ fmtFloat()

static ilUtil::fmtFloat (   $a_float,
  $a_decimals = 0,
  $a_dec_point = null,
  $a_thousands_sep = null,
  $a_suppress_dot_zero = false 
)
staticprotected

format a float

this functions takes php's number_format function and formats the given value with appropriate thousand and decimal separator. public

Parameters
floatthe float to format
integercount of decimals
integerdisplay thousands separator
booleanwhether .0 should be suppressed
Returns
string formatted number

Definition at line 4935 of file class.ilUtil.php.

References $DIC, $lng, and $txt.

4936  {
4937  global $DIC;
4938 
4939  $lng = $DIC->language();
4940 
4941  if ($a_dec_point == null) {
4942  {
4943  $a_dec_point = ".";
4944  }
4945  }
4946  if ($a_dec_point == '-lang_sep_decimal-') {
4947  $a_dec_point = ".";
4948  }
4949 
4950  if ($a_thousands_sep == null) {
4951  $a_thousands_sep = $lng->txt('lang_sep_thousand');
4952  }
4953  if ($a_thousands_sep == '-lang_sep_thousand-') {
4954  $a_thousands_sep = ",";
4955  }
4956 
4957  $txt = number_format($a_float, $a_decimals, $a_dec_point, $a_thousands_sep);
4958 
4959  // remove trailing ".0"
4960  if (($a_suppress_dot_zero == 0 || $a_decimals == 0)
4961  && substr($txt, -2) == $a_dec_point . '0'
4962  ) {
4963  $txt = substr($txt, 0, strlen($txt) - 2);
4964  }
4965  if ($a_float == 0 and $txt == "") {
4966  $txt = "0";
4967  }
4968 
4969  return $txt;
4970  }
global $DIC
Definition: saml.php:7
$txt
Definition: error.php:11
global $lng
Definition: privfeed.php:17

◆ formatBytes()

static ilUtil::formatBytes (   $size,
  $decimals = 0 
)
static

Definition at line 4333 of file class.ilUtil.php.

References $i, $size, and array.

4334  {
4335  $unit = array('', 'K', 'M', 'G', 'T', 'P');
4336 
4337  for ($i = 0, $maxUnits = count($unit); $size >= 1024 && $i <= $maxUnits; $i++) {
4338  $size /= 1024;
4339  }
4340 
4341  return round($size, $decimals) . $unit[$i];
4342  }
$size
Definition: RandomTest.php:84
Create styles array
The data for the language used.
$i
Definition: disco.tpl.php:19

◆ formatSize()

static ilUtil::formatSize (   $size,
  $a_mode = 'short',
  $a_lng = null 
)
static

Returns the specified file size value in a human friendly form.

By default, the oder of magnitude 1024 is used. Thus the value returned by this function is the same value that Windows and Mac OS X return for a file. The value is a GibiBig, MebiBit, KibiBit or byte unit.

For more information about these units see: http://en.wikipedia.org/wiki/Megabyte

Parameters
integersize in bytes
stringmode: "short" is useful for display in the repository "long" is useful for display on the info page of an object
ilLanguageThe language object, or null if you want to use the system language.

Definition at line 4988 of file class.ilUtil.php.

References $DIC, $lng, $result, and $size.

Referenced by ilFileVersionTableGUI\__construct(), ilInfoScreenGUI\addObjectSections(), ilMemberExportFileTableGUI\fillRow(), ilDclExportTableGUI\fillRow(), ilLMDownloadTableGUI\fillRow(), ilExportTableGUI\fillRow(), ilFileSystemTableGUI\fillRow(), ilMailAttachmentTableGUI\formatValue(), ilObjFileListGUI\getProperties(), ilDiskQuotaHandler\getStatusLegend(), ilObjUserGUI\getValues(), ilObjFileGUI\infoScreenForward(), ilFolderDownloadBackgroundTaskHandler\init(), outMobImageParams(), ilDiskQuotaReminderMail\replacePlaceholders(), ilMailAttachmentGUI\saveAttachments(), ilDiskQuotaSummaryNotification\send(), ilMailFormGUI\showForm(), ilMailAttachmentGUI\uploadFile(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().

4989  {
4990  global $DIC;
4991 
4992  $lng = $DIC->language();
4993  if ($a_lng == null) {
4994  $a_lng = $lng;
4995  }
4996 
4997  $mag = self::_getSizeMagnitude();
4998 
4999  if ($size >= $mag * $mag * $mag) {
5000  $scaled_size = $size / $mag / $mag / $mag;
5001  $scaled_unit = 'lang_size_gb';
5002  } else {
5003  if ($size >= $mag * $mag) {
5004  $scaled_size = $size / $mag / $mag;
5005  $scaled_unit = 'lang_size_mb';
5006  } else {
5007  if ($size >= $mag) {
5008  $scaled_size = $size / $mag;
5009  $scaled_unit = 'lang_size_kb';
5010  } else {
5011  $scaled_size = $size;
5012  $scaled_unit = 'lang_size_bytes';
5013  }
5014  }
5015  }
5016 
5017  $result = self::fmtFloat($scaled_size, ($scaled_unit
5018  == 'lang_size_bytes') ? 0 : 1, $a_lng->txt('lang_sep_decimal'), $a_lng->txt('lang_sep_thousand'), true)
5019  . ' ' . $a_lng->txt($scaled_unit);
5020  if ($a_mode == 'long' && $size > $mag) {
5021  $result .= ' (' . self::fmtFloat($size, 0, $a_lng->txt('lang_sep_decimal'), $a_lng->txt('lang_sep_thousand')) . ' '
5022  . $a_lng->txt('lang_size_bytes') . ')';
5023  }
5024 
5025  return $result;
5026  }
$size
Definition: RandomTest.php:84
$result
global $DIC
Definition: saml.php:7
global $lng
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ formCheckbox()

static ilUtil::formCheckbox (   $checked,
  $varname,
  $value,
  $disabled = false 
)
static

??? public

Parameters
string
string
string
booleandisabled checked checkboxes (default: false)
Returns
string

Definition at line 428 of file class.ilUtil.php.

Referenced by ilObjCategoryGUI\_importCategoriesForm(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilECSNodeMappingCmsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilWorkspaceExplorer\buildFormItem(), ilObjForumGUI\cloneWizardPageObject(), ilForumModeratorsGUI\detachModeratorRole(), ilRegistrationSettingsGUI\editEmailAssignments(), ilRegistrationSettingsGUI\editRoles(), ilQuestionPoolImportVerificationTableGUI\fillRow(), ilTestPersonalDefaultSettingsTableGUI\fillRow(), ilForumDraftsTableGUI\fillRow(), ilMailAttachmentTableGUI\fillRow(), ilMarkSchemaTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilBuddySystemRelationsTableGUI\fillRow(), ilForumTopicTableGUI\fillRow(), ilMailTemplateTableGUI\formatCellValue(), ilStartUpGUI\getAcceptance(), ilForumSettingsGUI\getUserNotificationTableData(), ilObjRoleGUI\listUsersRoleObject(), ilNestedListInputGUI\render(), ilMailingListsGUI\showMailingLists(), ilMailingListsGUI\showMembersList(), ilMailSearchGUI\showResults(), and ilCourseArchivesGUI\view().

429  {
430  $str = "<input type=\"checkbox\" name=\"" . $varname . "\"";
431 
432  if ($checked == 1) {
433  $str .= " checked=\"checked\"";
434  }
435 
436  if ($disabled) {
437  $str .= " disabled=\"disabled\"";
438  }
439 
440  $array_var = false;
441 
442  if (substr($varname, -2) == "[]") {
443  $array_var = true;
444  }
445 
446  // if varname ends with [], use varname[-2] + _ + value as id tag (e.g. "user_id[]" => "user_id_15")
447  if ($array_var) {
448  $varname_id = substr($varname, 0, -2) . "_" . $value;
449  } else {
450  $varname_id = $varname;
451  }
452 
453  // dirty removal of other "[]" in string
454  $varname_id = str_replace("[", "_", $varname_id);
455  $varname_id = str_replace("]", "", $varname_id);
456 
457  $str .= " value=\"" . $value . "\" id=\"" . $varname_id . "\" />\n";
458 
459  return $str;
460  }
+ Here is the caller graph for this function:

◆ formDisabledRadioButton()

static ilUtil::formDisabledRadioButton (   $checked,
  $varname,
  $value,
  $disabled 
)
static

???

Parameters
string

Definition at line 473 of file class.ilUtil.php.

474  {
475  if ($disabled) {
476  $str = "<input disabled type=\"radio\" name=\"" . $varname . "\"";
477  } else {
478  $str = "<input type=\"radio\" name=\"" . $varname . "\"";
479  }
480  if ($checked == 1) {
481  $str .= " checked=\"checked\"";
482  }
483 
484  $str .= " value=\"" . $value . "\"";
485  $str .= " id=\"" . $value . "\" />\n";
486 
487  return $str;
488  }

◆ formInput()

static ilUtil::formInput (   $varname,
  $value,
  $disabled = false 
)
static

create html input area

Parameters
string$varnamename of form variable
string$valuevalue and id of input
boolean$disabledif true, input appears disabled
Returns
string string

Definition at line 535 of file class.ilUtil.php.

Referenced by ilChatroomSmiliesTableGUI\fillRow().

536  {
537  $str = "<input type=\"input\" name=\"" . $varname . "\"";
538  if ($disabled) {
539  $str .= " disabled";
540  }
541 
542  $str .= " value=\"" . $value . "\"";
543 
544  $str .= " id=\"" . $value . "\" />\n";
545 
546  return $str;
547  }
+ Here is the caller graph for this function:

◆ formRadioButton()

static ilUtil::formRadioButton (   $checked,
  $varname,
  $value,
  $onclick = null,
  $disabled = false 
)
static

??? public

Parameters
string
string
string
Returns
string

Definition at line 501 of file class.ilUtil.php.

Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilWorkspaceExplorer\buildFormItem(), and ilForumTopicTableGUI\fillRow().

502  {
503  $str = '<input ';
504 
505  if ($onclick) {
506  $str .= ('onclick="' . $onclick . '"');
507  }
508 
509  $str .= (" type=\"radio\" name=\"" . $varname . "\"");
510  if ($checked == 1) {
511  $str .= " checked=\"checked\"";
512  }
513 
514  if ($disabled) {
515  $str .= " disabled=\"disabled\"";
516  }
517 
518  $str .= " value=\"" . $value . "\"";
519 
520  $str .= " id=\"" . $value . "\" />\n";
521 
522  return $str;
523  }
+ Here is the caller graph for this function:

◆ formSelect()

static ilUtil::formSelect (   $selected,
  $varname,
  $options,
  $multiple = false,
  $direct_text = false,
  $size = "0",
  $style_class = "",
  $attribs = "",
  $disabled = false 
)
static

Builds a select form field with options and shows the selected option first.

public

Parameters
string/arrayvalue to be selected
stringvariable name in formular
arrayarray with $options (key = lang_key, value = long name)
booleanmultiple selection list true/false
booleanif true, the option values are displayed directly, otherwise they are handled as language variable keys and the corresponding language variable is displayed
intsize
stringstyle class
arrayadditional attributes (key = attribute name, value = attribute value)
booleandisabled

Definition at line 328 of file class.ilUtil.php.

References $attributes, $DIC, $key, $lng, $options, $size, $style, and array.

Referenced by ilRegistrationSettingsGUI\__buildAccessLimitationSelection(), ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilMDEditorGUI\__buildDaysSelect(), ilObjUserGUI\__buildFilterSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), ilMDEditorGUI\__buildMonthsSelect(), ilRegistrationSettingsGUI\__buildRoleSelection(), ilObjUserFolderGUI\__buildUserFilterSelect(), ilMDEditorGUI\__fillSubelements(), ilObjUserGUI\__getDateSelect(), ilAdvancedSearchGUI\__getFilterSelect(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), ilMDUtilSelect\_getBrowserSelect(), ilMDUtilSelect\_getContextSelect(), ilMDUtilSelect\_getCopyrightAndOtherRestrictionsSelect(), ilMDUtilSelect\_getCostsSelect(), ilMDUtilSelect\_getDifficultySelect(), ilMDUtilSelect\_getDurationSelect(), ilMDUtilSelect\_getFormatSelect(), ilMDUtilSelect\_getIntendedEndUserRoleSelect(), ilMDUtilSelect\_getInteractivityLevelSelect(), ilMDUtilSelect\_getInteractivityTypeSelect(), ilMDUtilSelect\_getLanguageSelect(), ilMDUtilSelect\_getLearningResourceTypeSelect(), ilMDUtilSelect\_getLocationTypeSelect(), ilMDUtilSelect\_getOperatingSystemSelect(), ilMDUtilSelect\_getPurposeSelect(), ilMDUtilSelect\_getRoleSelect(), ilMDUtilSelect\_getSemanticDensitySelect(), ilMDUtilSelect\_getStatusSelect(), ilMDUtilSelect\_getStructureSelect(), ilMDUtilSelect\_getTypicalAgeRangeSelect(), ilMDUtilSelect\_getTypicalLearningTimeSelect(), ilLMChapterImportForm\addNode(), ilRecurrenceInputGUI\buildMonthlyByDaySelection(), ilRecurrenceInputGUI\buildMonthlyByMonthDaySelection(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), ilObjSystemFolderGUI\checkObject(), ilPCParagraphGUI\edit(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\fillActionRow(), ilPCGridCellTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilImportantPagesTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilPCImageMapTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilPCIIMTriggerTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilTable2GUI\getLinkbar(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjContentObjectGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\initStylePropertiesForm(), ilObjGlossaryGUI\initStylePropertiesForm(), ilObjWikiGUI\initStylePropertiesForm(), ilContainerGUI\initStylePropertiesForm(), ilLocationInputGUI\insert(), ilRecurrenceInputGUI\insert(), ilLDAPSettingsGUI\prepareMappingSelect(), ilLDAPSettingsGUI\prepareRoleSelect(), ilDurationInputGUI\render(), ilPortfolioPageGUI\renderMyCourses(), ilCourseArchivesGUI\selectArchiveLanguage(), ilObjContentObjectGUI\showEntrySelector(), ilInfoScreenGUI\showLearningProgress(), ilInternalLinkGUI\showLinkHelp(), ilPageObjectGUI\showPage(), ilObjUserFolderGUI\showPossibleSubObjects(), ilObjRoleFolderGUI\showPossibleSubObjects(), ilBookmarkAdministrationGUI\showPossibleSubObjects(), ilObjectGUI\showPossibleSubObjects(), ilStructureObjectGUI\subchap(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().

338  {
339  global $DIC;
340 
341  $lng = $DIC->language();
342 
343  if ($multiple == true) {
344  $multiple = " multiple=\"multiple\"";
345  } else {
346  $multiple = "";
347  $size = 0;
348  }
349 
350  $class = " class=\" form-control " . $style_class . "\"";
351 
352  // use form-inline!
353  // this is workaround the whole function should be set deprecated
354  // $attributes = " style='display:inline-block;' ";
355 
356  if (is_array($attribs)) {
357  foreach ($attribs as $key => $val) {
358  $attributes .= " " . $key . "=\"" . $val . "\"";
359  }
360  }
361  if ($disabled) {
362  $disabled = ' disabled=\"disabled\"';
363  }
364 
365  $str = "<select name=\"" . $varname . "\"" . $multiple . " $class size=\"" . $size . "\" $attributes $disabled>\n";
366 
367  foreach ((array) $options as $key => $val) {
368  $style = "";
369  if (is_array($val)) {
370  $style = $val["style"];
371  $val = $val["text"]; // mus be last line, since we overwrite
372  }
373 
374  $sty = ($style != "")
375  ? ' style="' . $style . '" '
376  : "";
377 
378  if ($direct_text) {
379  $str .= " <option $sty value=\"" . $key . "\"";
380  } else {
381  $str .= " <option $sty value=\"" . $val . "\"";
382  }
383  if (is_array($selected)) {
384  if (in_array($key, $selected)) {
385  $str .= " selected=\"selected\"";
386  }
387  } elseif ($selected == $key) {
388  $str .= " selected=\"selected\"";
389  }
390 
391  if ($direct_text) {
392  $str .= ">" . $val . "</option>\n";
393  } else {
394  $str .= ">" . $lng->txt($val) . "</option>\n";
395  }
396  }
397 
398  $str .= "</select>\n";
399 
400  return $str;
401  }
$style
Definition: example_012.php:70
$size
Definition: RandomTest.php:84
global $DIC
Definition: saml.php:7
$attributes
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
$key
Definition: croninfo.php:18
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20
+ Here is the caller graph for this function:

◆ generatePasswords()

static ilUtil::generatePasswords (   $a_number)
static

Generate a number of passwords.

Definition at line 3697 of file class.ilUtil.php.

References $i, $ret, ilSecuritySettings\_getInstance(), and array.

Referenced by ilStartUpGUI\_checkGoto(), shibUser\createFields(), ilAuthContainerSOAP\loginObserver(), and ilAccountRegistrationGUI\saveForm().

3698  {
3699  $ret = array();
3700  srand((double) microtime()*1000000);
3701 
3702  include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
3703  $security = ilSecuritySettings::_getInstance();
3704 
3705  for ($i=1; $i<=$a_number; $i++) {
3706  $min = ($security->getPasswordMinLength() > 0)
3707  ? $security->getPasswordMinLength()
3708  : 6;
3709  $max = ($security->getPasswordMaxLength() > 0)
3710  ? $security->getPasswordMaxLength()
3711  : 10;
3712  if ($min > $max) {
3713  $max = $max + 1;
3714  }
3715  $random = new \ilRandom();
3716  $length = $random->int($min, $max);
3717  $next = $random->int(1, 2);
3718  $vowels = "aeiou";
3719  $vowels_uc = strtoupper($vowels);
3720  $consonants = "bcdfghjklmnpqrstvwxyz";
3721  $consonants_uc = strtoupper($consonants);
3722  $numbers = "1234567890";
3723  $special = "_.+?#-*@!$%~";
3724  $pw = "";
3725 
3726  if ($security->getPasswordNumberOfUppercaseChars() > 0) {
3727  for ($j = 0; $j < $security->getPasswordNumberOfUppercaseChars(); $j++) {
3728  switch ($next) {
3729  case 1:
3730  $pw.= $consonants_uc[$random->int(0, strlen($consonants_uc) - 1)];
3731  $next = 2;
3732  break;
3733 
3734  case 2:
3735  $pw.= $vowels_uc[$random->int(0, strlen($vowels_uc) - 1)];
3736  $next = 1;
3737  break;
3738  }
3739  }
3740  }
3741 
3742  if ($security->isPasswordCharsAndNumbersEnabled()) {
3743  $pw.= $numbers[$random->int(0, strlen($numbers) - 1)];
3744  }
3745 
3746  if ($security->isPasswordSpecialCharsEnabled()) {
3747  $pw.= $special[$random->int(0, strlen($special) - 1)];
3748  }
3749 
3750  $num_lcase_chars = max($security->getPasswordNumberOfLowercaseChars(), $length - strlen($pw));
3751  for ($j = 0; $j < $num_lcase_chars; $j++) {
3752  switch ($next) {
3753  case 1:
3754  $pw.= $consonants[$random->int(0, strlen($consonants) - 1)];
3755  $next = 2;
3756  break;
3757 
3758  case 2:
3759  $pw.= $vowels[$random->int(0, strlen($vowels) - 1)];
3760  $next = 1;
3761  break;
3762  }
3763  }
3764 
3765  $pw = str_shuffle($pw);
3766 
3767  $ret[] = $pw;
3768  }
3769  return $ret;
3770  }
Create styles array
The data for the language used.
$ret
Definition: parser.php:6
$i
Definition: disco.tpl.php:19
static _getInstance()
Get instance of ilSecuritySettings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getASCIIFilename()

static ilUtil::getASCIIFilename (   $a_filename)
static

convert utf8 to ascii filename

Parameters
string$a_filenameutf8 filename

Implementation note: The proper way to convert charsets is mb_convert_encoding. Unfortunately Multibyte String functions are not an installation requirement for ILIAS 3. Codelines behind three slashes '///' show how we would do it using mb_convert_encoding. Note that mb_convert_encoding has the bad habit of substituting unconvertable characters with HTML entitities. Thats why we need a regular expression which replaces HTML entities with their first character. e.g. ä => a

$ascii_filename = mb_convert_encoding($a_filename,'US-ASCII','UTF-8'); $ascii_filename = preg_replace('/&(.)[^;]*;/','\1', $ascii_filename);

Definition at line 2085 of file class.ilUtil.php.

References $ascii_filename, and array.

Referenced by ilTestExport\aggregatedResultsToCSV(), ilTestExport\aggregatedResultsToExcel(), ilWikiHTMLExport\buildExportFile(), ilDownloadFilesBackgroundTask\collectFiles(), ilFolderDownloadBackgroundTaskHandler\copyFile(), ilContainerGUI\copyFile(), deliverData(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilExSubmission\downloadAllAssignmentFiles(), ilObjFolderGUI\downloadFolderObject(), ilExSubmission\downloadMultipleFiles(), ilSurveyParticipantsGUI\exportAllCodesObject(), ilTestEvaluationGUI\exportCertificate(), ilSurveyParticipantsGUI\exportCodesObject(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilSurveyEvaluationGUI\exportEvaluationUser(), ilObjExercise\exportGradesExcel(), ilCOPageHTMLExport\exportHTMLFileDirect(), ilTestExport\exportToCSV(), ilTestExport\exportToExcel(), ilObjMediaObject\fixFilename(), ilAssFileUploadUploadsExporter\getDispoZipFileName(), ilDownloadFilesBackgroundTask\getEventFileNameFromId(), ilTestParticipantData\getFileSystemCompliantFullnameByActiveId(), ilVerificationObject\getOfflineFilename(), ilObjTest\getTitleFilenameCompliant(), assQuestion\getTitleFilenameCompliant(), ilAssFileUploadUploadsExporter\initFilenames(), ilDclMobRecordFieldModel\parseValue(), ilObjFolder\recurseFolder(), ilFolderDownloadBackgroundTaskHandler\recurseFolder(), ilContainerGUI\recurseFolder(), ilDownloadFilesBackgroundTask\run(), ilQtiMatImageSecurity\sanitizeLabel(), ilExAssignment\sendMultiFeedbackStructureFile(), and ilObjMediaCastGUI\updateMediaItem().

2086  {
2087  // The filename must be converted to ASCII, as of RFC 2183,
2088  // section 2.3.
2089 
2101 
2104 
2105  // #15914 - try to fix german umlauts
2106  $umlauts = array("Ä"=>"Ae", "Ö"=>"Oe", "Ãœ"=>"Ue",
2107  "ä"=>"ae", "ö"=>"oe", "ü"=>"ue", "ß"=>"ss");
2108  foreach ($umlauts as $src => $tgt) {
2109  $a_filename = str_replace($src, $tgt, $a_filename);
2110  }
2111 
2112  $ascii_filename = htmlentities($a_filename, ENT_NOQUOTES, 'UTF-8');
2113  $ascii_filename = preg_replace('/\&(.)[^;]*;/', '\\1', $ascii_filename);
2114  $ascii_filename = preg_replace('/[\x7f-\xff]/', '_', $ascii_filename);
2115 
2116  // OS do not allow the following characters in filenames: \/:*?"<>|
2117  $ascii_filename = preg_replace('/[:\x5c\/\*\?\"<>\|]/', '_', $ascii_filename);
2118  return $ascii_filename;
2119  }
$ascii_filename
Definition: metadata.php:317
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getAssociatedUsersOnline()

static ilUtil::getAssociatedUsersOnline (   $a_user_id)
static

reads all active sessions from db and returns users that are online and who have a local role in a group or a course for which the the current user has also a local role.

Parameters
integeruser_id User ID of the current user.
Returns
array

Definition at line 1565 of file class.ilUtil.php.

References ilObjUser\_getAssociatedUsersOnline().

Referenced by ilUsersOnlineBlockGUI\getUsers().

1566  {
1567  include_once("./Services/User/classes/class.ilObjUser.php");
1568  return ilObjUser::_getAssociatedUsersOnline($a_user_id);
1569  }
static _getAssociatedUsersOnline($a_user_id, $a_no_anonymous=false)
reads all active sessions from db and returns users that are online and who have a local role in a gr...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getClientIdByString()

static ilUtil::getClientIdByString (   $clientId)
static
Parameters
string$clientId
Returns

Definition at line 2404 of file class.ilUtil.php.

References League\OAuth2\Client\Provider\$clientId.

Referenced by ilInitialisation\determineClient().

2405  {
2406  $df = new \ILIAS\Data\Factory;
2407 
2408  return $df->clientId($clientId);
2409  }
+ Here is the caller graph for this function:

◆ getConvertCmd()

static ilUtil::getConvertCmd ( )
static

get convert command

Deprecated:
See also
ilUtil::execConvert()

Definition at line 1822 of file class.ilUtil.php.

1823  {
1824  return PATH_TO_CONVERT;
1825  }

◆ getDataDir()

static ilUtil::getDataDir ( )
static

get data directory (outside webspace)

Deprecated:
in favour of the filesystem service which should be used to operate on the storage directory.
See also
::filesystem()
::storage()

Definition at line 1535 of file class.ilUtil.php.

Referenced by ilAdvancedMDRecordExportFiles\__construct(), ilAdvancedMDRecordImportFiles\__construct(), ilExternalFeed\_createCacheDirectory(), ilObjQuestionPool\_createImportDirectory(), ilObjTest\_createImportDirectory(), ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), ilExport\_getExportDirectory(), ilObjCategoryGUI\_getImportDir(), ilFileDataMail\_lookupDiskUsageOfUser(), assLongMenu\buildFolderName(), ilObjStyleSheet\cleanExportDirectory(), ilDclPropertyFormGUI\cleanupTempFiles(), ilSimpleSAMLphpConfigTemplateHandler\copy(), ilChatroomConfigFileHandler\createDataDirIfNotExists(), ilScorm2004Export\createExportDirectory(), ilObjUserFolder\createExportDirectory(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjContentObject\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjTest\createExportDirectory(), ilObjStyleSheet\createExportDirectory(), ilObjSurvey\createExportDirectory(), ilObjContentObject\createImportDirectory(), ilObjSurveyQuestionPool\createImportDirectory(), ilObjGlossary\createImportDirectory(), ilObjStyleSheet\createImportDirectory(), ilObjSurvey\createImportDirectory(), ilMediaItem\createWorkDirectory(), ilObjSurveyQuestionPool\deleteAllData(), ilObjQuestionPool\deleteQuestionpool(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilSamlAuthFactory\getConfigDirectory(), ilObjContentObject\getDataDirectory(), ilObjUserFolder\getExportDirectory(), ilObjSurveyQuestionPool\getExportDirectory(), ilObjContentObject\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilObjTest\getExportDirectory(), ilObjSurvey\getExportDirectory(), ilScorm2004Export\getExportDirectoryForType(), ilPropertyFormGUI\getHTML(), ilMediaImageUtil\getImageSize(), ilObjUserFolderGUI\getImportDir(), ilObjContentObject\getImportDirectory(), ilObjSurveyQuestionPool\getImportDirectory(), ilObjGlossary\getImportDirectory(), ilObjSurvey\getImportDirectory(), ilUserPasswordManager\getInstance(), ilFSStorageMail\getRelativePathExMailDirectory(), ilZipBackgroundTaskHandler\getTempBasePath(), ilDclPropertyFormGUI\getTempFilename(), ilLMMultiSrt\getUploadDir(), ilMepMultiSrt\getUploadDir(), ilChatroomUploadFileGUI\getUploadPath(), ilMediaItem\getWorkDirectory(), ilTempnam(), ilBibliographicDataSet\importLibraryFile(), ilFileSystemStorage5069\init(), ilFileSystemStorage\init(), ilTestQuestionPoolExporter\lookupExportDirectory(), ilXmlExporter\lookupExportDirectory(), ilCronPersonalWorkspaceRecalculateQuota\quotaHandleFile(), ilCronPersonalWorkspaceRecalculateQuota\quotaHandleVerification(), ilDclPropertyFormGUI\rebuildTempFileByHash(), ilPropertyFormGUI\rebuildUploadedFiles(), ilObjFolder\recurseFolder(), and ilObjSAHSLearningModule\zipLmForOfflineMode().

1536  {
1537  return CLIENT_DATA_DIR;
1538  }
+ Here is the caller graph for this function:

◆ getDir()

static ilUtil::getDir (   $a_dir,
  $a_rec = false,
  $a_sub_dir = "" 
)
static

get directory

Parameters
$a_dir
bool$a_rec
string$a_sub_dir
Returns
array
Deprecated:
in favour of Filesystem::listContents() located at the filesystem service.
See also
::listContents()

Definition at line 2354 of file class.ilUtil.php.

References $files, $si, $size, and array.

Referenced by assOrderingQuestion\cleanImagefiles(), ilSCORM13Package\dbImportSco(), ilObjMediaObjectGUI\editFilesObject(), ilFileDataMail\getAttachmentPathByMD5Filename(), ilFileSystemTableGUI\getEntries(), ilFileDataForumDrafts\getFileDataByMD5Filename(), ilFileDataForum\getFileDataByMD5Filename(), ilFileSystemGUI\getFileList(), ilUploadDirFilesTableGUI\getFiles(), ilAdvancedMDRecordExportFiles\getFiles(), ilObjMediaObject\getFilesOfDirectory(), ilObjStyleSheet\getImages(), ilExAssignment\getMultiFeedbackFiles(), ilMobMultiSrtUpload\getMultiSrtFiles(), ilObjMediaObject\getMultiSrtFiles(), ilObjUser\getPersonalDataExportFile(), ilObjMediaObject\getSrtFiles(), ilCertificate\importCertificate(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilFileDataForumDrafts\unlinkFilesByMD5Filenames(), ilFileDataForum\unlinkFilesByMD5Filenames(), ilFileSystemGUI\unzipFile(), ilObjHelpSettings\uploadHelpModule(), and ilExAssignment\uploadMultiFeedbackFile().

2355  {
2356  $current_dir = opendir($a_dir . $a_sub_dir);
2357 
2358  $dirs = array();
2359  $files = array();
2360  $subitems = array();
2361  while ($entry = readdir($current_dir)) {
2362  if (is_dir($a_dir . "/" . $entry)) {
2363  $dirs[$entry] = array("type" => "dir", "entry" => $entry,
2364  "subdir" => $a_sub_dir);
2365  if ($a_rec && $entry != "." && $entry != "..") {
2366  $si = ilUtil::getDir($a_dir, true, $a_sub_dir . "/" . $entry);
2367  $subitems = array_merge($subitems, $si);
2368  }
2369  } else {
2370  if ($entry != "." && $entry != "..") {
2371  $size = filesize($a_dir . $a_sub_dir . "/" . $entry);
2372  $files[$entry] = array("type" => "file", "entry" => $entry,
2373  "size" => $size, "subdir" => $a_sub_dir);
2374  }
2375  }
2376  }
2377  ksort($dirs);
2378  ksort($files);
2379 
2380  return array_merge($dirs, $files, $subitems);
2381  }
$files
Definition: add-vimline.php:18
$size
Definition: RandomTest.php:84
static getDir($a_dir, $a_rec=false, $a_sub_dir="")
get directory
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getFileSizeInfo()

static ilUtil::getFileSizeInfo ( )
static

Definition at line 4311 of file class.ilUtil.php.

References $DIC, and $lng.

Referenced by ilKprimChoiceWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), and ilMultipleImagesInputGUI\render().

4312  {
4313  $max_filesize = self::formatBytes(
4314  self::getUploadSizeLimitBytes()
4315  );
4316 
4317  global $DIC;
4318 
4319  $lng = $DIC->language();
4320  /*
4321  // get the value for the maximal uploadable filesize from the php.ini (if available)
4322  $umf=get_cfg_var("upload_max_filesize");
4323  // get the value for the maximal post data from the php.ini (if available)
4324  $pms=get_cfg_var("post_max_size");
4325 
4326  // use the smaller one as limit
4327  $max_filesize=min($umf, $pms);
4328  if (!$max_filesize) $max_filesize=max($umf, $pms);
4329  */
4330  return $lng->txt("file_notice") . " $max_filesize.";
4331  }
global $DIC
Definition: saml.php:7
global $lng
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ getGDSupportedImageType()

static ilUtil::getGDSupportedImageType (   $a_desired_type)
static

returns the best supported image type by this PHP build

Parameters
string$desired_typedesired image type ("jpg" | "gif" | "png")
Returns
string supported image type ("jpg" | "gif" | "png" | "")

Definition at line 3266 of file class.ilUtil.php.

Referenced by ilMediaItem\getMapWorkCopyType().

3267  {
3268  $a_desired_type = strtolower($a_desired_type);
3269  // get supported Image Types
3270  $im_types = ImageTypes();
3271 
3272  switch ($a_desired_type) {
3273  case "jpg":
3274  case "jpeg":
3275  if ($im_types & IMG_JPG) {
3276  return "jpg";
3277  }
3278  if ($im_types & IMG_GIF) {
3279  return "gif";
3280  }
3281  if ($im_types & IMG_PNG) {
3282  return "png";
3283  }
3284  break;
3285 
3286  case "gif":
3287  if ($im_types & IMG_GIF) {
3288  return "gif";
3289  }
3290  if ($im_types & IMG_JPG) {
3291  return "jpg";
3292  }
3293  if ($im_types & IMG_PNG) {
3294  return "png";
3295  }
3296  break;
3297 
3298  case "png":
3299  if ($im_types & IMG_PNG) {
3300  return "png";
3301  }
3302  if ($im_types & IMG_JPG) {
3303  return "jpg";
3304  }
3305  if ($im_types & IMG_GIF) {
3306  return "gif";
3307  }
3308  break;
3309 
3310  case "svg":
3311  if ($im_types & IMG_PNG) {
3312  return "png";
3313  }
3314  if ($im_types & IMG_JPG) {
3315  return "jpg";
3316  }
3317  if ($im_types & IMG_GIF) {
3318  return "gif";
3319  }
3320  break;
3321  }
3322 
3323  return "";
3324  }
+ Here is the caller graph for this function:

◆ getHtmlPath()

static ilUtil::getHtmlPath (   $relative_path)
static

get url of path

Author
Brandon Blackmoor brand.nosp@m.on.b.nosp@m.lackm.nosp@m.oor@.nosp@m.jfcom.nosp@m..mil public
Parameters
$relative_pathstring complete path to file, relative to web root (e.g. /data/pfplms103/mobs/mm_732/athena_standing.jpg)

Definition at line 150 of file class.ilUtil.php.

Referenced by ilObjMediaObject\_getURL(), ilPreview\getImages(), SurveyTextQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), ilAuthApache\login(), and ilAuthFrontendCredentialsApache\tryAuthenticationOnLoginPage().

151  {
152  if (substr($relative_path, 0, 2) == './') {
153  $relative_path = (substr($relative_path, 1));
154  }
155  if (substr($relative_path, 0, 1) != '/') {
156  $relative_path = '/' . $relative_path;
157  }
158  $htmlpath = ILIAS_HTTP_PATH . $relative_path;
159  return $htmlpath;
160  }
+ Here is the caller graph for this function:

◆ getImagePath()

static ilUtil::getImagePath (   $img,
  $module_path = "",
  $mode = "output",
  $offline = false 
)
static

get image path (for images located in a template directory)

public

Parameters
stringfull image filename (e.g. myimage.png)
booleanshould be set to true, if the image is within a module template directory (e.g. content/templates/default/images/test.png)

Definition at line 79 of file class.ilUtil.php.

References $_SERVER, $DIC, and $img.

Referenced by ilMemcacheServerTableGUI\__construct(), ilBookmarkBlockGUI\__construct(), ilStudyProgrammeIndividualPlanTableGUI\__construct(), ilChatroomBlockGUI\__construct(), ilForumPostingDraftsBlockGUI\__construct(), ilPDMailGUI\__construct(), ilPDMailBlockGUI\__construct(), ilNoteGUI\__construct(), ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), ilLearningProgressBaseGUI\__getLegendHTML(), ilCourseContentGUI\__renderUserItem(), ilObjRoleGUI\__setHeader(), ilLocalUserGUI\__showRolesTable(), ilStartUpGUI\_checkGoto(), ilObject\_getIcon(), ilPlugin\_getImagePath(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilPCTableGUI\_renderTable(), ilObjForumGUI\addAutosave(), ilExAssignmentGUI\addFiles(), ilWikiPageGUI\addHeaderAction(), ilObjDataCollectionGUI\addHeaderAction(), ilContainerRenderer\addHeaderRow(), ilContainerGUI\addHeaderRow(), ilLMChapterImportForm\addNode(), ilPDSelectedItemsBlockGUI\addStandardRow(), ilContainerGUI\addStandardRow(), ilSystemStyleDeleteGUI\addStyle(), ilExAssignmentGUI\addSubmissionFeedback(), ilConditionHandlerGUI\askDelete(), ilCourseObjectivesGUI\askDeleteObjective(), ilExSubmissionObjectGUI\askUnlinkPortfolioObject(), ilPersonalSkillsGUI\assignMaterials(), ilObjAuthSettingsGUI\authSettingsObject(), ilDclRecordListTableGUI\buildData(), ilStudyProgrammeIndividualPlanProgressListGUI\buildProgressStatus(), ilMailFolderGUI\cancelDeleteMails(), ilObjContentObjectGUI\chapters(), ilContainerGUI\cloneWizardPageObject(), ilObjForumGUI\cloneWizardPageObject(), ilMembershipGUI\confirmAssignFromWaitingList(), ilMembershipGUI\confirmAssignSubscribers(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilPDExternalFeedBlockGUI\confirmDeleteFeedBlock(), ilSessionMembershipGUI\confirmDeleteParticipants(), ilMembershipGUI\confirmDeleteParticipants(), ilObjRoleGUI\confirmDeleteRoleObject(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilMembershipGUI\confirmRefuseFromList(), ilMembershipGUI\confirmRefuseSubscribers(), ilCourseParticipantsGroupsGUI\confirmRemove(), ilOrgUnitStaffGUI\confirmRemoveUser(), assErrorText\createErrorTextOutput(), ilSCORM13Player\debugGUI(), ilObjSkillManagementGUI\deleteNodes(), ilObjSCORM2004LearningModuleGUI\deleteNodes(), ilObjTestGUI\deleteSingleUserResultsObject(), ilLMEditorGUI\displayLocator(), ilPageObjectGUI\displayMedia(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilRegistrationSettingsGUI\editEmailAssignments(), ilObjMediaObjectGUI\editFilesObject(), ilLMPageObjectGUI\editLayout(), ilObjTypeDefinitionGUI\editObject(), ilContainerGUI\editPageContentObject(), ilRegistrationSettingsGUI\editRoles(), ilGlossaryTermGUI\editTerm(), ilCourseContentGUI\editTimings(), ilObjSessionGUI\eventsListObject(), ilObjSAHSLearningModuleGUI\executeCommand(), ilPCInteractiveImageGUI\executeCommand(), ilSCORM2004PageNodeGUI\executeCommand(), ilBadgeProfileGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), ilPortfolioRepositoryGUI\executeCommand(), ilBlogPostingGUI\executeCommand(), ilPCMediaObjectGUI\executeCommand(), ilPersonalSkillsGUI\executeCommand(), ilObjContentObjectGUI\explorer(), ilSystemStyleHTMLExport\export(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilObjUserFolderGUI\exportObject(), ilMailFolderTableGUI\fetchTableData(), ilTable2GUI\fillActionRow(), ilLuceneAdvancedSearchGUI\fillAdminPanel(), ilLuceneSearchGUI\fillAdminPanel(), ilTemplate\fillAdminPanel(), ilChatroomBlockGUI\fillDataSection(), ilCalendarSelectionBlockGUI\fillDataSection(), ilBlockGUI\fillDetailRow(), ilTable2GUI\fillHeader(), ilBlockGUI\fillHeaderCommands(), ilCopyWizardPage\fillMainBlock(), ilConditionHandlerTableGUI\fillRow(), ilAccessPermissionsStatusTableGUI\fillRow(), ilLDAPServerTableGUI\fillRow(), ilAvailableRolesStatusTableGUI\fillRow(), ilECSServerTableGUI\fillRow(), ilAuthLoginPageEditorTableGUI\fillRow(), ilHistoryTableGUI\fillRow(), ilPollUserTableGUI\fillRow(), ilShibbolethRoleAssignmentTableGUI\fillRow(), ilLDAPRoleAssignmentTableGUI\fillRow(), ilSamlIdpTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilSessionMaterialsTableGUI\fillRow(), ilCourseObjectiveQuestionsTableGUI\fillRow(), ilBookmarkAdministrationTableGUI\fillRow(), ilCalendarInboxSharedTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilCalendarSharedListTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilDclFieldListTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilClipboardTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilTestFixedParticipantsTableGUI\fillRow(), ilTestParticipantsTableGUI\fillRow(), ilSessionOverviewTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilFileSystemTableGUI\fillRow(), ilPDMailBlockGUI\fillRow(), ilSurveyQuestionTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilTemplate\fillSideIcons(), ilSAHSPresentationGUI\finishSahs(), ilSCORMPresentationGUI\finishSahs(), assQuestion\fixUnavailableSkinImageSources(), ilAdministrationExplorer\formatHeader(), ilGlossarySelectorGUI\formatHeader(), ilWorkspaceFolderExplorer\formatHeader(), ilContainerGUI\forwardToPageObject(), ilSecurImageUtil\getAudioScript(), ilChapterHierarchyFormGUI\getChildIcon(), ilHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilHierarchyFormGUI\getContent(), ilAsyncPropertyFormGUI\getErrorMessageTemplate(), ilStudyProgrammeExpandableProgressListGUI\getExpandedImageURL(), ilCloudPluginItemCreationListGUI\getGroupedListItems(), ilDclBooleanRecordRepresentation\getHTML(), ilDclFileuploadRecordRepresentation\getHTML(), ilMainMenuSearchGUI\getHTML(), ilDclTreePickInputGUI\getHtml(), ilChecklistGUI\getHTML(), ilLMChapterImportForm\getHTML(), ilRatingGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilForumSettingsGUI\getIcon(), ilLMTracker\getIconForLMObject(), ilSkillTreeNode\getIconPath(), ilObjSCORMInitData\getIliasScormVars(), ilSurveySkillExplorer\getImage(), ilExplorer\getImage(), ilImageMapEditorGUI\getImageMapOutput(), ilSCORM13Player\getInlineCSS(), ilCloudPluginFileTreeGUI\getItemHtml(), ilContainerStartObjectsContentTableGUI\getItems(), ilObjContentObjectGUI\getLayoutOption(), ilHierarchyFormGUI\getLevelHTML(), ilPDNotesBlockGUI\getListRowData(), ilBookmarkBlockGUI\getListRowData(), ilOnScreenChatMenuGUI\getMainMenuHTML(), ilAwarenessGUI\getMainMenuHTML(), ilMediaPlayerGUI\getMp3PlayerHtml(), ilLMEditorExplorerGUI\getNodeIcon(), ilMailExplorer\getNodeIcon(), ilMediaPoolExplorerGUI\getNodeIcon(), ilPublicSectionExplorerGUI\getNodeIcon(), ilSCORM2004EditorExplorerGUI\getNodeIcon(), ilBookmarkExplorerGUI\getNodeIcon(), ilSkillTreeExplorerGUI\getNodeIcon(), ilTaxonomyExplorerGUI\getNodeIcon(), ilSkillTemplateTreeExplorerGUI\getNodeIcon(), ilVirtualSkillTreeExplorerGUI\getNodeIcon(), ilLMTOCExplorerGUI\getNodeIcon(), ilPersonalSkillExplorerGUI\getNodeIcon(), ilWorkspaceExplorerGUI\getNodeIcon(), ilNoteGUI\getNoteListHTML(), ilStudyProgrammeExpandableProgressListGUI\getNotExpandedImageURL(), ilExplorer\getOutput(), ilSCORMExplorer\getOutputIcons(), ilExAssignmentGUI\getOverviewHeader(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assKprimChoiceGUI\getPreview(), assMatchingQuestionGUI\getPreview(), SurveyTextQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), ilTestQuestionHeaderBlockBuilder\getQuestionInfoHTML(), ilTestQuestionNavigationGUI\getQuestionMarkIconSource(), ilTestServiceGUI\getResultsSignature(), assLongMenuGUI\getSelectGapTemplate(), ilFileUploadGUI\getSharedHtml(), assOrderingHorizontalGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assFileUploadGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), ilSCORMOfflineMode\getSopManifestEntries(), ilDclBaseRecordModel\getStandardFieldHTML(), ilPersonalDesktopGUI\getStandardTemplates(), ilObjGlossaryGUI\getTemplate(), assKprimChoiceGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assLongMenuGUI\getTextGapTemplate(), ilUserAvatarFile\getUrl(), ilLMPresentationGUI\ilLMHead(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilMedia(), ilSCORM2004ScoGUI\import(), ilObjExerciseGUI\infoScreen(), ilCloudPluginDeleteGUI\initDeleteItem(), ilLMPageObjectGUI\initEditLayoutForm(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilObjGroupGUI\initForm(), ilConditionHandlerGUI\initFormCondition(), ilObjForumGUI\initForumCreateForm(), ilObjGroupGUI\initHeaderAction(), ilObjBlogGUI\initHeaderAction(), ilObjCourseGUI\initHeaderAction(), ilObjForumGUI\initHeaderAction(), ilOnScreenChatGUI\initializeFrontend(), SurveyConstraintsTableGUI\initItems(), ilObjFileGUI\initMultiUploadForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilObjPortfolioGUI\initPDFSelectionForm(), ilWikiPageGUI\initPrintViewSelectionForm(), ilLMPresentationGUI\initScreenHead(), ilObjWikiGUI\initSettingsForm(), ilObjFileGUI\initSingleUploadForm(), ilObjForumGUI\initTopicCreateForm(), ilCloudPluginUploadGUI\initUploadForm(), ilObjFileGUI\initZipUploadForm(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilObjectListGUI\insertIconsAndCheckboxes(), ilObjOrgUnitListGUI\insertInfoScreenCommand(), ilObjectListGUI\insertInfoScreenCommand(), ilPropertyFormGUI\insertItem(), ilCourseObjectiveListGUI\insertProgressInfo(), ilObjectListGUI\insertTitle(), ilSAHSPresentationGUI\launchSahs(), ilSCORMPresentationGUI\launchSahs(), ilGlossaryPresentationGUI\listDefinitions(), ilGlossaryTermGUI\listDefinitions(), ilGlossaryTermGUI\listUsages(), ilPDSelectedItemsBlockGUI\manageObject(), ilGlossaryPresentationGUI\media(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ilObjMediaPoolSubItemListGUI\parseImage(), ilObjWorkflowEngineGUI\prepareAdminOutput(), ilPersonalDesktopGUI\prepareContentView(), ilGlossaryPresentationGUI\prepareOutput(), ilCalendarPresentationGUI\prepareOutput(), ilObjSystemFolderGUI\printProxyStatus(), ilObjPortfolioGUI\printView(), ilGlossaryPresentationGUI\printViewSelection(), ilProgressBar\render(), ilTableGUI\render(), ilTable2GUI\render(), ilHierarchyFormGUI\renderChild(), ilRatingGUI\renderDetails(), ilCalendarSelectionBlockGUI\renderItem(), ilTestQuestionSideListGUI\renderList(), ilSCORM2004Asset\renderNavigation(), ilSurveyPageGUI\renderPage(), ilPersonalSkillsGUI\selfEvaluation(), ilBadgeHandler\sendNotification(), ilImageLinkButton\setImage(), ilSAHSPresentationGUI\setInfoTabs(), ilSkillTreeNodeGUI\setLocator(), ilSCORM2004NodeGUI\setLocator(), ilSCORMOfflineModeGUI\setOfflineModeTabs(), ilSCORM2004SeqChapterGUI\setTabs(), ilSCORM2004AssetGUI\setTabs(), ilSkillTemplateGUI\setTabs(), ilSCORM2004ChapterGUI\setTabs(), ilSCORM2004PageNodeGUI\setTabs(), ilPageLayoutGUI\setTabs(), ilSCORM2004ScoGUI\setTabs(), ilObjSAHSLearningModuleGUI\setTabs(), ilStructureObjectGUI\setTabs(), ilObjFileBasedLMGUI\setTabs(), ilObjTaxonomyGUI\setTabs(), ilObjMediaObjectGUI\setTabs(), ilObjContentObjectGUI\setTabs(), ilMainMenuGUI\setTemplateVars(), ilObjWorkspaceRootFolderGUI\setTitleAndDescription(), ilObjUserGUI\setTitleAndDescription(), ilObjPortfolioGUI\setTitleAndDescription(), ilObjLanguageExtGUI\setTitleAndDescription(), ilNewsTimelineGUI\show(), ilLMObjectGUI\showActions(), ilObjUserFolderGUI\showActions(), ilContentStyleSettingsGUI\showActions(), ilObjGlossaryGUI\showActions(), ilObjContentObjectGUI\showActions(), ilContainerGUI\showAdministrationPanel(), ilPasswordAssistanceGUI\showAssignPasswordForm(), ilPasswordAssistanceGUI\showAssistanceForm(), ilStartUpGUI\showCASLoginForm(), ilGlossaryPresentationGUI\showDownloadList(), ilLMPresentationGUI\showDownloadList(), ilCalendarMonthGUI\showEvents(), ilExternalFeedBlockGUI\showFeedItem(), ilPDExternalFeedBlockGUI\showFeedItem(), ilCalendarWeekGUI\showFulldayAppointment(), ilCalendarDayGUI\showFulldayAppointment(), ilObjMediaCastGUI\showGallery(), ilMailGUI\showHeader(), ilStructureObjectGUI\showHierarchy(), ilInternalLinkGUI\showLinkHelp(), ilPDMailBlockGUI\showMail(), ilObjMediaPoolGUI\showMedia(), ilPasswordAssistanceGUI\showMessageForm(), ilSCORM2004NodeGUI\showOrganization(), ilObjSCORM2004LearningModuleGUI\showOrganization(), ilPageObjectGUI\showPage(), ilContainerGUI\showPasteTreeObject(), ilLMPresentationGUI\showPrintView(), ilLMPresentationGUI\showPrintViewSelection(), ilPDTaggingBlockGUI\showResourcesForTag(), ilMailSearchGUI\showResults(), ilAssQuestionSkillAssignmentsGUI\showSkillSelectionCmd(), ilCourseContentGUI\showStartObjects(), ilLMPresentationGUI\showTableOfContents(), ilNoteGUI\showTargets(), ilObjectCopyGUI\showTargetSelectionTree(), ilObjSCORM2004LearningModuleGUI\showTree(), ilMailFolderGUI\showUser(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), ilCourseContentGUI\showUserTimings(), ilStructureObjectGUI\subchap(), assFormulaQuestion\substituteVariables(), ilObjTestGUI\uploadTstObject(), and ilCourseArchivesGUI\view().

80  {
81  global $DIC;
82 
83  $styleDefinition = null;
84  if (isset($DIC["styleDefinition"])) {
85  $styleDefinition = $DIC["styleDefinition"];
86  }
87 
88  if (is_int(strpos($_SERVER["PHP_SELF"], "setup.php"))) {
89  $module_path = "..";
90  }
91  if ($module_path != "") {
92  $module_path = "/" . $module_path;
93  }
94 
95  // default image
96  $default_img = "." . $module_path . "/templates/default/images/" . $img;
97 
98  // use ilStyleDefinition instead of account to get the current skin and style
99  require_once("./Services/Style/System/classes/class.ilStyleDefinition.php");
100  $current_skin = ilStyleDefinition::getCurrentSkin();
101  $current_style = ilStyleDefinition::getCurrentStyle();
102 
103  if (is_object($styleDefinition)) {
104  $image_dir = $styleDefinition->getImageDirectory($current_style);
105  }
106  if ($current_skin == "default") {
107  $user_img = "." . $module_path . "/templates/default/" . $image_dir . "/" . $img;
108  $skin_img = "." . $module_path . "/templates/default/images/" . $img;
109  } elseif (is_object($styleDefinition) && $current_skin != "default") {
110  $user_img = "./Customizing/global/skin/" .
111  $current_skin . $module_path . "/" . $image_dir . "/" . $img;
112  $skin_img = "./Customizing/global/skin/" .
113  $current_skin . $module_path . "/images/" . $img;
114  }
115 
116  // temp svg patch
117  /*
118  $pi = pathinfo($img);
119  if ($pi["dirname"] != "") {
120  $pi["dirname"] = $pi["dirname"]."/";
121  }
122  $svg_img = ".".$module_path."/templates/default/images/".$pi["dirname"].$pi["filename"].".svg";
123  if (file_exists($svg_img))
124  {
125  return $svg_img;
126  }*/
127 
128 
129  if ($offline) {
130  return "./images/" . $img;
131  } elseif (@file_exists($user_img) && $image_dir != "") {
132  return $user_img; // found image for skin and style
133  } elseif (file_exists($skin_img)) {
134  return $skin_img; // found image in skin/images
135  }
136 
137  return $default_img; // take image in default
138  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ getImageTagByType()

static ilUtil::getImageTagByType (   $a_type,
  $a_path,
  $a_big = false 
)
static

Builds an html image tag TODO: function still in use, but in future use getImagePath and move HTML-Code to your template file public.

Parameters
stringobject type
stringtpl path

Definition at line 35 of file class.ilUtil.php.

References $a_type, $DIC, $filename, $lng, $size, and ilObject\_getIcon().

Referenced by ilObjMediaPoolGUI\confirmRemove(), ilBookmarkAdministrationGUI\delete(), ilObjContentObjectGUI\delete(), ilObjStyleSheetGUI\deleteObject(), ilPageLayoutAdministrationGUI\deletePgl(), ilContentStyleSettingsGUI\deleteStyle(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), and ilObjSCORMLearningModuleGUI\stopUserOfflineMode().

36  {
37  global $DIC;
38 
39  $lng = $DIC->language();
40 
41  $size = ($a_big)
42  ? "big"
43  : "small";
44 
45  include_once("./Services/Object/classes/class.ilObject.php");
47 
48  return "<img src=\"" . $filename . "\" alt=\"" . $lng->txt("obj_" . $a_type) . "\" title=\"" . $lng->txt("obj_" . $a_type) . "\" border=\"0\" vspace=\"0\"/>";
49  }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
$size
Definition: RandomTest.php:84
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getJavaPath()

static ilUtil::getJavaPath ( )
static

get full java path (dir + java command)

Definition at line 2155 of file class.ilUtil.php.

2156  {
2157  return PATH_TO_JAVA;
2158  //global $ilias;
2159 
2160  //return $ilias->getSetting("java_path");
2161  }

◆ getJSLocation()

static ilUtil::getJSLocation (   $a_js_name,
  $a_js_location = "",
  $add_version = false 
)
static

get full javascript file name (path inclusive) of current user

Parameters
$a_js_namestring The name of the js file
$a_js_locationstring The location of the js file e.g. a module path
$add_versionboolean Add version information to the filename public

Definition at line 220 of file class.ilUtil.php.

References $DIC, $filename, and $ilSetting.

221  {
222  global $DIC;
223 
224  $ilSetting = $DIC->settings();
225 
226  // add version as parameter to force reload for new releases
227  $js_name = $a_js_name;
228  if (strlen($a_js_location) && (strcmp(substr($a_js_location, -1), "/") != 0)) {
229  $a_js_location = $a_js_location . "/";
230  }
231 
232  $filename = "";
233  // use ilStyleDefinition instead of account to get the current skin
234  require_once("./Services/Style/System/classes/class.ilStyleDefinition.php");
235  if (ilStyleDefinition::getCurrentSkin() != "default") {
236  $filename = "./Customizing/global/skin/" . ilStyleDefinition::getCurrentSkin() . "/" . $a_js_location . $js_name;
237  }
238  if (strlen($filename) == 0 || !file_exists($filename)) {
239  $filename = "./" . $a_js_location . "templates/default/" . $js_name;
240  }
241  $vers = "";
242  if ($add_version) {
243  $vers = str_replace(" ", "-", $ilSetting->get("ilias_version"));
244  $vers = "?vers=" . str_replace(".", "-", $vers);
245  }
246  return $filename . $vers;
247  }
global $DIC
Definition: saml.php:7
global $ilSetting
Definition: privfeed.php:17

◆ getMemString()

static ilUtil::getMemString ( )
static

get current memory usage as string

Definition at line 3430 of file class.ilUtil.php.

3431  {
3432  $my_pid = getmypid();
3433  return ("MEMORY USAGE (% KB PID ): " . `ps -eo%mem,rss,pid | grep $my_pid`);
3434  }

◆ getMySQLTimestamp()

static ilUtil::getMySQLTimestamp (   $a_ts)
static

Get MySQL timestamp in 4.1.x or higher format (yyyy-mm-dd hh:mm:ss) This function converts a timestamp, if MySQL 4.0 is used.

Parameters
stringMySQL timestamp string
Returns
string MySQL 4.1.x timestamp string

Definition at line 4473 of file class.ilUtil.php.

References $DIC, and $ilDB.

Referenced by ilExSubmission\getLastSubmission().

4474  {
4475  global $DIC;
4476 
4477  $ilDB = $DIC->database();
4478 
4479  return $a_ts;
4480  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the caller graph for this function:

◆ getNewContentStyleSheetLocation()

static ilUtil::getNewContentStyleSheetLocation (   $mode = "output")
static

get full style sheet file name (path inclusive) of current user

public

Definition at line 281 of file class.ilUtil.php.

References $DIC, and $ilSetting.

Referenced by ilTinyMCE\addCustomRTESupport(), ilTinyMCE\addRTESupport(), ilTinyMCE\addUserTextEditor(), and ilTemplate\fillNewContentStyle().

282  {
283  global $DIC;
284 
285  $ilSetting = $DIC->settings();
286 
287  // add version as parameter to force reload for new releases
288  if ($mode != "filesystem") {
289  $vers = str_replace(" ", "-", $ilSetting->get("ilias_version"));
290  $vers = "?vers=" . str_replace(".", "-", $vers);
291  }
292 
293  // use ilStyleDefinition instead of account to get the current skin and style
294  require_once("./Services/Style/System/classes/class.ilStyleDefinition.php");
295  if (ilStyleDefinition::getCurrentSkin() == "default") {
296  $in_style = "./templates/" . ilStyleDefinition::getCurrentSkin() . "/"
297  . ilStyleDefinition::getCurrentStyle() . "_cont.css";
298  } else {
299  $in_style = "./Customizing/global/skin/" . ilStyleDefinition::getCurrentSkin() . "/"
300  . ilStyleDefinition::getCurrentStyle() . "_cont.css";
301  }
302 
303  if (is_file("./" . $in_style)) {
304  return $in_style . $vers;
305  } else {
306  return "templates/default/delos_cont.css" . $vers;
307  }
308  }
global $DIC
Definition: saml.php:7
global $ilSetting
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ getP3PLocation()

static ilUtil::getP3PLocation ( )
static

Get p3p file path.

(Not in use yet, see class.ilTemplate.php->show())

public

Definition at line 256 of file class.ilUtil.php.

References $base, $i, defined, and ILIAS_MODULE.

257  {
258  if (defined("ILIAS_MODULE")) {
259  $base = '';
260  for ($i = 0;$i < count(explode('/', ILIAS_MODULE));$i++) {
261  $base .= "../Services/Privacy/";
262  }
263  } else {
264  $base = "./Services/Privacy/";
265  }
266 
267  if (is_file($base . "w3c/p3p.xml")) {
268  return ILIAS_HTTP_PATH . "w3c/p3p.xml";
269  } else {
270  return ILIAS_HTTP_PATH . "/w3c/p3p_template.xml";
271  }
272  }
$base
Definition: index.php:4
$i
Definition: disco.tpl.php:19
const ILIAS_MODULE
Definition: server.php:14
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

◆ getPasswordRequirementsInfo()

static ilUtil::getPasswordRequirementsInfo ( )
static

infotext for ilPasswordInputGUI setInfo()

<type> $lng

Returns
<string> info about allowed chars for password

Definition at line 1269 of file class.ilUtil.php.

References $DIC, $lng, ilSecuritySettings\_getInstance(), and array.

Referenced by ilUserProfile\addStandardFieldsToForm(), ilObjUserGUI\getValues(), ilPersonalSettingsGUI\initPasswordForm(), and ilPDNewsBlockGUI\initPrivateSettingsForm().

1270  {
1271  global $DIC;
1272 
1273  $lng = $DIC->language();
1274 
1275  include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1276  $security = ilSecuritySettings::_getInstance();
1277 
1278  $infos = array(sprintf($lng->txt('password_allow_chars'), self::getPasswordValidChars(false)));
1279 
1280  // check if password to short
1281  if ($security->getPasswordMinLength() > 0) {
1282  $infos[] = sprintf($lng->txt('password_to_short'), $security->getPasswordMinLength());
1283  }
1284 
1285  // check if password not to long
1286  if ($security->getPasswordMaxLength() > 0) {
1287  $infos[] = sprintf($lng->txt('password_to_long'), $security->getPasswordMaxLength());
1288  }
1289 
1290  // if password must contains Chars and Numbers
1291  if ($security->isPasswordCharsAndNumbersEnabled()) {
1292  $infos[] = $lng->txt('password_must_chars_and_numbers');
1293  }
1294 
1295  // if password must contains Special-Chars
1296  if ($security->isPasswordSpecialCharsEnabled()) {
1297  $infos[] = $lng->txt('password_must_special_chars');
1298  }
1299 
1300  if ($security->getPasswordNumberOfUppercaseChars() > 0) {
1301  $infos[] = sprintf($lng->txt('password_must_contain_ucase_chars'), $security->getPasswordNumberOfUppercaseChars());
1302  }
1303 
1304  if ($security->getPasswordNumberOfLowercaseChars() > 0) {
1305  $infos[] = sprintf($lng->txt('password_must_contain_lcase_chars'), $security->getPasswordNumberOfLowercaseChars());
1306  }
1307 
1308  return implode('<br />', $infos);
1309  }
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
static _getInstance()
Get instance of ilSecuritySettings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPasswordValidChars()

static ilUtil::getPasswordValidChars (   $a_as_regex = true,
  $a_only_special_chars = false 
)
static

All valid chars for password.

Parameters
bool$a_as_regex
bool$a_only_special_chars
Returns
string

Definition at line 1249 of file class.ilUtil.php.

1250  {
1251  if ($a_as_regex) {
1252  if ($a_only_special_chars) {
1253  return '/[_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+/';
1254  } else {
1255  return '/^[A-Za-z0-9_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+$/';
1256  }
1257  } else {
1258  return 'A-Z a-z 0-9 _.+?#-*@!$%~/:;';
1259  }
1260  }

◆ getSafeFilename()

static ilUtil::getSafeFilename (   $a_initial_filename)
static
Parameters
string$a_initial_filename
Returns
mixed|string

Definition at line 3580 of file class.ilUtil.php.

Referenced by ilExAssignment\instructionFileInsertOrder().

3581  {
3582  $file_peaces = explode('.', $a_initial_filename);
3583 
3584  $file_extension = array_pop($file_peaces);
3585 
3586  if (SUFFIX_REPL_ADDITIONAL) {
3587  $string_extensions = SUFFIX_REPL_DEFAULT . "," . SUFFIX_REPL_ADDITIONAL;
3588  } else {
3589  $string_extensions = SUFFIX_REPL_DEFAULT;
3590  }
3591 
3592  $sufixes = explode(",", $string_extensions);
3593 
3594  if (in_array($file_extension, $sufixes)) {
3595  $file_extension = "sec";
3596  }
3597 
3598  array_push($file_peaces, $file_extension);
3599 
3600  $safe_filename = "";
3601  foreach ($file_peaces as $piece) {
3602  $safe_filename .= "$piece";
3603  if ($piece != end($file_peaces)) {
3604  $safe_filename .= ".";
3605  }
3606  }
3607 
3608  return $safe_filename;
3609  }
+ Here is the caller graph for this function:

◆ getSecureTags()

static ilUtil::getSecureTags ( )
static

Definition at line 2521 of file class.ilUtil.php.

References array.

Referenced by ilAssSelfAssessmentQuestionFormatter\getSelfAssessmentTags(), and secureString().

2522  {
2523  return array("strong", "em", "u", "strike", "ol", "li", "ul", "p", "div",
2524  "i", "b", "code", "sup", "sub", "pre", "gap", "a", "img", "bdo");
2525  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getSelectName()

static ilUtil::getSelectName (   $selected,
  $values 
)
static

???

public

Parameters
string
string

Definition at line 412 of file class.ilUtil.php.

413  {
414  return($values[$selected]);
415  }

◆ getStyleSheetLocation()

static ilUtil::getStyleSheetLocation (   $mode = "output",
  $a_css_name = "",
  $a_css_location = "" 
)
static

get full style sheet file name (path inclusive) of current user

Parameters
$modestring Output mode of the style sheet ("output" or "filesystem"). !"filesystem" generates the ILIAS version number as attribute to force the reload of the style sheet in a different ILIAS version
$a_css_namestring The name of the style sheet. If empty, the default style name will be chosen
$a_css_locationstring The location of the style sheet e.g. a module path. This parameter only makes sense when $a_css_name is used public

Definition at line 174 of file class.ilUtil.php.

References $DIC, $filename, $ilSetting, and ilStyleDefinition\getSkins().

Referenced by ilExport\_generateIndexFile(), ilTinyMCE\addRTESupport(), ilCharSelectorGUI\addToPage(), ilTinyMCE\addUserTextEditor(), ilSCORMPresentationGUI\contentSelect(), ilObjTest\deliverPDFfromHTML(), ilTestEvaluationGUI\detailedEvaluation(), ilPageObjectGUI\displayMedia(), ilPCDataTableGUI\editData(), ilSCORMOfflineModeGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilSAHSPresentationGUI\explorer(), ilSCORMPresentationGUI\explorer(), ilObjContentObjectGUI\explorer(), ilSystemStyleHTMLExport\export(), ilForumExportGUI\exportHTML(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilSAHSPresentationGUI\finishSahs(), ilSCORMPresentationGUI\finishSahs(), ilObjTest\getCustomStyles(), ilAttendanceList\getFullscreenHTML(), ilExplorer\getOutput(), ilSCORM13Player\getPlayer(), assMatchingQuestionGUI\getPreview(), ilSCORMOfflineMode\getSopManifestEntries(), ilPlugin\getStyleSheetLocation(), assMatchingQuestionGUI\getTestOutput(), ilObjTest\getTestStyleLocation(), ilLMPresentationGUI\glossary(), ilLMPresentationGUI\ilMedia(), ilFileUploadGUI\initFileUpload(), ilInitialisation\initHTML(), ilInitialisation\initILIAS(), ilPreviewGUI\initPreview(), ilLMPresentationGUI\initScreenHead(), ilLMPresentationGUI\layout(), ilGlossaryPresentationGUI\media(), ilTestServiceGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\outCorrectSolution(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilObjTestGUI\printobject(), ilForumExportGUI\printPost(), ilForumExportGUI\printThread(), ilObjPortfolioGUI\printView(), ilPortfolioPageGUI\renderConsultationHours(), ilTestEvaluationGUI\resetfilterEvaluation(), ilObjTestGUI\reviewobject(), ilSCORM2004ScoGUI\sco_preview(), LTI\ilMainMenuGUI\setTemplateVars(), ilMainMenuGUI\setTemplateVars(), ilContainerLinkListGUI\show(), ilFramesetGUI\show(), ilCalendarPresentationGUI\show(), ilStartUpGUI\showClientList(), ilLMPresentationGUI\showDownloadList(), ilInternalLinkGUI\showLinkHelp(), ilContainerGUI\showLinkListObject(), ilTestPlayerAbstractGUI\showListOfAnswers(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilObjMediaPoolGUI\showPage(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintViewSelection(), ilTestPlayerAbstractGUI\showSideList(), ilLMPresentationGUI\showTableOfContents(), ilRepositoryGUI\showTree(), ilObjSCORM2004LearningModuleGUI\showTree(), ilObjTestGUI\showUserResults(), ilSCORM13Player\specialPage(), ilSAHSPresentationGUI\unloadSahs(), ilSCORMPresentationGUI\unloadSahs(), ilSAHSPresentationGUI\view(), and ilSCORMPresentationGUI\view().

175  {
176  global $DIC;
177 
178  $ilSetting = $DIC->settings();
179 
180  // add version as parameter to force reload for new releases
181  // use ilStyleDefinition instead of account to get the current style
182  require_once("./Services/Style/System/classes/class.ilStyleDefinition.php");
183  $stylesheet_name = (strlen($a_css_name))
184  ? $a_css_name
185  : ilStyleDefinition::getCurrentStyle() . ".css";
186  if (strlen($a_css_location) && (strcmp(substr($a_css_location, -1), "/") != 0)) {
187  $a_css_location = $a_css_location . "/";
188  }
189 
190  $filename = "";
191  // use ilStyleDefinition instead of account to get the current skin
192  require_once("./Services/Style/System/classes/class.ilStyleDefinition.php");
193  if (ilStyleDefinition::getCurrentSkin() != "default") {
194  $filename = "./Customizing/global/skin/" . ilStyleDefinition::getCurrentSkin() . "/" . $a_css_location . $stylesheet_name;
195  }
196  if (strlen($filename) == 0 || !file_exists($filename)) {
197  $filename = "./" . $a_css_location . "templates/default/" . $stylesheet_name;
198  }
199  $vers = "";
200  if ($mode != "filesystem") {
201  $vers = str_replace(" ", "-", $ilSetting->get("ilias_version"));
202  $vers = "?vers=" . str_replace(".", "-", $vers);
203  // use version from template xml to force reload on changes
204  $skin = ilStyleDefinition::getSkins()[ilStyleDefinition::getCurrentSkin()];
205  $vers .= ($skin->getVersion() != '' ? str_replace(".", "-", '-' . $skin->getVersion()) : '');
206  }
207  return $filename . $vers;
208  }
global $DIC
Definition: saml.php:7
global $ilSetting
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTypeIconPath()

static ilUtil::getTypeIconPath (   $a_type,
  $a_obj_id,
  $a_size = 'small' 
)
static

Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Deprecated, use ilObject::_getIcon instead.

Parameters
string$a_typeobj_type
int$a_obj_idobj_id
string$a_sizesize 'tiny','small' or 'big'
Returns
string path
Deprecated:

Definition at line 63 of file class.ilUtil.php.

References $a_type, and ilObject\_getIcon().

Referenced by ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilAdministrationCommandGUI\delete(), ilSCTreeDuplicatesTableGUI\fillObjectRow(), ilObjectCopyProgressTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilObjectTableGUI\fillRow(), ilPathGUI\getHTML(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilTrMatrixTableGUI\getSelectableColumns(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilCourseObjectivesGUI\initFormLimits(), ilPortfolioPageGUI\renderMyCourses(), and ilTestLearningObjectivesStatusGUI\renderStatus().

64  {
65  include_once("./Services/Object/classes/class.ilObject.php");
66  return ilObject::_getIcon($a_obj_id, $a_size, $a_type);
67  }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
$a_type
Definition: workflow.php:92
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getUploadSizeLimitBytes()

static ilUtil::getUploadSizeLimitBytes ( )
static

Definition at line 4344 of file class.ilUtil.php.

4345  {
4346  $uploadSizeLimitBytes = min(
4347  self::convertPhpIniSizeValueToBytes(ini_get('post_max_size')),
4348  self::convertPhpIniSizeValueToBytes(ini_get('upload_max_filesize'))
4349  );
4350 
4351  return $uploadSizeLimitBytes;
4352  }

◆ getUsersOnline()

static ilUtil::getUsersOnline (   $a_user_id = 0)
static

reads all active sessions from db and returns users that are online OR returns only one active user if a user_id is given

Parameters
integeruser_id (optional)
Returns
array

Definition at line 1549 of file class.ilUtil.php.

1550  {
1551  include_once("./Services/User/classes/class.ilObjUser.php");
1552  return ilObjUser::_getUsersOnline($a_user_id);
1553  }

◆ getWebspaceDir()

static ilUtil::getWebspaceDir (   $mode = "filesystem")
static

get webspace directory

Parameters
string$modeuse "filesystem" for filesystem operations and "output" for output operations, e.g. images
Returns
string
Deprecated:
in favour of the filesystem service which should be used for operations on the web dir.
See also
::filesystem()
Filesystems::web()

Definition at line 1512 of file class.ilUtil.php.

References defined.

Referenced by ilMathJax\__construct(), ilObjStyleSheet\_createImagesDirectory(), ilObjMediaObject\_createThumbnailDirectory(), ilChatroomSmilies\_deleteMultipleSmilies(), ilObjFileBasedLMAccess\_determineStartUrl(), ilContainer\_getContainerDirectory(), ilObjMediaObject\_getDirectory(), ilObjStyleSheet\_getImagesDirectory(), ilChatroomAdminSmileyGUI\_getSmileyDir(), ilChatroomSmilies\_getSmileyDir(), ilObjMediaObject\_getThumbnailDirectory(), ilObjMediaObject\_getURL(), ilObjSAHSLearningModuleAccess\_lookupDiskUsage(), ilObjFileBasedLMAccess\_lookupDiskUsage(), ilPCTableGUI\_renderTable(), ilObjUser\_uploadPersonalPicture(), ilTestPlayerAbstractGUI\archiveParticipantSubmission(), ilObjMediaObjectGUI\assignFullscreenObject(), ilObjMediaObjectGUI\assignStandardObject(), ilTestSubmissionReviewGUI\buildPdfFilename(), ilContObjParser\copyMobFiles(), ilObjUser\copyProfilePicturesToDirectory(), ilContainer\createContainerDirectory(), ilObjSAHSLearningModule\createDataDirectory(), ilObjMediaObjectGUI\createDirectoryObject(), ilObjStyleSheet\delete(), ilObjMediaObjectGUI\deleteFileObject(), ilPublicUserProfileGUI\deliverVCard(), ilPageObjectGUI\displayMedia(), ilObjMediaObjectGUI\editFilesObject(), ilObjMediaObjectGUI\executeCommand(), ilObjMediaObject\exportFiles(), ilObjContentObject\exportHTML(), ilCOPageHTMLExport\exportHTMLMOB(), ilObjGlossary\exportHTMLMOB(), ilObjContentObject\exportHTMLMOB(), ilStudyProgrammeTypeTableGUI\fillRow(), ilBadgeHandler\getBasePath(), ilObjStyleSheet\getContentStylePath(), ilObjFileBasedLM\getDataDirectory(), ilObjSAHSLearningModule\getDataDirectory(), ilObjMediaObject\getDataDirectory(), ilPublicUserProfileGUI\getEmbeddable(), ilScormAiccDataSet\getExtendedXmlRepresentation(), ilOrgUnitType\getIconPath(), ilImageMapEditorGUI\getImageMapOutput(), ilSCORMOfflineMode\getLmManifestEntries(), ilFileDataCourse\getOnlineLink(), ilFSStorageCourse\getOnlineLink(), ilObjUser\getPersonalPicturePath(), ilUserXMLWriter\getPictureValue(), ilFSStorageMail\getRelativePathExMailDirectory(), ilChatroomSmilies\getSmiliesBasePath(), ilLMPresentationGUI\ilMedia(), ilScormAiccImporter\importXmlRepresentation(), ilFileSystemStorage5069\init(), ilFileSystemStorage\init(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilGlossaryPresentationGUI\media(), ilObjUser\removeUserPicture(), ilObjUserGUI\removeUserPictureObject(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintView(), ilObjMediaObjectGUI\uploadFileObject(), ilObjSAHSLearningModuleGUI\uploadObject(), ilPersonalProfileGUI\uploadUserPicture(), ilObjUserGUI\uploadUserPictureObject(), ilObjStyleSheet\writeCSSFile(), and ilObjSAHSLearningModule\zipLmForOfflineMode().

1513  {
1514  if ($mode == "filesystem") {
1515  return "./" . ILIAS_WEB_DIR . "/" . CLIENT_ID;
1516  } else {
1517  if (defined("ILIAS_MODULE")) {
1518  return "../" . ILIAS_WEB_DIR . "/" . CLIENT_ID;
1519  } else {
1520  return "./" . ILIAS_WEB_DIR . "/" . CLIENT_ID;
1521  }
1522  }
1523  }
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
+ Here is the caller graph for this function:

◆ groupNameExists()

static ilUtil::groupNameExists (   $a_group_name,
  $a_id = 0 
)
static

checks if group name already exists.

Groupnames must be unique for mailing purposes static function public

Parameters
stringgroupname
integerobj_id of group to exclude from the check.
Returns
boolean true if exists

Definition at line 3392 of file class.ilUtil.php.

References $DIC, $ilDB, $ilErr, $message, and $r.

Referenced by ilSoapGroupAdministration\groupExists(), ilMailGroupAddressType\isValid(), and ilGroupNameAsMailValidator\validate().

3393  {
3394  global $DIC;
3395 
3396  $ilDB = $DIC->database();
3397 
3398  $ilErr = null;
3399  if (isset($DIC["ilErr"])) {
3400  $ilErr = $DIC["ilErr"];
3401  }
3402 
3403  if (empty($a_group_name)) {
3404  $message = __METHOD__ . ": No groupname given!";
3405  $ilErr->raiseError($message, $ilErr->WARNING);
3406  }
3407 
3408  $clause = ($a_id) ? " AND obj_id != " . $ilDB->quote($a_id) . " " : "";
3409 
3410  $q = "SELECT obj_id FROM object_data " .
3411  "WHERE title = " . $ilDB->quote($a_group_name, "text") . " " .
3412  "AND type = " . $ilDB->quote("grp", "text") .
3413  $clause;
3414 
3415  $r = $ilDB->query($q);
3416 
3417  if ($r->numRows()) {
3418  return true;
3419  } else {
3420  return false;
3421  }
3422  }
global $ilErr
Definition: raiseError.php:16
global $DIC
Definition: saml.php:7
$r
Definition: example_031.php:79
catch(Exception $e) $message
global $ilDB
+ Here is the caller graph for this function:

◆ htmlencodePlainString()

static ilUtil::htmlencodePlainString (   $a_str,
  $a_make_links_clickable,
  $a_detect_goto_links = false 
)
static

Encodes a plain text string into HTML for display in a browser.

This function encodes HTML special characters: < > & with < > & and converts newlines into

If $a_make_links_clickable is set to true, URLs in the plain string which are considered to be safe, are made clickable.

Parameters
stringthe plain text string
booleanset this to true, to make links in the plain string clickable.
booleanset this to true, to detect goto links

Definition at line 2620 of file class.ilUtil.php.

References array, and makeClickable().

Referenced by ilMailFolderGUI\cancelDeleteMails(), and ilMailFolderTableGUI\fetchTableData().

2621  {
2622  $encoded = "";
2623 
2624  if ($a_make_links_clickable) {
2625  // Find text sequences in the plain text string which match
2626  // the URI syntax rules, and pass them to ilUtil::makeClickable.
2627  // Encode all other text sequences in the plain text string using
2628  // htmlspecialchars and nl2br.
2629  // The following expressions matches URI's as specified in RFC 2396.
2630  //
2631  // The expression matches URI's, which start with some well known
2632  // schemes, like "http:", or with "www.". This must be followed
2633  // by at least one of the following RFC 2396 expressions:
2634  // - alphanum: [a-zA-Z0-9]
2635  // - reserved: [;\/?:|&=+$,]
2636  // - mark: [\\-_.!~*\'()]
2637  // - escaped: %[0-9a-fA-F]{2}
2638  // - fragment delimiter: #
2639  // - uric_no_slash: [;?:@&=+$,]
2640  $matches = array();
2641  $numberOfMatches = preg_match_all('/(?:(?:http|https|ftp|ftps|mailto):|www\.)(?:[a-zA-Z0-9]|[;\/?:|&=+$,]|[\\-_.!~*\'()]|%[0-9a-fA-F]{2}|#|[;?:@&=+$,])+/', $a_str, $matches, PREG_OFFSET_CAPTURE);
2642  $pos1 = 0;
2643  $encoded = "";
2644 
2645  foreach ($matches[0] as $match) {
2646  $matched_text = $match[0];
2647  $pos2 = $match[1];
2648 
2649  // encode plain text
2650  $encoded .= nl2br(htmlspecialchars(substr($a_str, $pos1, $pos2 - $pos1)));
2651 
2652  // encode URI
2653  $encoded .= ilUtil::makeClickable($matched_text, $a_detect_goto_links);
2654 
2655 
2656  $pos1 = $pos2 + strlen($matched_text);
2657  }
2658  if ($pos1 < strlen($a_str)) {
2659  $encoded .= nl2br(htmlspecialchars(substr($a_str, $pos1)));
2660  }
2661  } else {
2662  $encoded = nl2br(htmlspecialchars($a_str));
2663  }
2664  return $encoded;
2665  }
static makeClickable($a_text, $detectGotoLinks=false)
makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ htmlentitiesOutsideHTMLTags()

static ilUtil::htmlentitiesOutsideHTMLTags (   $htmlText)
static

Encodes HTML entities outside of HTML tags.

Definition at line 2127 of file class.ilUtil.php.

References $i, and array.

2128  {
2129  $matches = array();
2130  $sep = '###HTMLTAG###';
2131 
2132  preg_match_all("@<[^>]*>@", $htmlText, $matches);
2133  $tmp = preg_replace("@(<[^>]*>)@", $sep, $htmlText);
2134  $tmp = explode($sep, $tmp);
2135 
2136  for ($i=0; $i<count($tmp); $i++) {
2137  $tmp[$i] = htmlentities($tmp[$i], ENT_COMPAT, "UTF-8");
2138  }
2139 
2140  $tmp = join($sep, $tmp);
2141 
2142  for ($i=0; $i<count($matches[0]); $i++) {
2143  $tmp = preg_replace("@$sep@", $matches[0][$i], $tmp, 1);
2144  }
2145 
2146  return $tmp;
2147  }
Create styles array
The data for the language used.
$i
Definition: disco.tpl.php:19

◆ ilTempnam()

static ilUtil::ilTempnam (   $a_temp_path = null)
static

Create a temporary file in an ILIAS writable directory.

Returns
string File name of the temporary file

Definition at line 1578 of file class.ilUtil.php.

References createDirectory(), and getDataDir().

Referenced by ilImagemapPreview\__construct(), ilTestExport\aggregatedResultsToExcel(), ilTestArchiveService\buildOverviewFilename(), ilVirusScanner\createBufferFile(), ilRestFileStorage\createFile(), ilAdvancedMDParser\createLocalRecord(), ilTestExportGUI\createTestArchiveExport(), ilCalendarCopyFilesToTempDirectoryJob\createUniqueTempDirectory(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilExSubmission\downloadAllAssignmentFiles(), ilObjFolder\downloadFolder(), ilExSubmission\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilPageLayoutAdministrationGUI\exportLayout(), ilTestExport\exportToExcel(), ilHtmlToPdfTransformerFactory\generateTempPath(), ilAbstractHtmlToPdfTransformer\getTempFileName(), ilPhantomJSRenderer\getTempFileName(), ilScorm2004DataSet\getXmlRecord(), ilUserDataSet\getXmlRecord(), ilCloudPluginUploadGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilFileXMLParser\handlerBeginTag(), ilFileXMLParser\handlerEndTag(), ilImport\importObject(), ilDidacticTemplateSettingsGUI\importTemplate(), ilAssFileUploadUploadsExporter\initFilenames(), ilFilePreviewRenderer\prepareFileForExec(), ilExSubmission\processUploadedZipFile(), ilGhostscriptRenderer\renderImages(), ilUserImportParser\saveTempImage(), ilObjFileGUI\saveUnzip(), ilBookmarkAdministrationGUI\sendmail(), ilExAssignment\sendMultiFeedbackStructureFile(), ilExcel\sendToClient(), ilRestFileStorage\storeFileForRest(), unzip(), ilECSConnector\updateResource(), ilCalendarCategoryGUI\uploadAppointments(), ilObjLanguageExtGUI\uploadObject(), and ilExcel\writeToTmpFile().

1579  {
1580  if ($a_temp_path === null) {
1581  $temp_path = ilUtil::getDataDir() . "/temp";
1582  } else {
1583  $temp_path = $a_temp_path;
1584  }
1585 
1586  if (!is_dir($temp_path)) {
1587  ilUtil::createDirectory($temp_path);
1588  }
1589  $temp_name = tempnam($temp_path, "tmp");
1590  // --->
1591  // added the following line because tempnam creates a backslash on some
1592  // Windows systems which leads to problems, because the "...\tmp..." can be
1593  // interpreted as "...{TAB-CHARACTER}...". The normal slash works fine
1594  // even under windows (Helmut Schottmüller, 2005-08-31)
1595  $temp_name = str_replace("\\", "/", $temp_name);
1596  // --->
1597  unlink($temp_name);
1598  return $temp_name;
1599  }
static createDirectory($a_dir, $a_mod=0755)
create directory
static getDataDir()
get data directory (outside webspace)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ img()

static ilUtil::img (   $a_src,
  $a_alt = "",
  $a_width = "",
  $a_height = "",
  $a_border = 0,
  $a_id = "",
  $a_class = "" 
)
static

Build img tag.

Definition at line 1937 of file class.ilUtil.php.

References $img.

Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilLPObjectStatisticsLPTableGUI\__construct(), ilLMChapterImportForm\addNode(), ilDclRecordListTableGUI\buildData(), ilMailFolderGUI\cancelDeleteMails(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilTable2GUI\fillHeader(), ilObjClipboardTableGUI\fillRow(), ilTrashTableGUI\fillRow(), ilPCIIMOverlaysTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilSkillCatTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilAdministrationGUI\getDropDown(), ilCloudPluginItemCreationListGUI\getGroupedListItems(), ilObjectListGUI\getHeaderAction(), ilDclMobRecordRepresentation\getHTML(), ilMainMenuSearchGUI\getHTML(), ilLMChapterImportForm\getHTML(), ilObjectAddNewItemGUI\getHTML(), ilTaggingGUI\getHTML(), ilTrSummaryTableGUI\getItems(), ilObjContentObjectGUI\getLayoutOption(), ilLTIViewGUI\getNavEntries(), ilNoteGUI\getNoteListHTML(), ilLearningProgressGUI\initCollectionManualForm(), ilLMPageObjectGUI\initEditLayoutForm(), ilOnScreenChatGUI\initializeFrontend(), ilChatroomAdminSmileyGUI\initSmiliesEditForm(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilObjMediaPoolSubItemListGUI\parseImage(), ilSCORMTrackingItemsTableGUI\parseValue(), ilSCORM2004TrackingItemsTableGUI\parseValue(), ilLPTableBaseGUI\parseValue(), ilLPStatus\preloadListGUIData(), ilNestedListInputGUI\render(), ilMainMenuGUI\renderEntry(), ilExplorerBaseGUI\renderNode(), ilMainMenuGUI\setTemplateVars(), ilObjMediaCastGUI\showGallery(), and ilLearningProgressGUI\showtlt().

1938  {
1939  $img = '<img src="' . $a_src . '"';
1940  if ($a_alt != "") {
1941  $img.= ' alt="' . htmlspecialchars($a_alt) . '" title="' . htmlspecialchars($a_alt) . '"';
1942  }
1943  if ($a_width != "") {
1944  $img.= ' width="' . htmlspecialchars($a_width) . '"';
1945  }
1946  if ($a_height != "") {
1947  $img.= ' height="' . htmlspecialchars($a_height) . '"';
1948  }
1949  if ($a_class != "") {
1950  $img.= ' class="' . $a_class . '"';
1951  }
1952  if ($a_id != "") {
1953  $img.= ' id="' . $a_id . '"';
1954  }
1955  $img.= ' border="' . (int) $a_border . '"/>';
1956 
1957  return $img;
1958  }
+ Here is the caller graph for this function:

◆ includeMathjax()

ilUtil::includeMathjax (   $a_tpl = null)

Include Mathjax.

Deprecated:

Definition at line 4167 of file class.ilUtil.php.

References ilMathJax\getInstance().

4168  {
4169  include_once './Services/MathJax/classes/class.ilMathJax.php';
4170  ilMathJax::getInstance()->includeMathJax($a_tpl);
4171  }
static getInstance()
Singleton: get instance.
+ Here is the call graph for this function:

◆ infoPanel()

static ilUtil::infoPanel (   $a_keep = true)
static

Definition at line 4570 of file class.ilUtil.php.

References $_SESSION, $DIC, $ilUser, $lng, $tpl, ilFrameTargetInfo\_getFrame(), and ilSession\clear().

Referenced by ilLearningProgressBaseGUI\__buildHeader(), ilObjRoleGUI\__prepareOutput(), ilObjLinkResourceGUI\__prepareOutput(), ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilPDNewsGUI\displayHeader(), ilPDNotesGUI\displayHeader(), ilBookmarkAdministrationGUI\displayHeader(), ilPersonalDesktopGUI\getStandardTemplates(), ilPersonalDesktopGUI\prepareContentView(), ilSearchBaseGUI\prepareOutput(), ilObjectGUI\prepareOutput(), ilObjTestGUI\prepareSubGuiOutput(), and ilMailGUI\showHeader().

4571  {
4572  global $DIC;
4573 
4574  $tpl = $DIC["tpl"];
4575  $lng = $DIC->language();
4576  $ilUser = $DIC->user();
4577 
4578  if (!empty($_SESSION["infopanel"]) and is_array($_SESSION["infopanel"])) {
4579  $tpl->addBlockFile(
4580  "INFOPANEL",
4581  "infopanel",
4582  "tpl.infopanel.html",
4583  "Services/Utilities"
4584  );
4585  $tpl->setCurrentBlock("infopanel");
4586 
4587  if (!empty($_SESSION["infopanel"]["text"])) {
4588  $link = "<a href=\"" . $_SESSION["infopanel"]["link"] . "\" target=\"" .
4589  ilFrameTargetInfo::_getFrame("MainContent") .
4590  "\">";
4591  $link .= $lng->txt($_SESSION["infopanel"]["text"]);
4592  $link .= "</a>";
4593  }
4594 
4595  // deactivated
4596  if (!empty($_SESSION["infopanel"]["img"])) {
4597  $link .= "<td><a href=\"" . $_SESSION["infopanel"]["link"] . "\" target=\"" .
4598  ilFrameTargetInfo::_getFrame("MainContent") .
4599  "\">";
4600  $link .= "<img src=\"" . "./templates/" . $ilUser->prefs["skin"] . "/images/" .
4601  $_SESSION["infopanel"]["img"] . "\" border=\"0\" vspace=\"0\"/>";
4602  $link .= "</a></td>";
4603  }
4604 
4605  $tpl->setVariable("INFO_ICONS", $link);
4606  $tpl->parseCurrentBlock();
4607  }
4608 
4609  //if (!$a_keep)
4610  //{
4611  ilSession::clear("infopanel");
4612  //}
4613  }
$_SESSION["AccountId"]
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
$ilUser
Definition: imgupload.php:18
static clear($a_var)
Unset a value.
static _getFrame($a_class, $a_type='')
Get content frame name.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertInstIntoID()

static ilUtil::insertInstIntoID (   $a_value)
static

inserts installation id into ILIAS id

e.g. "il__pg_3" -> "il_43_pg_3"

Definition at line 3373 of file class.ilUtil.php.

Referenced by ilObjQuestionPool\modifyExportIdentifier(), ilObjMediaObject\modifyExportIdentifier(), ilObjTest\modifyExportIdentifier(), and ilMediaObjectDataSet\readData().

3374  {
3375  if (substr($a_value, 0, 4) == "il__") {
3376  $a_value = "il_" . IL_INST_ID . "_" . substr($a_value, 4, strlen($a_value) - 4);
3377  }
3378 
3379  return $a_value;
3380  }
+ Here is the caller graph for this function:

◆ insertLatexImages()

static ilUtil::insertLatexImages (   $a_text,
  $a_start = '[tex]',
  $a_end = '[/tex]' 
)
static

replace [tex]...[/tex] tags with formula image code

Deprecated:

Definition at line 4177 of file class.ilUtil.php.

References ilMathJax\getInstance().

4178  {
4179  include_once './Services/MathJax/classes/class.ilMathJax.php';
4180  return ilMathJax::getInstance()->insertLatexImages($a_text, $a_start, $a_end);
4181  }
static getInstance()
Singleton: get instance.
+ Here is the call graph for this function:

◆ is_email()

static ilUtil::is_email (   $a_email,
ilMailRfc822AddressParserFactory  $mailAddressParserFactory = null 
)
static

This preg-based function checks whether an e-mail address is formally valid.

It works with all top level domains including the new ones (.biz, .info, .museum etc.) and the special ones (.arpa, .int etc.) as well as with e-mail addresses based on IPs (e.g. webma.nosp@m.ster.nosp@m.@123..nosp@m.45.1.nosp@m.23.45) Valid top level domains: http://data.iana.org/TLD/tlds-alpha-by-domain.txt

Author
Unknown mail@.nosp@m.phil.nosp@m.ipp-l.nosp@m.ouis.nosp@m..de (source: http://www.php.net/preg_match) public
Parameters
stringemail address
ilMailRfc822AddressParserFactory | null$mailAddressParserFactory
Returns
bool true if valid

Definition at line 1070 of file class.ilUtil.php.

References $DIC, $ilErr, $parser, and ilMail\ILIAS_HOST.

Referenced by ilMailAutoCompleteProviderEmailFilter\accept(), ilSetup\checkClientContact(), ilEMailInputGUI\checkInput(), ilMimeMailNotification\initLanguage(), ilSurveyExecutionGUI\mailUserResults(), ilObjSurveyGUI\mailUserResultsObject(), ilPersonalProfileGUI\saveProfile(), ilObjSurvey\updateCode(), ilCalendarUserNotification\validate(), and ilObjCourse\validateInfoSettings().

1071  {
1072  global $DIC;
1073 
1074  $ilErr = $DIC["ilErr"];
1075 
1076  if ($mailAddressParserFactory === null) {
1077  $mailAddressParserFactory = new ilMailRfc822AddressParserFactory();
1078  }
1079  // additional check for ilias object is needed,
1080  // otherwise setup will fail with this if branch
1081  if (is_object($ilErr)) { // seems to work in Setup now
1082  try {
1083  $parser = $mailAddressParserFactory->getParser($a_email);
1084  $addresses = $parser->parse();
1085  return count($addresses) == 1 && $addresses[0]->getHost() != ilMail::ILIAS_HOST;
1086  } catch (ilException $e) {
1087  return false;
1088  }
1089  } else {
1090  $tlds = strtolower(
1091  "AC|AD|AE|AERO|AF|AG|AI|AL|AM|AN|AO|AQ|AR|ARPA|AS|ASIA|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BIZ|BJ|BM|BN|BO|BR|BS|BT|BV|BW|BY|" .
1092  "BZ|CA|CAT|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO|COM|COOP|CR|CU|CV|CX|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EDU|EE|EG|" .
1093  "ER|ES|ET|EU|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GG|GH|GI|GL|GM|GN|GOV|GP|GQ|GR|GS|GT|GU|GW|GY|HK|HM|HN|HR|HT|" .
1094  "HU|ID|IE|IL|IM|IN|INFO|INT|IO|IQ|IR|IS|IT|JE|JM|JO|JOBS|JP|KE|KG|KH|KI|KM|KN|KP|KR|KW|KY|KZ|LA|LB|LC|" .
1095  "LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MD|ME|MG|MH|MIL|MK|ML|MM|MN|MO|MOBI|MP|MQ|MR|MS|MT|MU|MUSEUM|MV|MW|MX|" .
1096  "MY|MZ|NA|NAME|NC|NE|NET|NF|NG|NI|NL|NO|NP|NR|NU|NZ|OM|ORG|PA|PE|PF|PG|PH|PK|PL|PM|PN|PR|PRO|PS|" .
1097  "PT|PW|PY|QA|RE|RO|RS|RU|RW|SA|SB|SC|SD|SE|SG|SH|SI|SJ|SK|SL|SM|SN|SO|SR|ST|SU|SV|SY|SZ|TC|TD|TEL|" .
1098  "TF|TG|TH|TJ|TK|TL|TM|TN|TO|TP|TR|TRAVEL|TT|TV|TW|TZ|UA|UG|UK|US|UY|UZ|VA|VC|VE|VG|VI|VN|VU|" .
1099  "WF|WS|XN|YE|YT|YU|ZA|ZM|ZW"
1100  );
1101 
1102  return(preg_match("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(" . $tlds . ")|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i", $a_email));
1103  }
1104  }
global $ilErr
Definition: raiseError.php:16
const ILIAS_HOST
global $DIC
Definition: saml.php:7
Class ilMailRfc822AddressParserFactory.
$parser
Definition: BPMN2Parser.php:23
+ Here is the caller graph for this function:

◆ isAPICall()

static ilUtil::isAPICall ( )
static

Definition at line 3668 of file class.ilUtil.php.

References $_SERVER.

Referenced by ilRepositoryGUI\__construct(), and ilAdministrationGUI\__construct().

3669  {
3670  return strpos($_SERVER["SCRIPT_FILENAME"], "api") !== false ||
3671  strpos($_SERVER["SCRIPT_FILENAME"], "dummy") !== false;
3672  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
+ Here is the caller graph for this function:

◆ isConvertVersionAtLeast()

static ilUtil::isConvertVersionAtLeast (   $a_version)
static

Compare convert version numbers.

Parameters
string$a_versionw.x.y-z
Returns
bool

Definition at line 1845 of file class.ilUtil.php.

References $version, and execQuoted().

Referenced by ilObjMediaObject\generatePreviewPic(), ilPersonalProfileGUI\uploadUserPicture(), and ilObjUserGUI\uploadUserPictureObject().

1846  {
1847  $current_version = ilUtil::execQuoted(PATH_TO_CONVERT, "--version");
1848  $current_version = self::processConvertVersion($current_version[0]);
1849  $version = self::processConvertVersion($a_version);
1850  if ($current_version >= $version) {
1851  return true;
1852  }
1853  return false;
1854  }
static execQuoted($cmd, $args=null)
exec command and fix spaces on windows
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isDN()

static ilUtil::isDN (   $a_str)
static

Definition at line 3992 of file class.ilUtil.php.

Referenced by ilRadiusSettings\validateServers().

3993  {
3994  return(preg_match("/^[a-z]+([a-z0-9-]*[a-z0-9]+)?(\.([a-z]+([a-z0-9-]*[a-z0-9]+)?)+)*$/", $a_str));
3995  }
+ Here is the caller graph for this function:

◆ isHTML()

static ilUtil::isHTML (   $a_text)
static

Checks if a given string contains HTML or not.

Parameters
string$a_textText which should be checked
Returns
boolean public

Definition at line 4250 of file class.ilUtil.php.

Referenced by assTextQuestion\getSolutionSubmit(), ilAssSelfAssessmentQuestionFormatter\handleLineBreaks(), and assQuestion\isHTML().

4251  {
4252  if (strlen(strip_tags($a_text)) < strlen($a_text)) {
4253  return true;
4254  }
4255 
4256  return false;
4257  }
+ Here is the caller graph for this function:

◆ isIPv4()

static ilUtil::isIPv4 (   $a_str)
static

Definition at line 3998 of file class.ilUtil.php.

Referenced by ilRadiusSettings\validateServers().

3999  {
4000  return(preg_match("/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\." .
4001  "(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/", $a_str));
4002  }
+ Here is the caller graph for this function:

◆ isLogin()

static ilUtil::isLogin (   $a_login)
static

Definition at line 1317 of file class.ilUtil.php.

Referenced by ilUserLoginInputGUI\checkInput(), ilAuthProviderApache\doAuthentication(), ilAuthContainerApache\forceCreation(), ilAccountRegistrationGUI\saveForm(), and ilPersonalProfileGUI\savePersonalData().

1318  {
1319  if (empty($a_login)) {
1320  return false;
1321  }
1322 
1323  if (strlen($a_login) < 3) {
1324  return false;
1325  }
1326 
1327  // FIXME - If ILIAS is configured to use RFC 822
1328  // compliant mail addresses we should not
1329  // allow the @ character.
1330  if (!preg_match("/^[A-Za-z0-9_\.\+\*\@!\$\%\~\-]+$/", $a_login)) {
1331  return false;
1332  }
1333 
1334  return true;
1335  }
+ Here is the caller graph for this function:

◆ isPassword()

static ilUtil::isPassword (   $a_passwd,
$customError = null 
)
static

validates a password public

Parameters
stringpassword
Returns
boolean true if valid

Definition at line 1114 of file class.ilUtil.php.

References $DIC, $errors, $lng, ilSecuritySettings\_getInstance(), array, and ilStr\strLen().

Referenced by ilPasswordInputGUI\checkInput(), and ilPersonalSettingsGUI\savePassword().

1115  {
1116  global $DIC;
1117 
1118  $lng = $DIC->language();
1119 
1120  include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1121  $security = ilSecuritySettings::_getInstance();
1122 
1123  // check if password is empty
1124  if (empty($a_passwd)) {
1125  $customError = $lng->txt('password_empty');
1126  return false;
1127  }
1128 
1129  $isPassword = true;
1130  $errors = array();
1131 
1132  // check if password to short
1133  if ($security->getPasswordMinLength() > 0 && strlen($a_passwd) < $security->getPasswordMinLength()) {
1134  $errors[] = sprintf($lng->txt('password_to_short'), $security->getPasswordMinLength());
1135  $isPassword = false;
1136  }
1137 
1138  // check if password not to long
1139  // Hmmmmm, maybe we should discuss this limitation. In my opinion it is stupid to limit the password length ;-). There should only be a technical limitation (field size in database).
1140  if ($security->getPasswordMaxLength() > 0 && strlen($a_passwd) > $security->getPasswordMaxLength()) {
1141  $errors[] = sprintf($lng->txt('password_to_long'), $security->getPasswordMaxLength());
1142  $isPassword = false;
1143  }
1144 
1145  // if password must contains Chars and Numbers
1146  if ($security->isPasswordCharsAndNumbersEnabled()) {
1147  $hasCharsAndNumbers = true;
1148 
1149  // check password for existing chars
1150  if (!preg_match('/[A-Za-z]+/', $a_passwd)) {
1151  $hasCharsAndNumbers = false;
1152  }
1153 
1154  // check password for existing numbers
1155  if (!preg_match('/[0-9]+/', $a_passwd)) {
1156  $hasCharsAndNumbers = false;
1157  }
1158 
1159  if (!$hasCharsAndNumbers) {
1160  $errors[] = $lng->txt('password_must_chars_and_numbers');
1161  $isPassword = false;
1162  }
1163  }
1164 
1165  require_once 'Services/Utilities/classes/class.ilStr.php';
1166  if ($security->getPasswordNumberOfUppercaseChars() > 0) {
1167  if (ilStr::strLen($a_passwd) - ilStr::strLen(preg_replace('/[A-Z]/', '', $a_passwd)) < $security->getPasswordNumberOfUppercaseChars()) {
1168  $errors[] = sprintf($lng->txt('password_must_contain_ucase_chars'), $security->getPasswordNumberOfUppercaseChars());
1169  $isPassword = false;
1170  }
1171  }
1172 
1173  if ($security->getPasswordNumberOfLowercaseChars() > 0) {
1174  if (ilStr::strLen($a_passwd) - ilStr::strLen(preg_replace('/[a-z]/', '', $a_passwd)) < $security->getPasswordNumberOfLowercaseChars()) {
1175  $errors[] = sprintf($lng->txt('password_must_contain_lcase_chars'), $security->getPasswordNumberOfLowercaseChars());
1176  $isPassword = false;
1177  }
1178  }
1179 
1180  // if password must contains Special-Chars
1181  if ($security->isPasswordSpecialCharsEnabled()) {
1182  // check password for existing special-chars
1183  if (!preg_match(self::getPasswordValidChars(true, true), $a_passwd)) {
1184  $errors[] = $lng->txt('password_must_special_chars');
1185  $isPassword = false;
1186  }
1187  }
1188 
1189  // ensure password matches the positive list of chars/special-chars
1190  if (!preg_match(self::getPasswordValidChars(), $a_passwd)) {
1191  $errors[] = $lng->txt('password_contains_invalid_chars');
1192  $isPassword = false;
1193  }
1194 
1195  // build custom error message
1196  if (count($errors) == 1) {
1197  $customError = $errors[0];
1198  } elseif (count($errors) > 1) {
1199  $customError = $lng->txt('password_multiple_errors');
1200  $customError .= '<br />' . implode('<br />', $errors);
1201  }
1202 
1203  return $isPassword;
1204  }
static strLen($a_string)
Definition: class.ilStr.php:78
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
$errors
Definition: index.php:6
global $lng
Definition: privfeed.php:17
static _getInstance()
Get instance of ilSecuritySettings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isPasswordValidForUserContext()

static ilUtil::isPasswordValidForUserContext (   $clear_text_password,
  $user,
$error_language_variable = null 
)
static
Parameters
string$clear_text_passwordThe validated clear text password
ilObjUser | string | array$userCould be an instance of ilObjUser, the users' loginname as string, or an array containing the users' loginname and id
null | string$error_language_variable
Returns
bool

Definition at line 1212 of file class.ilUtil.php.

References ilSecuritySettings\_getInstance().

Referenced by ilAccountRegistrationGUI\saveForm(), ilPersonalSettingsGUI\savePassword(), and ilPasswordAssistanceGUI\submitAssignPasswordForm().

1213  {
1214  include_once 'Services/PrivacySecurity/classes/class.ilSecuritySettings.php';
1215  $security = ilSecuritySettings::_getInstance();
1216 
1217  $login = null;
1218 
1219  if (is_string($user)) {
1220  $login = $user;
1221  } elseif (is_array($user)) {
1222  // Try to get loginname and user_id from array
1223  $login = $user['login'];
1224  $userId = $user['id'];
1225  } elseif ($user instanceof ilObjUser) {
1226  $login = $user->getLogin();
1227  $userId = $user->getId();
1228  }
1229 
1230  // The user context (user instance or id) can be used for further validation (e.g. compare a password with the users' password history, etc.) in future releases.
1231 
1232  if ($login && (int) $security->getPasswordMustNotContainLoginnameStatus() &&
1233  strpos(strtolower($clear_text_password), strtolower($login)) !== false
1234  ) {
1235  $error_language_variable = 'password_contains_parts_of_login_err';
1236  return false;
1237  }
1238 
1239  return true;
1240  }
static _getInstance()
Get instance of ilSecuritySettings.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isWindows()

static ilUtil::isWindows ( )
static

check wether the current client system is a windows system

Definition at line 3442 of file class.ilUtil.php.

Referenced by ilPreviewRenderer\createPreviewImage(), ilGitInformation\detect(), ilSetupGUI\determineTools(), execQuoted(), ilSetupGUI\initBasicSettingsForm(), ilSetupGUI\saveBasicSettings(), and ilSetupGUI\updateBasicSettings().

3443  {
3444  if (strtolower(substr(php_uname(), 0, 3)) == "win") {
3445  return true;
3446  }
3447  return false;
3448  }
+ Here is the caller graph for this function:

◆ KT_replaceParam()

static ilUtil::KT_replaceParam (   $qstring,
  $paramName,
  $paramValue 
)
static

Definition at line 3674 of file class.ilUtil.php.

Referenced by replaceUrlParameterString().

3675  {
3676  if (preg_match("/&" . $paramName . "=/", $qstring)) {
3677  return preg_replace("/&" . $paramName . "=[^&]+/", "&" . $paramName . "=" . urlencode($paramValue), $qstring);
3678  } else {
3679  return $qstring . "&" . $paramName . "=" . urlencode($paramValue);
3680  }
3681  }
+ Here is the caller graph for this function:

◆ Linkbar()

static ilUtil::Linkbar (   $AScript,
  $AHits,
  $ALimit,
  $AOffset,
  $AParams = array(),
  $ALayout = array(),
  $prefix = '' 
)
static

Linkbar Diese Funktion erzeugt einen typischen Navigationsbalken mit "Previous"- und "Next"-Links und den entsprechenden Seitenzahlen.

die komplette LinkBar wird zur?ckgegeben der Variablenname f?r den offset ist "offset"

Author
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

public

Parameters
integerName der Skriptdatei (z.B. test.php)
integerAnzahl der Elemente insgesamt
integerAnzahl der Elemente pro Seite
integerDas aktuelle erste Element in der Liste
arrayDie zu ?bergebenen Parameter in der Form $AParams["Varname"] = "Varwert" (optional)
arraylayout options (all optional) link => css name for -tag prev => value for 'previous page' (default: '<<') next => value for 'next page' (default: '>>')
Returns
array linkbar or false on error

Definition at line 648 of file class.ilUtil.php.

References $i, $key, and $params.

Referenced by ilObjForumGUI\getForumObjects(), and ilTableGUI\render().

649  {
650  $LinkBar = "";
651 
652  $layout_link = "";
653  $layout_prev = "&lt;&lt;";
654  $layout_next = "&gt;&gt;";
655 
656  // layout options
657  if ((is_array($ALayout) && (count($ALayout) > 0))) {
658  if ($ALayout["link"]) {
659  $layout_link = " class=\"" . $ALayout["link"] . "\"";
660  }
661 
662  if ($ALayout["prev"]) {
663  $layout_prev = $ALayout["prev"];
664  }
665 
666  if ($ALayout["next"]) {
667  $layout_next = $ALayout["next"];
668  }
669  }
670 
671  // show links, if hits greater limit
672  // or offset > 0 (can be > 0 due to former setting)
673  if ($AHits > $ALimit || $AOffset > 0) {
674  if (!empty($AParams)) {
675  foreach ($AParams as $key => $value) {
676  $params.= $key . "=" . $value . "&";
677  }
678  }
679  // if ($params) $params = substr($params,0,-1);
680  if (strpos($AScript, '&')) {
681  $link = $AScript . "&" . $params . $prefix . "offset=";
682  } else {
683  $link = $AScript . "?" . $params . $prefix . "offset=";
684  }
685 
686  // ?bergehe "zurck"-link, wenn offset 0 ist.
687  if ($AOffset >= 1) {
688  $prevoffset = $AOffset - $ALimit;
689  if ($prevoffset < 0) {
690  $prevoffset = 0;
691  }
692  $LinkBar .= "<a" . $layout_link . " href=\"" . $link . $prevoffset . "\">" . $layout_prev . "&nbsp;</a>";
693  }
694 
695  // Ben?tigte Seitenzahl kalkulieren
696  $pages=intval($AHits/$ALimit);
697 
698  // Wenn ein Rest bleibt, addiere eine Seite
699  if (($AHits % $ALimit)) {
700  $pages++;
701  }
702 
703  // Bei Offset = 0 keine Seitenzahlen anzeigen : DEAKTIVIERT
704  // if ($AOffset != 0) {
705 
706  // ansonsten zeige Links zu den anderen Seiten an
707  for ($i = 1 ;$i <= $pages ; $i++) {
708  $newoffset=$ALimit*($i-1);
709 
710  if ($newoffset == $AOffset) {
711  $LinkBar .= "[" . $i . "] ";
712  } else {
713  $LinkBar .= '<a ' . $layout_link . ' href="' .
714  $link . $newoffset . '">[' . $i . ']</a> ';
715  }
716  }
717  // }
718 
719  // Checken, ob letze Seite erreicht ist
720  // Wenn nicht, gebe einen "Weiter"-Link aus
721  if (!(($AOffset/$ALimit)==($pages-1)) && ($pages!=1)) {
722  $newoffset=$AOffset+$ALimit;
723  $LinkBar .= "<a" . $layout_link . " href=\"" . $link . $newoffset . "\">&nbsp;" . $layout_next . "</a>";
724  }
725 
726  return $LinkBar;
727  } else {
728  return false;
729  }
730  }
$params
Definition: disable.php:11
$i
Definition: disco.tpl.php:19
$key
Definition: croninfo.php:18
+ Here is the caller graph for this function:

◆ makeClickable()

static ilUtil::makeClickable (   $a_text,
  $detectGotoLinks = false 
)
static

makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen

public

Parameters
string$text,Der Text
boolean$detectGotoLinksif true, internal goto-links will be retargeted to _self and text is replaced by title
Returns
string clickable link

Definition at line 743 of file class.ilUtil.php.

References $parser, $ret, and array.

Referenced by ilPDMailGUI\__construct(), ilAppointmentPresentationGUI\addEventDescription(), ilExAssignmentGUI\addInstructions(), ilMimeMail\buildBodyParts(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilCourseRegistrationGUI\fillInformations(), ilGroupRegistrationGUI\fillInformations(), ilPDNewsTableGUI\fillRow(), ilADTExternalLinkPresentationBridge\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), htmlencodePlainString(), ilObjCourseGUI\infoScreen(), ilObjSessionGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilNewsDefaultRendererGUI\makeClickable(), ilPDNewsTableGUI\makeClickable(), and ilNewsForContextBlockGUI\makeClickable().

744  {
745  // New code, uses MediaWiki Sanitizer
746  $ret = $a_text;
747 
748  // www-URL ohne ://-Angabe
749  $ret = preg_replace(
750  "/(^|[\s]+)(www\.)([A-Za-z0-9#&=?.\/\-]+)/i",
751  "$1http://$2$3",
752  $ret
753  );
754 
755  // ftp-URL ohne ://-Angabe
756  $ret = preg_replace(
757  "/(^|[\s]+)(ftp\.)([A-Za-z0-9#&=?.\/\-]+)/i",
758  "$1ftp://$2$3",
759  $ret
760  );
761 
762  // E-Mail (this does not work as expected, users must add mailto: manually)
763  //$ret = preg_replace("/(([a-z0-9_]|\-|\.)+@([^[\s]*)([A-Za-z0-9\-]))/i",
764  // "mailto:$1", $ret);
765 
766  // mask existing image tags
767  $ret = str_replace('src="http://', '"***masked_im_start***', $ret);
768 
769  include_once("./Services/Utilities/classes/class.ilMWParserAdapter.php");
770  $parser = new ilMWParserAdapter();
771  $ret = $parser->replaceFreeExternalLinks($ret);
772 
773  // unmask existing image tags
774  $ret = str_replace('"***masked_im_start***', 'src="http://', $ret);
775 
776  // Should be Safe
777 
778  if ($detectGotoLinks) {
779  // replace target blank with self and text with object title.
780  $regExp = "<a[^>]*href=\"(" . str_replace("/", "\/", ILIAS_HTTP_PATH) . "\/goto.php\?target=\w+_(\d+)[^\"]*)\"[^>]*>[^<]*<\/a>";
781  // echo htmlentities($regExp);
782  $ret = preg_replace_callback(
783  "/" . $regExp . "/i",
784  array("ilUtil", "replaceLinkProperties"),
785  $ret
786  );
787 
788  // Static links
789  $regExp = "<a[^>]*href=\"(" . str_replace("/", "\/", ILIAS_HTTP_PATH) . "\/goto_.*[a-z0-9]+_([0-9]+)\.html)\"[^>]*>[^<]*<\/a>";
790  // echo htmlentities($regExp);
791  $ret = preg_replace_callback(
792  "/" . $regExp . "/i",
793  array("ilUtil", "replaceLinkProperties"),
794  $ret
795  );
796  }
797 
798  return($ret);
799  }
Create styles array
The data for the language used.
$parser
Definition: BPMN2Parser.php:23
$ret
Definition: parser.php:6
+ Here is the caller graph for this function:

◆ makeDateSelect()

static ilUtil::makeDateSelect (   $prefix,
  $year = "",
  $month = "",
  $day = "",
  $startyear = "",
  $a_long_month = true,
  $a_further_options = array(),
  $emptyoption = false 
)
static

Creates a combination of HTML selects for date inputs.

Creates a combination of HTML selects for date inputs The select names are $prefix[y] for years, $prefix[m] for months and $prefix[d] for days.

public

Parameters
string$prefixPrefix of the select name
integer$yearDefault value for year select
integer$monthDefault value for month select
integer$dayDefault value for day select
Returns
string HTML select boxes
Author
Aresch Yavari ay@da.nosp@m.taba.nosp@m.y.de
Helmut Schottmüller hscho.nosp@m.ttm@.nosp@m.tzi.d.nosp@m.e

Definition at line 847 of file class.ilUtil.php.

References $DIC, $i, $lng, $name, date, and time.

Referenced by ilCourseContentGUI\__renderItem(), ilRegistrationSettingsGUI\editRoleAccessLimitations(), and ilCourseContentGUI\editTimings().

848  {
849  global $DIC;
850 
851  $lng = $DIC->language();
852 
853  $disabled = '';
854  if (isset($a_further_options['disabled']) and $a_further_options['disabled']) {
855  $disabled = 'disabled="disabled" ';
856  }
857 
858  $now = getdate();
859  if (!$emptyoption) {
860  if (!strlen($year)) {
861  $year = $now["year"];
862  }
863  if (!strlen($month)) {
864  $month = $now["mon"];
865  }
866  if (!strlen($day)) {
867  $day = $now["mday"];
868  }
869  }
870 
871  $year = (int) $year;
872  $month = (int) $month;
873  $day = (int) $day;
874 
875  // build day select
876 
877  $sel_day .= '<select class="form-control" ';
878  if (isset($a_further_options['select_attributes'])) {
879  foreach ($a_further_options['select_attributes'] as $name => $value) {
880  $sel_day .= ($name . '="' . $value . '" ');
881  }
882  }
883 
884  $sel_day .= $disabled . "name=\"" . $prefix . "[d]\" id=\"" . $prefix . "_d\">\n";
885 
886  if ($emptyoption) {
887  $sel_day .= "<option value=\"0\">--</option>\n";
888  }
889  for ($i = 1; $i <= 31; $i++) {
890  $sel_day .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
891  }
892  $sel_day .= "</select>\n";
893  $sel_day = preg_replace("/(value\=\"$day\")/", "$1 selected=\"selected\"", $sel_day);
894 
895  // build month select
896  $sel_month = '<select class="form-control" ';
897  if (isset($a_further_options['select_attributes'])) {
898  foreach ($a_further_options['select_attributes'] as $name => $value) {
899  $sel_month .= ($name . '="' . $value . '" ');
900  }
901  }
902  $sel_month .= $disabled . "name=\"" . $prefix . "[m]\" id=\"" . $prefix . "_m\">\n";
903 
904  if ($emptyoption) {
905  $sel_month .= "<option value=\"0\">--</option>\n";
906  }
907  for ($i = 1; $i <= 12; $i++) {
908  if ($a_long_month) {
909  $sel_month .= "<option value=\"$i\">" . $lng->txt("month_" . sprintf("%02d", $i) . "_long") . "</option>\n";
910  } else {
911  $sel_month .= "<option value=\"$i\">" . $i . "</option>\n";
912  }
913  }
914  $sel_month .= "</select>\n";
915  $sel_month = preg_replace("/(value\=\"$month\")/", "$1 selected=\"selected\"", $sel_month);
916 
917  // build year select
918  $sel_year = '<select class="form-control" ';
919  if (isset($a_further_options['select_attributes'])) {
920  foreach ($a_further_options['select_attributes'] as $name => $value) {
921  $sel_year .= ($name . '="' . $value . '" ');
922  }
923  }
924  $sel_year .= $disabled . "name=\"" . $prefix . "[y]\" id=\"" . $prefix . "_y\">\n";
925  if ((strlen($startyear) == 0) || ($startyear > $year)) {
926  if (!$emptyoption || $year != 0) {
927  $startyear = $year - 5;
928  }
929  }
930 
931  if (($year + 5) < (date('Y', time()) + 5)) {
932  $end_year = date('Y', time()) + 5;
933  } else {
934  $end_year = $year + 5;
935  }
936 
937  if ($emptyoption) {
938  $sel_year .= "<option value=\"0\">----</option>\n";
939  }
940  for ($i = $startyear; $i <= $end_year; $i++) {
941  $sel_year .= "<option value=\"$i\">" . sprintf("%04d", $i) . "</option>\n";
942  }
943  $sel_year .= "</select>\n";
944  $sel_year = preg_replace("/(value\=\"$year\")/", "$1 selected=\"selected\"", $sel_year);
945 
946  //$dateformat = $lng->text["lang_dateformat"];
947  $dateformat = "d-m-Y";
948  $dateformat = strtolower(preg_replace("/\W/", "", $dateformat));
949  $dateformat = strtolower(preg_replace("/(\w)/", "%%$1", $dateformat));
950  $dateformat = preg_replace("/%%d/", $sel_day, $dateformat);
951  $dateformat = preg_replace("/%%m/", $sel_month, $dateformat);
952  $dateformat = preg_replace("/%%y/", $sel_year, $dateformat);
953  return $dateformat;
954  }
global $DIC
Definition: saml.php:7
if($format !==null) $name
Definition: metadata.php:146
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
global $lng
Definition: privfeed.php:17
$i
Definition: disco.tpl.php:19
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
+ Here is the caller graph for this function:

◆ makeDir()

static ilUtil::makeDir (   $a_dir)
static

creates a new directory and inherits all filesystem permissions of the parent directory You may pass only the name of your new directory or with the entire path or relative path information.

examples: a_dir = /tmp/test/your_dir a_dir = ../test/your_dir a_dir = your_dir (–> creates your_dir in current directory)

public

Parameters
string[path] + directory name
Returns
boolean
Deprecated:
in favour of Filesystem::createDir() located at the filesystem service.
See also
::createDir()

Definition at line 2201 of file class.ilUtil.php.

References $path.

Referenced by ilFileDataCourse\__checkImportPath(), ilFileDataCourse\__checkPath(), ilFileDataCourse\__initDirectory(), ilExternalFeed\_createCacheDirectory(), ilStyleMigration\_createImagesDirectory(), ilObjStyleSheet\_createImagesDirectory(), ilObjQuestionPool\_createImportDirectory(), ilObjTest\_createImportDirectory(), ilFileDataImport\_initDirectory(), ilFileDataImportMail\_initDirectory(), ilFileDataCourse\addDirectory(), ilPortfolioHTMLExport\buildExportFile(), ilWikiHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilScorm2004Export\buildExportFileHTML(), ilScorm2004Export\buildExportFileHTMLOne(), ilScorm2004Export\buildExportFileISO(), ilScorm2004Export\buildExportFilePDF(), ilScorm2004Export\buildExportFileSCORM(), ilSurveyQuestionpoolExport\buildExportFileXML(), ilSurveyExport\buildExportFileXML(), ilQuestionpoolExport\buildExportFileXML(), ilContObjectExport\buildExportFileXML(), ilGlossaryExport\buildExportFileXML(), ilTestExport\buildExportFileXML(), ilTestExport\buildExportResultFile(), ilSetup\cloneFromSource(), ilContObjParser\copyFileItems(), ilContObjParser\copyMobFiles(), ilClient\create(), ilFSStorageCourse\createArchiveOnlineVersion(), ilContainer\createContainerDirectory(), ilObjFileBasedLM\createDataDirectory(), ilObjSAHSLearningModule\createDataDirectory(), ilChatroomConfigFileHandler\createDataDirIfNotExists(), ilSystemStyleHTMLExport\createDirectories(), ilCOPageHTMLExport\createDirectories(), ilFileSystemGUI\createDirectory(), createDirectory(), ilObjMediaObjectGUI\createDirectoryObject(), ilScorm2004Export\createExportDirectory(), ilObjUserFolder\createExportDirectory(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjContentObject\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjTest\createExportDirectory(), ilObjStyleSheet\createExportDirectory(), ilObjSurvey\createExportDirectory(), ilObjStyleSheet\createExportSubDirectory(), ilObjContentObject\createImportDirectory(), ilObjSurveyQuestionPool\createImportDirectory(), ilObjGlossary\createImportDirectory(), ilObjStyleSheet\createImportDirectory(), ilObjSurvey\createImportDirectory(), ilFileDataCourse\createImportFile(), ilFileDataCourse\createOnlineVersion(), ilCertificate\deliverExportFileXML(), ilExSubmission\downloadAllAssignmentFiles(), ilObjFolder\downloadFolder(), ilExSubmission\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilObjFile\export(), ilScormExportUtil\exportContentCSS(), ilObjMediaObject\exportFiles(), ilObjGlossary\exportHTML(), ilObjFileBasedLMGUI\exportHTML(), ilObjContentObject\exportHTML(), ilSCORM2004Asset\exportHTML4PDF(), ilObjSCORM2004LearningModule\exportHTML4PDF(), ilCOPageHTMLExport\exportHTMLFile(), ilObjGlossary\exportHTMLFile(), ilObjContentObject\exportHTMLFile(), ilCOPageHTMLExport\exportHTMLFileDirect(), ilCOPageHTMLExport\exportHTMLMOB(), ilObjGlossary\exportHTMLMOB(), ilObjContentObject\exportHTMLMOB(), ilObjSCORM2004LearningModule\exportHTMLScoObjects(), ilPageLayoutAdministrationGUI\exportLayout(), ilObjMediaObject\exportMediaFullscreen(), ilObjSCORM2004LearningModule\exportPDF(), ilObjSCORM2004LearningModule\exportScorm(), ilObjContentObject\exportSCORM(), ilObjSCORM2004LearningModule\exportXMLScoObjects(), ilObjLanguageExt\getDataPath(), ilScorm2004DataSet\getXmlRecord(), ilUserDataSet\getXmlRecord(), ilCloudPluginUploadGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilImport\importObject(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilSCORM13Player\logDirectory(), ilObjSCORM2004LearningModule\prepareHTMLExporter(), ilExSubmission\processUploadedZipFile(), ilFolderDownloadBackgroundTaskHandler\recurseFolder(), ilContainerGUI\recurseFolder(), ilObjFile\rollback(), ilSetup\saveMasterSetup(), ilObjFileGUI\saveUnzip(), ilExAssignment\sendMultiFeedbackStructureFile(), ilFileXMLParser\setFileContents(), ilForumXMLWriter\start(), ilObjFile\storeUnzipedFile(), unzip(), ilFSStorageExercise5069\uploadFile(), and ilFSStorageExercise\uploadFile().

2202  {
2203  $a_dir = trim($a_dir);
2204 
2205  // remove trailing slash (bugfix for php 4.2.x)
2206  if (substr($a_dir, -1) == "/") {
2207  $a_dir = substr($a_dir, 0, -1);
2208  }
2209 
2210  // check if a_dir comes with a path
2211  if (!($path = substr($a_dir, 0, strrpos($a_dir, "/") - strlen($a_dir)))) {
2212  $path = ".";
2213  }
2214 
2215  // create directory with file permissions of parent directory
2216  umask(0000);
2217  return @mkdir($a_dir, fileperms($path));
2218  }
+ Here is the caller graph for this function:

◆ makeDirParents()

static ilUtil::makeDirParents (   $a_dir)
static

Create a new directory and all parent directories.

Creates a new directory and inherits all filesystem permissions of the parent directory If the parent directories doesn't exist, they will be created recursively. The directory name NEEDS TO BE an absolute path, because it seems that relative paths are not working with PHP's file_exists function.

Author
Helmut Schottmüller hscho.nosp@m.ttm@.nosp@m.tzi.d.nosp@m.e
Parameters
string$a_dirThe directory name to be created public
Returns
bool
Deprecated:
in favour of Filesystem::createDir() located at the filesystem service.
See also
::createDir()

Definition at line 2240 of file class.ilUtil.php.

References $key, array, and Monolog\Handler\error_log().

Referenced by ilFileDataForumDrafts\__initDirectory(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilExport\_createExportDirectory(), ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), ilFSStorageCourse\addArchiveSubDirectory(), ilDataSet\addRecordsXml(), ilExportContainer\addSubitems(), assKprimChoice\afterSyncWithOriginal(), assSingleChoice\afterSyncWithOriginal(), assMatchingQuestion\afterSyncWithOriginal(), ilTestPlayerAbstractGUI\archiveParticipantSubmission(), assLongMenu\assertDirExists(), ilQuestionpoolExport\buildExportFileXML(), ilTestSubmissionReviewGUI\buildPdfFilename(), ilSetup\checkErrorLogSetup(), ilChatroomUploadFileGUI\checkUploadPath(), ilCertificate\cloneCertificate(), ilAssFileUploadUploadsExporter\collectUploadedFiles(), assFlashQuestion\copyApplet(), assJavaApplet\copyApplet(), ilCalendarCopyFilesToTempDirectoryJob\copyFiles(), assImagemapQuestion\copyImage(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assQuestion\copySuggestedSolutionFiles(), ilTestProcessLockFileStorage\create(), ilAssQuestionProcessLockFileStorage\create(), ilIndividualAssessmentFileStorage\create(), ilFileSystemStorage5069\create(), ilFileSystemStorage\create(), ilFSStorageExercise5069\create(), ilFSStorageExercise\create(), ilTestArchiver\createArchiveForTest(), ilFSStorageCourse\createArchiveOnlineVersion(), ilLoggingErrorFileStorage\createDir(), ilFSStorageSession\createDirectory(), ilFSStorageEvent\createDirectory(), ilObjFile\createDirectory(), ilExplorerBaseGUI\createHTMLExportDirs(), ilCalendarCopyFilesToTempDirectoryJob\createTargetDirectory(), ilTestExportGUI\createTestArchiveExport(), ilCalendarCopyFilesToTempDirectoryJob\createUniqueTempDirectory(), ilFileDataForumDrafts\createZipFile(), ilFileDataForum\createZipFile(), assMultipleChoice\deleteImage(), assFlashQuestion\duplicateApplet(), assJavaApplet\duplicateApplet(), assImagemapQuestion\duplicateImage(), assOrderingQuestion\duplicateImages(), assMatchingQuestion\duplicateImages(), assSingleChoice\duplicateImages(), SurveyQuestion\duplicateMaterials(), assQuestion\duplicateSuggestedSolutionFiles(), assOrderingQuestion\ensureImagePathExists(), ilDclContentExporter\export(), ilExport\exportEntity(), ilObjContentObject\exportHTML(), ilExportContainer\exportObject(), ilExport\exportObject(), ilCOPageHTMLExport\exportSupportScripts(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMultipleChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), ilHtmlToPdfTransformerFactory\generateTempPath(), ilBadgeHandler\getBadgePath(), ilObjFileDAV\getContentOutputStream(), ilFSStorageExercise5069\getFeedbackPath(), ilFSStorageExercise\getFeedbackPath(), ilFSStorageExercise5069\getGlobalFeedbackPath(), ilFSStorageExercise\getGlobalFeedbackPath(), ilMediaImageUtil\getImageSize(), ilObjUserFolderGUI\getImportDir(), ilObjSurvey\getImportDirectory(), ilBadgeHandler\getInstancePath(), ilBadgeHandler\getIssuerStaticUrl(), ilFSStorageExercise5069\getMultiFeedbackUploadPath(), ilFSStorageExercise\getMultiFeedbackUploadPath(), ilFSStorageExercise5069\getPeerReviewUploadPath(), ilFSStorageExercise\getPeerReviewUploadPath(), ilStyleExporter\getXmlRepresentation(), ilindividualAssessmentExporter\getXmlRepresentation(), ilForumExporter\getXmlRepresentation(), ilDataCollectionExporter\getXmlRepresentation(), ilBibliographicExporter\getXmlRepresentation(), ilMediaObjectsExporter\getXmlRepresentation(), ilFileExporter\getXmlRepresentation(), ilLMPresentationGUI\handleCodeParagraph(), assKprimChoice\handleFileUpload(), ilStyleImporter\importXmlRepresentation(), ilAdvancedMDRecordImportFiles\init(), ilAdvancedMDRecordExportFiles\init(), ilFSStorageCourse\initArchiveDirectory(), ilFSStorageCourse\initInfoDirectory(), ilFSStorageGroup\initMemberExportDirectory(), ilFSStorageCourse\initMemberExportDirectory(), assFlashQuestion\moveAppletIfExists(), assFlashQuestion\moveUploadedFile(), ilObjQuestionPool\pasteFromClipboard(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilZipBackgroundTaskHandler\process(), ilOrgUnitType\processAndStoreIconFile(), ilExport\processExporter(), ilObjFile\raiseUploadError(), ilCertificate\saveCertificate(), assMatchingQuestionImport\saveImage(), assFileUpload\savePreviewData(), assFileUpload\saveWorkingData(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), assSingleChoice\setImageFile(), assMultipleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assJavaApplet\setJavaAppletFilename(), SurveyQuestion\setMaterialsfile(), assQuestionGUI\suggestedsolution(), assSingleChoice\syncImages(), assMultipleChoice\syncImages(), assQuestion\syncSuggestedSolutionFiles(), ilObjMediaObject\uploadAdditionalFile(), ilObjCertificateSettings\uploadBackgroundImage(), ilCertificate\uploadBackgroundImage(), ilMobMultiSrtUpload\uploadMultipleSubtitleFile(), and ilObjMediaObject\uploadMultipleSubtitleFile().

2241  {
2242  $dirs = array($a_dir);
2243  $a_dir = dirname($a_dir);
2244  $last_dirname = '';
2245 
2246  while ($last_dirname != $a_dir) {
2247  array_unshift($dirs, $a_dir);
2248  $last_dirname = $a_dir;
2249  $a_dir = dirname($a_dir);
2250  }
2251 
2252  // find the first existing dir
2253  $reverse_paths = array_reverse($dirs, true);
2254  $found_index = -1;
2255  foreach ($reverse_paths as $key => $value) {
2256  if ($found_index == -1) {
2257  if (is_dir($value)) {
2258  $found_index = $key;
2259  }
2260  }
2261  }
2262 
2263  umask(0000);
2264  foreach ($dirs as $dirindex => $dir) {
2265  // starting with the longest existing path
2266  if ($dirindex >= $found_index) {
2267  if (!file_exists($dir)) {
2268  if (strcmp(substr($dir, strlen($dir)-1, 1), "/") == 0) {
2269  // on some systems there is an error when there is a slash
2270  // at the end of a directory in mkdir, see Mantis #2554
2271  $dir = substr($dir, 0, strlen($dir)-1);
2272  }
2273  if (!mkdir($dir, $umask)) {
2274  error_log("Can't make directory: $dir");
2275  return false;
2276  }
2277  } elseif (!is_dir($dir)) {
2278  error_log("$dir is not a directory");
2279  return false;
2280  } else {
2281  // get umask of the last existing parent directory
2282  $umask = fileperms($dir);
2283  }
2284  }
2285  }
2286  return true;
2287  }
Create styles array
The data for the language used.
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeTimeSelect()

static ilUtil::makeTimeSelect (   $prefix,
  $short = true,
  $hour = "",
  $minute = "",
  $second = "",
  $a_use_default = true,
  $a_further_options = array() 
)
static

Creates a combination of HTML selects for time inputs.

Creates a combination of HTML selects for time inputs. The select names are $prefix[h] for hours, $prefix[m] for minutes and $prefix[s] for seconds.

public

Parameters
string$prefixPrefix of the select name
boolean$shortSet TRUE for a short time input (only hours and minutes). Default is TRUE
integer$hourDefault hour value
integer$minuteDefault minute value
integer$secondDefault second value
Returns
string HTML select boxes
Author
Helmut Schottmüller hscho.nosp@m.ttm@.nosp@m.tzi.d.nosp@m.e

Definition at line 974 of file class.ilUtil.php.

References $DIC, $format, $i, $ilUser, $lng, $name, date, and ilCalendarSettings\TIME_FORMAT_24.

Referenced by ilLPCollectionSettingsTableGUI\fillRow(), ilTypicalLearningTimeInputGUI\insert(), ilMDEditorGUI\listEducational(), and ilMDEditorGUI\listQuickEdit_scorm().

975  {
976  global $DIC;
977 
978  $lng = $DIC->language();
979  $ilUser = $DIC->user();
980 
981  $minute_steps = 1;
982  $disabled = '';
983  if (count($a_further_options)) {
984  if (isset($a_further_options['minute_steps'])) {
985  $minute_steps = $a_further_options['minute_steps'];
986  }
987  if (isset($a_further_options['disabled']) and $a_further_options['disabled']) {
988  $disabled = 'disabled="disabled" ';
989  }
990  }
991 
992  if ($a_use_default and !strlen("$hour$minute$second")) {
993  $now = localtime();
994  $hour = $now[2];
995  $minute = $now[1];
996  $second = $now[0];
997  } else {
998  $hour = (int) $hour;
999  $minute = (int) $minute;
1000  $second = (int) $second;
1001  }
1002  // build hour select
1003  $sel_hour = '<select ';
1004  if (isset($a_further_options['select_attributes'])) {
1005  foreach ($a_further_options['select_attributes'] as $name => $value) {
1006  $sel_hour .= $name . '=' . $value . ' ';
1007  }
1008  }
1009  $sel_hour .= " " . $disabled . "name=\"" . $prefix . "[h]\" id=\"" . $prefix . "_h\" class=\"form-control\">\n";
1010 
1011  $format = $ilUser->getTimeFormat();
1012  for ($i = 0; $i <= 23; $i++) {
1014  $sel_hour .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
1015  } else {
1016  $sel_hour .= "<option value=\"$i\">" . date("ga", mktime($i, 0, 0)) . "</option>\n";
1017  }
1018  }
1019  $sel_hour .= "</select>\n";
1020  $sel_hour = preg_replace("/(value\=\"$hour\")/", "$1 selected=\"selected\"", $sel_hour);
1021 
1022  // build minutes select
1023  $sel_minute .= "<select " . $disabled . "name=\"" . $prefix . "[m]\" id=\"" . $prefix . "_m\" class=\"form-control\">\n";
1024 
1025  for ($i = 0; $i <= 59; $i = $i + $minute_steps) {
1026  $sel_minute .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
1027  }
1028  $sel_minute .= "</select>\n";
1029  $sel_minute = preg_replace("/(value\=\"$minute\")/", "$1 selected=\"selected\"", $sel_minute);
1030 
1031  if (!$short) {
1032  // build seconds select
1033  $sel_second .= "<select " . $disabled . "name=\"" . $prefix . "[s]\" id=\"" . $prefix . "_s\" class=\"form-control\">\n";
1034 
1035  for ($i = 0; $i <= 59; $i++) {
1036  $sel_second .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
1037  }
1038  $sel_second .= "</select>\n";
1039  $sel_second = preg_replace("/(value\=\"$second\")/", "$1 selected=\"selected\"", $sel_second);
1040  }
1041  $timeformat = $lng->text["lang_timeformat"];
1042  if (strlen($timeformat) == 0) {
1043  $timeformat = "H:i:s";
1044  }
1045  $timeformat = strtolower(preg_replace("/\W/", "", $timeformat));
1046  $timeformat = preg_replace("/(\w)/", "%%$1", $timeformat);
1047  $timeformat = preg_replace("/%%h/", $sel_hour, $timeformat);
1048  $timeformat = preg_replace("/%%i/", $sel_minute, $timeformat);
1049  if ($short) {
1050  $timeformat = preg_replace("/%%s/", "", $timeformat);
1051  } else {
1052  $timeformat = preg_replace("/%%s/", $sel_second, $timeformat);
1053  }
1054  return $timeformat;
1055  }
$format
Definition: metadata.php:141
global $DIC
Definition: saml.php:7
if($format !==null) $name
Definition: metadata.php:146
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
$ilUser
Definition: imgupload.php:18
global $lng
Definition: privfeed.php:17
$i
Definition: disco.tpl.php:19
+ Here is the caller graph for this function:

◆ maskAttributeTag()

static ilUtil::maskAttributeTag (   $a_str,
  $tag,
  $tag_att 
)
static

Definition at line 2668 of file class.ilUtil.php.

References $DIC, $ilLog, and $tag.

Referenced by maskSecureTags().

2669  {
2670  global $DIC;
2671 
2672  $ilLog = $DIC["ilLog"];
2673 
2674  $ws = "[\s]*";
2675  $att = $ws . "[^>]*" . $ws;
2676 
2677  while (preg_match(
2678  '/<(' . $tag . $att . '(' . $tag_att . $ws . '="' . $ws . '(([$@!*()~;,_0-9A-z\/:=%.&#?+\-])*)")' . $att . ')>/i',
2679  $a_str,
2680  $found
2681  )) {
2682  $old_str = $a_str;
2683  $a_str = preg_replace(
2684  "/<" . preg_quote($found[1], "/") . ">/i",
2685  '&lt;' . $tag . ' ' . $tag_att . $tag_att . '="' . $found[3] . '"&gt;',
2686  $a_str
2687  );
2688  if ($old_str == $a_str) {
2689  $ilLog->write("ilUtil::maskA-" . htmlentities($old_str) . " == " .
2690  htmlentities($a_str));
2691  return $a_str;
2692  }
2693  }
2694  $a_str = str_ireplace(
2695  "</$tag>",
2696  "&lt;/$tag&gt;",
2697  $a_str
2698  );
2699  return $a_str;
2700  }
global $DIC
Definition: saml.php:7
if(function_exists('posix_getuid') &&posix_getuid()===0) if(!array_key_exists('t', $options)) $tag
Definition: cron.php:35
+ Here is the caller graph for this function:

◆ maskSecureTags()

static ilUtil::maskSecureTags (   $a_str,
  $allow_array 
)
static

Definition at line 2527 of file class.ilUtil.php.

References $t, array, maskAttributeTag(), and maskTag().

Referenced by secureString().

2528  {
2529  foreach ($allow_array as $t) {
2530  switch ($t) {
2531  case "a":
2532  $a_str = ilUtil::maskAttributeTag($a_str, "a", "href");
2533  break;
2534 
2535  case "img":
2536  $a_str = ilUtil::maskAttributeTag($a_str, "img", "src");
2537  break;
2538 
2539  case "p":
2540  case "div":
2541  $a_str = ilUtil::maskTag($a_str, $t, array(
2542  array("param" => "align", "value" => "left"),
2543  array("param" => "align", "value" => "center"),
2544  array("param" => "align", "value" => "justify"),
2545  array("param" => "align", "value" => "right")
2546  ));
2547  break;
2548 
2549  default:
2550  $a_str = ilUtil::maskTag($a_str, $t);
2551  break;
2552  }
2553  }
2554 
2555  return $a_str;
2556  }
static maskTag($a_str, $t, $fix_param="")
static maskAttributeTag($a_str, $tag, $tag_att)
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ maskTag()

static ilUtil::maskTag (   $a_str,
  $t,
  $fix_param = "" 
)
static

Definition at line 2729 of file class.ilUtil.php.

References $t, and array.

Referenced by maskSecureTags().

2730  {
2731  $a_str = str_replace(
2732  array("<$t>", "<" . strtoupper($t) . ">"),
2733  "&lt;" . $t . "&gt;",
2734  $a_str
2735  );
2736  $a_str = str_replace(
2737  array("</$t>", "</" . strtoupper($t) . ">"),
2738  "&lt;/" . $t . "&gt;",
2739  $a_str
2740  );
2741 
2742  if (is_array($fix_param)) {
2743  foreach ($fix_param as $p) {
2744  $k = $p["param"];
2745  $v = $p["value"];
2746  $a_str = str_replace(
2747  "<$t $k=\"$v\">",
2748  "&lt;" . "$t $k=\"$v\"" . "&gt;",
2749  $a_str
2750  );
2751  }
2752  }
2753 
2754  return $a_str;
2755  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ MB2Bytes()

static ilUtil::MB2Bytes (   $a_value)
static

Definition at line 5033 of file class.ilUtil.php.

Referenced by ilObjRoleGUI\loadRoleProperties(), ilObjUserGUI\saveObject(), and ilObjUserGUI\updateObject().

5034  {
5035  return ((int) $a_value) * pow(self::_getSizeMagnitude(), 2);
5036  }
+ Here is the caller graph for this function:

◆ mergesort()

static ilUtil::mergesort ( $array,
  $cmp_function = 'strcmp' 
)
static

Definition at line 3185 of file class.ilUtil.php.

References array.

Referenced by stableSortArray().

3186  {
3187  // Arrays of size < 2 require no action.
3188  if (count($array) < 2) {
3189  return;
3190  }
3191 
3192  // Split the array in half
3193  $halfway = count($array) / 2;
3194  $array1 = array_slice($array, 0, $halfway);
3195  $array2 = array_slice($array, $halfway);
3196 
3197  // Recurse to sort the two halves
3198  ilUtil::mergesort($array1, $cmp_function);
3199  ilUtil::mergesort($array2, $cmp_function);
3200 
3201  // If all of $array1 is <= all of $array2, just append them.
3202  if (call_user_func($cmp_function, end($array1), $array2[0]) < 1) {
3203  $array = array_merge($array1, $array2);
3204  return;
3205  }
3206 
3207  // Merge the two sorted arrays into a single sorted array
3208  $array = array();
3209  $ptr1 = $ptr2 = 0;
3210  while ($ptr1 < count($array1) && $ptr2 < count($array2)) {
3211  if (call_user_func($cmp_function, $array1[$ptr1], $array2[$ptr2]) < 1) {
3212  $array[] = $array1[$ptr1++];
3213  } else {
3214  $array[] = $array2[$ptr2++];
3215  }
3216  }
3217 
3218  // Merge the remainder
3219  while ($ptr1 < count($array1)) {
3220  $array[] = $array1[$ptr1++];
3221  }
3222  while ($ptr2 < count($array2)) {
3223  $array[] = $array2[$ptr2++];
3224  }
3225 
3226  return;
3227  }
static mergesort(&$array, $cmp_function='strcmp')
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ now()

static ilUtil::now ( )
static

Return current timestamp in Y-m-d H:i:s format.

Definition at line 3935 of file class.ilUtil.php.

References date.

Referenced by ilChangeEvent\_catchupWriteEvents(), ilHistory\_copyEntriesForObject(), ilHistory\_createEntry(), ilLMPageObject\_getPresentationTitle(), ilObjSCORMTracking\_insertTrackData(), ilLMTracker\_isNodeVisible(), ilPageObject\_lookupActive(), ilObjUser\_setUserInactive(), ilObjUser\_toggleActiveStatusOfUsers(), ilWikiContributor\_writeStatus(), ilBasicSkill\addLevel(), ilDBUpdateNewObjectType\addNewType(), ilDBUpdateNewObjectType\addRBACTemplate(), ilExSubmission\addResourceObject(), ilObjUser\assignData(), ilRepositoryObjectPlugin\beforeActivation(), ilBlogPosting\create(), ilNote\create(), ilNewsItem\create(), ilPageObject\createFromXML(), ilCalendarHeaderNavigationGUI\getHTML(), ilNewsItem\getLastNewsIdForContext(), ilWikiUserHTMLExport\getProcess(), ilLMPresentationGUI\getSuccessorPage(), ilBasicSkill\hasRecentSelfEvaluation(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilPage(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilPreviewRenderer\render(), ilBasicSkill\resetUserSkillLevelStatus(), ilObjForum\saveData(), ilExAssignmentMemberStatus\setFeedback(), ilExAssignmentMemberStatus\setMark(), ilExAssignmentMemberStatus\setSent(), ilExAssignmentMemberStatus\setStatus(), ilObjSCORMTracking\store(), ilObjSCORMTracking\storeJsApiCmi(), ilNote\update(), ilNewsItem\update(), ilPageObject\update(), ilPageObject\updateFromXML(), ilStudyProgrammeAssignment\updateLastChange(), ilStudyProgramme\updateLastChange(), ilStudyProgrammeProgress\updateLastChange(), ilExPeerReview\updatePeerReview(), ilExPeerReview\updatePeerReviewTimestamp(), ilExSubmission\updateTextSubmission(), ilExSubmission\updateTutorDownloadTime(), ilExSubmission\uploadFile(), ilPageObject\writeRenderedContent(), and ilBasicSkill\writeUserSkillLevelStatus().

3936  {
3937  return date("Y-m-d H:i:s");
3938  }
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
+ Here is the caller graph for this function:

◆ parseImportId()

static ilUtil::parseImportId (   $a_import_id)
static

Parse an ilias import id Typically of type il_[IL_INST_ID]_[OBJ_TYPE]_[OBJ_ID] returns array( 'orig' => 'il_4800_rolt_123' 'prefix' => 'il' 'inst_id => '4800' 'type' => 'rolt' 'id' => '123'.

Parameters
stringil_id

Definition at line 4753 of file class.ilUtil.php.

Referenced by ilECSEnrolmentStatusCommandQueueHandler\handleCreate(), ilAdvancedMDRecordParser\handlerBeginTag(), ilContObjParser\handlerBeginTag(), ilContObjParser\handlerEndTag(), and ilAdvancedMDFieldDefinitionInternalLink\importValueFromXML().

4754  {
4755  $exploded = explode('_', $a_import_id);
4756 
4757  $parsed['orig'] = $a_import_id;
4758  if ($exploded[0] == 'il') {
4759  $parsed['prefix'] = $exploded[0];
4760  }
4761  if (is_numeric($exploded[1])) {
4762  $parsed['inst_id'] = (int) $exploded[1];
4763  }
4764  $parsed['type'] = $exploded[2];
4765 
4766  if (is_numeric($exploded[3])) {
4767  $parsed['id'] = (int) $exploded[3];
4768  }
4769  return $parsed;
4770  }
+ Here is the caller graph for this function:

◆ period2String()

static ilUtil::period2String ( ilDateTime  $a_from,
  $a_to = null 
)
static

Return a string of time period.

Parameters
ilDateTime$a_from
ilDateTime$a_to
Returns
string

Definition at line 4268 of file class.ilUtil.php.

References $DIC, $from, $key, $lng, $periods, array, ilDateTime\get(), IL_CAL_DATETIME, IL_CAL_UNIX, and time.

Referenced by ilObjExerciseAccess\_lookupRemainingWorkingTimeString(), and ilExAssignmentGUI\getTimeString().

4269  {
4270  global $DIC;
4271 
4272  $lng = $DIC->language();
4273 
4274  if (!$a_to) {
4275  $a_to = new ilDateTime(time(), IL_CAL_UNIX);
4276  }
4277 
4278  $from = new DateTime($a_from->get(IL_CAL_DATETIME));
4279  $to = new DateTime($a_to->get(IL_CAL_DATETIME));
4280  $diff = $to->diff($from);
4281 
4282  $periods = array();
4283  $periods["years"] = $diff->format("%y");
4284  $periods["months"] = $diff->format("%m");
4285  $periods["days"] = $diff->format("%d");
4286  $periods["hours"] = $diff->format("%h");
4287  $periods["minutes"] = $diff->format("%i");
4288  $periods["seconds"] = $diff->format("%s");
4289 
4290  if (!array_sum($periods)) {
4291  return;
4292  }
4293 
4294  foreach ($periods as $key => $value) {
4295  if ($value) {
4296  $segment_name = ($value > 1)
4297  ? $key
4298  : substr($key, 0, -1);
4299  $array[] = $value . ' ' . $lng->txt($segment_name);
4300  }
4301  }
4302 
4303  $len = sizeof($array);
4304  if ($len > 3) {
4305  $array = array_slice($array, 0, (3-$len));
4306  }
4307 
4308  return implode(', ', $array);
4309  }
const IL_CAL_DATETIME
global $DIC
Definition: saml.php:7
$from
const IL_CAL_UNIX
Date and time handling
get($a_format, $a_format_str='', $a_tz='')
get formatted date
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareDBString()

◆ prepareFormOutput()

static ilUtil::prepareFormOutput (   $a_str,
  $a_strip = false 
)
static

prepares string output for html forms public

Parameters
string
booleantrue: strip slashes, if magic_quotes is enabled use this if $a_str comes from $_GET or $_POST var, use false, if $a_str comes from database
Returns
string

Definition at line 2855 of file class.ilUtil.php.

References stripSlashes().

Referenced by ilBookmarkImportExport\__parseExport(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), ilBookmarkImportExport\_exportBookmark(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilInfoScreenGUI\addPropertyTextinput(), assFileUploadFileTableGUI\buildFileItemContent(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilKprimChoiceWizardInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), assErrorText\createErrorTextExport(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilTable2GUI\deleteTemplate(), ilObjTest\deliverPDFfromHTML(), ilContainerGUI\editPageContentObject(), ilCertificate\exchangeCertificateVariables(), ilRepositoryObjectSearchBlockGUI\fillDataSection(), ilWikiSearchBlockGUI\fillDataSection(), ilLDAPRoleMappingTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), ilPCIIMPopupTableGUI\fillRow(), ilPCGridCellTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilPCTabsTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilHelpTooltipTableGUI\fillRow(), ilAssessmentFolderLogAdministrationTableGUI\fillRow(), ilLMEditShortTitlesTableGUI\fillRow(), ilMultiSrtConfirmationTable2GUI\fillRow(), ilAccessKeyTableGUI\fillRow(), ilPortfolioTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), ilTaxonomyTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilTestFixedParticipantsTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilTestParticipantsTableGUI\fillRow(), ilSCORM2004ExportTableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilBookmarkBlockGUI\fillRow(), ilMDCopyrightSelectionGUI\fillTemplate(), ilBookmarkAdministrationGUI\get_last(), ilStartUpGUI\getAcceptance(), assClozeTestGUI\getAfterParticipationSuppressionQuestionPostVars(), ilAwarenessGUI\getAwarenessList(), ilCertificateAdapter\getBaseVariablesForPresentation(), ilCertificateAdapter\getBaseVariablesForPreview(), assClozeTestGUI\getBestSolutionText(), ilTestCertificateAdapter\getCertificateVariablesForPresentation(), ilSkillCertificateAdapter\getCertificateVariablesForPresentation(), ilCourseCertificateAdapter\getCertificateVariablesForPresentation(), ilExerciseCertificateAdapter\getCertificateVariablesForPresentation(), ilSCORMCertificateAdapter\getCertificateVariablesForPresentation(), ilTestCertificateAdapter\getCertificateVariablesForPreview(), ilSkillCertificateAdapter\getCertificateVariablesForPreview(), ilSCORMCertificateAdapter\getCertificateVariablesForPreview(), ilExerciseCertificateAdapter\getCertificateVariablesForPreview(), ilCourseCertificateAdapter\getCertificateVariablesForPreview(), assErrorText\getErrorTokenHtml(), ilObjAssessmentFolder\getFullPath(), ilFormPropertyGUI\getHiddenTag(), ilUserFilterGUI\getHTML(), ilTaggingGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilAssNestedOrderingElementsInputGUI\getItemHtml(), ilBookmarkBlockGUI\getListRowData(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), SurveyQuestionGUI\getMaterialOutput(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), assOrderingHorizontalGUI\getPreview(), assTextQuestionGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assKprimChoiceGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), SurveyQuestionGUI\getPrintViewQuestionTitle(), assOrderingHorizontalGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), assQuestion\getSuggestedSolutionOutput(), ilTaggingGUI\getTaggingInputHTML(), assTextSubsetGUI\getTestOutput(), assOrderingHorizontalGUI\getTestOutput(), assKprimChoiceGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), ilObjTest\getTestResult(), ilHiddenInputGUI\getToolbarHTML(), SurveyTextQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveyMatrixQuestionGUI\getWorkingForm(), ilNoteGUI\initNoteForm(), ilPreviewGUI\initPreview(), ilMailSearchGUI\initSearchForm(), ilRandomTestROInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilHiddenInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilCopyrightInputGUI\insert(), ilUserLoginInputGUI\insert(), ilEMailInputGUI\insert(), ilTextWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilFileWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilFlashFileInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilMDEditorGUI\listAnnotation(), ilMDEditorGUI\listClassification(), ilMDEditorGUI\listEducational(), ilMDEditorGUI\listGeneral(), ilMDEditorGUI\listLifecycle(), ilMDEditorGUI\listMetaMetaData(), ilMDEditorGUI\listQuickEdit_scorm(), ilMDEditorGUI\listRelation(), ilMDEditorGUI\listRights(), ilMDEditorGUI\listTechnical(), SurveyQuestionGUI\material(), ilCertificate\outCertificate(), assQuestionGUI\outPageSelector(), ilExerciseSubmissionTableGUI\parseRow(), assClozeTestGUI\populateNumericGapFormPart(), ilObjForumGUI\prepareFormOutput(), ilObjTestGUI\printobject(), ilStartUpGUI\purgePlaceholders(), ilMailQuickFilterInputGUI\render(), ilDclMultiTextInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilMultipleTextsInputGUI\render(), ilNonEditableValueGUI\render(), ilSelectInputGUI\render(), ilTagInputGUI\render(), ilMultiSelectInputGUI\render(), ilMultipleImagesInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilPasswordInputGUI\render(), ilOrgUnitMultiLineInputGUI\render(), ilOrgUnitGenericMultiInputGUI\render(), ilNumberInputGUI\render(), ilHierarchyFormGUI\renderChild(), ilTestQuestionSideListGUI\renderList(), ilObjTestGUI\reviewobject(), ilTable2GUI\saveTemplate(), ilHelpGUI\search(), ilMailFormGUI\searchUsers(), ilTextInputGUI\setMultiValues(), ilPasswordAssistanceGUI\showAssistanceForm(), ilSCORM2004ScoGUI\showExportList(), ilHelpGUI\showPage(), ilSearchGUI\showSearch(), ilLuceneUserSearchGUI\showSearchForm(), ilLuceneSearchGUI\showSearchForm(), ilObjSCORM2004LearningModuleGUI\showSequencing(), ilMailFormGUI\showSubmissionErrors(), ilPersonalProfileGUI\showUserAgreement(), ilStartUpGUI\showUserMappingSelection(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), assFormulaQuestion\substituteVariables(), assQuestionGUI\suggestedsolution(), and assErrorText\toJSON().

2856  {
2857  if ($a_strip) {
2858  $a_str = ilUtil::stripSlashes($a_str);
2859  }
2860  $a_str = htmlspecialchars($a_str);
2861  // Added replacement of curly brackets to prevent
2862  // problems with PEAR templates, because {xyz} will
2863  // be removed as unused template variable
2864  $a_str = str_replace("{", "&#123;", $a_str);
2865  $a_str = str_replace("}", "&#125;", $a_str);
2866  // needed for LaTeX conversion \\ in LaTeX is a line break
2867  // but without this replacement, php changes \\ to \
2868  $a_str = str_replace("\\", "&#92;", $a_str);
2869  return $a_str;
2870  }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareTextareaOutput()

static ilUtil::prepareTextareaOutput (   $txt_output,
  $prepare_for_latex_output = false,
  $omitNl2BrWhenTextArea = false 
)
static

Prepares a string for a text area output where latex code may be in it If the text is HTML-free, CHR(13) will be converted to a line break.

Parameters
string$txt_outputString which should be prepared for output public

Definition at line 4201 of file class.ilUtil.php.

References $result, and ilMathJax\getInstance().

Referenced by ilAssQuestionHintsTableGUI\fillRow(), SurveyQuestion\prepareTextareaOutput(), assQuestion\prepareTextareaOutput(), ilObjSurvey\prepareTextareaOutput(), ilObjTest\prepareTextareaOutput(), ilAssQuestionHintRequestGUI\showHintCmd(), and ilAssQuestionHintsGUI\showHintCmd().

4202  {
4203  $result = $txt_output;
4204  $is_html = self::isHTML($result);
4205 
4206  if ($prepare_for_latex_output) {
4207  include_once './Services/MathJax/classes/class.ilMathJax.php';
4208  $result = ilMathJax::getInstance()->insertLatexImages($result, "<span class\=\"latex\">", "<\/span>");
4209  $result = ilMathJax::getInstance()->insertLatexImages($result, "\[tex\]", "\[\/tex\]");
4210  }
4211 
4212  // removed: did not work with magic_quotes_gpc = On
4213  if (!$is_html) {
4214  if (!$omitNl2BrWhenTextArea) {
4215  // if the string does not contain HTML code, replace the newlines with HTML line breaks
4216  $result = preg_replace("/[\n]/", "<br />", $result);
4217  }
4218  } else {
4219  // patch for problems with the <pre> tags in tinyMCE
4220  if (preg_match_all("/(<pre>.*?<\/pre>)/ims", $result, $matches)) {
4221  foreach ($matches[0] as $found) {
4222  $replacement = "";
4223  if (strpos("\n", $found) === false) {
4224  $replacement = "\n";
4225  }
4226  $removed = preg_replace("/<br\s*?\/>/ims", $replacement, $found);
4227  $result = str_replace($found, $removed, $result);
4228  }
4229  }
4230  }
4231  if ($prepare_for_latex_output) {
4232  // replace special characters to prevent problems with the ILIAS template system
4233  // eg. if someone uses {1} as an answer, nothing will be shown without the replacement
4234  $result = str_replace("{", "&#123;", $result);
4235  $result = str_replace("}", "&#125;", $result);
4236  $result = str_replace("\\", "&#92;", $result);
4237  }
4238 
4239  return $result;
4240  }
$result
static getInstance()
Singleton: get instance.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ printBacktrace()

static ilUtil::printBacktrace (   $a_limit = 0)
static

printBacktrace

Parameters
int$a_limitlimit nr of lines

Definition at line 4726 of file class.ilUtil.php.

References $t.

4727  {
4728  $bt = debug_backtrace();
4729  $cnt = 0;
4730  foreach ($bt as $t) {
4731  if ($cnt != 0 && ($a_limit == 0 || $cnt <= $a_limit)) {
4732  echo "<br>" . $t["file"] . ", " . $t["function"] . " [" . $t["line"] . "]";
4733  }
4734  $cnt++;
4735  }
4736  echo "<br>";
4737  }

◆ processConvertVersion()

static ilUtil::processConvertVersion (   $a_version)
staticprotected

Parse convert version string, e.g.

6.3.8-3, into integer

Parameters
string$a_versionw.x.y-z
Returns
int

Definition at line 1862 of file class.ilUtil.php.

References $version.

1863  {
1864  if (preg_match("/([0-9]+)\.([0-9]+)\.([0-9]+)([\.|\-]([0-9]+))?/", $a_version, $match)) {
1865  $version = str_pad($match[1], 2, 0, STR_PAD_LEFT) .
1866  str_pad($match[2], 2, 0, STR_PAD_LEFT) .
1867  str_pad($match[3], 2, 0, STR_PAD_LEFT) .
1868  str_pad($match[5], 2, 0, STR_PAD_LEFT);
1869  return (int) $version;
1870  }
1871  }

◆ processCSVRow()

static& ilUtil::processCSVRow ( $row,
  $quoteAll = false,
  $separator = ";",
  $outUTF8 = false,
  $compatibleWithMSExcel = true 
)
static

Convertes an array for CSV usage.

Processes an array as a CSV row and converts the array values to correct CSV values. The "converted" array is returned

Author
Helmut Schottmüller hscho.nosp@m.ttm@.nosp@m.gmx.d.nosp@m.e
Parameters
array$rowThe array containing the values for a CSV row
string$quoteAllIndicates to quote every value (=TRUE) or only values containing quotes and separators (=FALSE, default)
string$separatorThe value separator in the CSV row (used for quoting) (; = default)
Returns
array The converted array ready for CSV use public

Definition at line 3955 of file class.ilUtil.php.

References $row, and array.

Referenced by ilObjUserFolder\createCSVExport(), and ilObjAssessmentFolderGUI\exportLogObject().

3956  {
3957  $resultarray = array();
3958  foreach ($row as $rowindex => $entry) {
3959  $surround = false;
3960  if ($quoteAll) {
3961  $surround = true;
3962  }
3963  if (strpos($entry, "\"") !== false) {
3964  $entry = str_replace("\"", "\"\"", $entry);
3965  $surround = true;
3966  }
3967  if (strpos($entry, $separator) !== false) {
3968  $surround = true;
3969  }
3970  if ($compatibleWithMSExcel) {
3971  // replace all CR LF with LF (for Excel for Windows compatibility
3972  $entry = str_replace(chr(13) . chr(10), chr(10), $entry);
3973  }
3974  if ($surround) {
3975  if ($outUTF8) {
3976  $resultarray[$rowindex] = "\"" . $entry . "\"";
3977  } else {
3978  $resultarray[$rowindex] = utf8_decode("\"" . $entry . "\"");
3979  }
3980  } else {
3981  if ($outUTF8) {
3982  $resultarray[$rowindex] = $entry;
3983  } else {
3984  $resultarray[$rowindex] = utf8_decode($entry);
3985  }
3986  }
3987  }
3988  return $resultarray;
3989  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ quoteArray()

static ilUtil::quoteArray (   $a_array)
static

Quotes all members of an array for usage in DB query statement.

Definition at line 4488 of file class.ilUtil.php.

References $DIC, $ilDB, and array.

Referenced by ilNestedSetXML\_deleteAllChildMetaData(), ilObjGroup\_isMember(), _sortIds(), ilCourseObjectiveResult\_updateObjectiveStatus(), ilTree\getChildsByTypeFilter(), ilObjGroup\getGroupMemberData(), and ilMDConvert().

4489  {
4490  global $DIC;
4491 
4492  $ilDB = $DIC->database();
4493 
4494 
4495  if (!is_array($a_array) or !count($a_array)) {
4496  return array("''");
4497  }
4498 
4499  foreach ($a_array as $k => $item) {
4500  $a_array[$k] = $ilDB->quote($item);
4501  }
4502 
4503  return $a_array;
4504  }
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ randomhash()

static ilUtil::randomhash ( )
static

Definition at line 4657 of file class.ilUtil.php.

4658  {
4659  $random = new \ilRandom();
4660  return md5($random->int(1, 9999999) + str_replace(" ", "", (string) microtime()));
4661  }

◆ rangeDownload()

ilUtil::rangeDownload (   $file)

Send a file via range request, see http://mobiforge.com/design-development/content-delivery-mobile-devices alternatives could be.

Definition at line 4809 of file class.ilUtil.php.

References $_SERVER, $end, $file, $size, exit, and header.

4810  {
4811  $fp = @fopen($file, 'rb');
4812 
4813  $size = filesize($file); // File size
4814  $length = $size; // Content length
4815  $start = 0; // Start byte
4816  $end = $size - 1; // End byte
4817  // Now that we've gotten so far without errors we send the accept range header
4818  /* At the moment we only support single ranges.
4819  * Multiple ranges requires some more work to ensure it works correctly
4820  * and comply with the spesifications: http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.2
4821  *
4822  * Multirange support annouces itself with:
4823  * header('Accept-Ranges: bytes');
4824  *
4825  * Multirange content must be sent with multipart/byteranges mediatype,
4826  * (mediatype = mimetype)
4827  * as well as a boundry header to indicate the various chunks of data.
4828  */
4829  header("Accept-Ranges: 0-$length");
4830  // header('Accept-Ranges: bytes');
4831  // multipart/byteranges
4832  // http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.2
4833  if (isset($_SERVER['HTTP_RANGE'])) {
4834  $c_start = $start;
4835  $c_end = $end;
4836  // Extract the range string
4837  list(, $range) = explode('=', $_SERVER['HTTP_RANGE'], 2);
4838  // Make sure the client hasn't sent us a multibyte range
4839  if (strpos($range, ',') !== false) {
4840 
4841  // (?) Shoud this be issued here, or should the first
4842  // range be used? Or should the header be ignored and
4843  // we output the whole content?
4844  header('HTTP/1.1 416 Requested Range Not Satisfiable');
4845  header("Content-Range: bytes $start-$end/$size");
4846  // (?) Echo some info to the client?
4847  exit;
4848  }
4849  // If the range starts with an '-' we start from the beginning
4850  // If not, we forward the file pointer
4851  // And make sure to get the end byte if spesified
4852  if ($range == '-') {
4853 
4854  // The n-number of the last bytes is requested
4855  $c_start = $size - substr($range, 1);
4856  } else {
4857  $range = explode('-', $range);
4858  $c_start = $range[0];
4859  $c_end = (isset($range[1]) && is_numeric($range[1])) ? $range[1] : $size;
4860  }
4861  /* Check the range and make sure it's treated according to the specs.
4862  * http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
4863  */
4864  // End bytes can not be larger than $end.
4865  $c_end = ($c_end > $end) ? $end : $c_end;
4866  // Validate the requested range and return an error if it's not correct.
4867  if ($c_start > $c_end || $c_start > $size - 1 || $c_end >= $size) {
4868  header('HTTP/1.1 416 Requested Range Not Satisfiable');
4869  header("Content-Range: bytes $start-$end/$size");
4870  // (?) Echo some info to the client?
4871  exit;
4872  }
4873  $start = $c_start;
4874  $end = $c_end;
4875  $length = $end - $start + 1; // Calculate new content length
4876  fseek($fp, $start);
4877  header('HTTP/1.1 206 Partial Content');
4878  }
4879  // Notify the client the byte range we'll be outputting
4880  header("Content-Range: bytes $start-$end/$size");
4881  header("Content-Length: $length");
4882 
4883  // Start buffered download
4884  $buffer = 1024 * 8;
4885  while (!feof($fp) && ($p = ftell($fp)) <= $end) {
4886  if ($p + $buffer > $end) {
4887 
4888  // In case we're only outputtin a chunk, make sure we don't
4889  // read past the length
4890  $buffer = $end - $p + 1;
4891  }
4892  set_time_limit(0); // Reset time limit for big files
4893  echo fread($fp, $buffer);
4894  flush(); // Free up memory. Otherwise large files will trigger PHP's memory limit.
4895  }
4896 
4897  fclose($fp);
4898  }
$size
Definition: RandomTest.php:84
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
$end
Definition: saml1-acs.php:18
Add a drawing to the header
Definition: 04printing.php:69
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file

◆ rCopy()

static ilUtil::rCopy (   $a_sdir,
  $a_tdir,
  $preserveTimeAttributes = false 
)
static

Copies content of a directory $a_sdir recursively to a directory $a_tdir.

Parameters
string$a_sdirsource directory
string$a_tdirtarget directory
boolean$preserveTimeAttributesif true, ctime will be kept.
Returns
boolean TRUE for sucess, FALSE otherwise
Exceptions

Definition at line 1465 of file class.ilUtil.php.

References GuzzleHttp\Psr7\$stream.

Referenced by ilFileSystemStorage5069\_copyDirectory(), ilFileSystemStorage\_copyDirectory(), ilDataSet\addRecordsXml(), assSingleChoice\afterSyncWithOriginal(), assMatchingQuestion\afterSyncWithOriginal(), ilExAssignment\cloneAssignmentsOfExercise(), ilSetup\cloneFromSource(), ilContObjParser\copyFileItems(), ilObjStyleSheet\copyImagesToDir(), ilContObjParser\copyMobFiles(), ilPlayerUtil\copyPlayerFilesToTargetDirectory(), ilPreview\copyPreviews(), ilObjStyleSheet\create(), ilFSStorageCourse\createArchiveOnlineVersion(), ilFileDataCourse\createOnlineVersion(), ilSCORM13Package\dbImportSco(), ilBookingObject\doClone(), ilObjFile\doCloneObject(), ilObjMediaObject\duplicate(), ilObjFile\export(), ilObjStyleSheet\export(), ilObjMediaObject\exportFiles(), ilObjFileBasedLMGUI\exportHTML(), ilObjContentObject\exportHTML(), ilCOPageHTMLExport\exportHTMLMOB(), ilObjGlossary\exportHTMLMOB(), ilObjContentObject\exportHTMLMOB(), ilObjSCORM2004LearningModule\exportScorm(), ilStyleExporter\getXmlRepresentation(), ilObjStyleSheet\import(), ilHTMLLearningModuleDataSet\importRecord(), ilPortfolioDataSet\importRecord(), ilPollDataSet\importRecord(), ilBlogDataSet\importRecord(), ilMediaObjectDataSet\importRecord(), ilStyleDataSet\importRecord(), ilExerciseDataSet\importRecord(), ilStyleImporter\importXmlRepresentation(), ilObjFileBasedLM\populateByDirectoy(), ilObjSAHSLearningModule\populateByDirectoy(), and ilFileDataCourse\rCopy().

1466  {
1467  $sourceFS = LegacyPathHelper::deriveFilesystemFrom($a_sdir);
1468  $targetFS = LegacyPathHelper::deriveFilesystemFrom($a_tdir);
1469 
1470  $sourceDir = LegacyPathHelper::createRelativePath($a_sdir);
1471  $targetDir = LegacyPathHelper::createRelativePath($a_tdir);
1472 
1473  // check if arguments are directories
1474  if (!$sourceFS->hasDir($sourceDir)) {
1475  return false;
1476  }
1477 
1478  $sourceList = $sourceFS->listContents($sourceDir, true);
1479 
1480  foreach ($sourceList as $item) {
1481  if ($item->isDir()) {
1482  continue;
1483  }
1484  try {
1485  $itemPath = $targetDir . '/' . substr($item->getPath(), strlen($sourceDir));
1486  $stream = $sourceFS->readStream($item->getPath());
1487  $targetFS->writeStream($itemPath, $stream);
1488  } catch (\ILIAS\Filesystem\Exception\FileAlreadyExistsException $e) {
1489  // Do nothing with that type of exception
1490  }
1491  }
1492 
1493  return true;
1494  }
Class BaseForm.
$stream
PHP stream implementation.
Class FlySystemFileAccessTest.
+ Here is the caller graph for this function:

◆ readFile()

static ilUtil::readFile (   $a_file)
static

there are some known problems with the original readfile method, which sometimes truncates delivered files regardless of php.ini setting (see http://de.php.net/manual/en/function.readfile.php) use this method to avoid these problems.

Definition at line 2063 of file class.ilUtil.php.

2064  {
2065  $chunksize = 1*(1024*1024); // how many bytes per chunk
2066  $buffer = '';
2067  $handle = fopen($a_file, 'rb');
2068  if ($handle === false) {
2069  return false;
2070  }
2071  while (!feof($handle)) {
2072  $buffer = fread($handle, $chunksize);
2073  print $buffer;
2074  }
2075  return fclose($handle);
2076  }

◆ redirect()

static ilUtil::redirect (   $a_script)
static
Parameters
$a_script
Deprecated:
Use $DIC->ctrl()->redirectToURL() instead

Definition at line 3353 of file class.ilUtil.php.

References $DIC.

Referenced by ilWorkflowEngineSettingsGUI\__construct(), ilLearningProgressGUI\__getNextClass(), ilStartUpGUI\_checkGoto(), ilObjExternalFeedGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjMailGUI\_goto(), ilObjPollGUI\_goto(), ilObjForumGUI\_goto(), ilObjGroupGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilUserProfileIncompleteRequestTargetAdjustmentCase\adjust(), ilTermsOfServiceRequestTargetAdjustmentCase\adjust(), ilUserPasswordResetRequestTargetAdjustmentCase\adjust(), ilObjLinkResourceGUI\afterSave(), ilObjMediaCastGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjOrgUnitGUI\afterSave(), ilObjIndividualAssessmentGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjForumGUI\afterSave(), ilObjCourseGUI\afterSave(), ilTestPlayerAbstractGUI\afterTestPassFinishedCmd(), ilSetupGUI\applyCustomUpdates(), ilSetupGUI\applyHotfix(), ilSurveyExecutionGUI\backToRepository(), ilObjTestGUI\backToRepositoryObject(), ilRemoteObjectBaseGUI\callObject(), ilLMPageObjectGUI\cancel(), SurveyQuestionGUI\cancel(), assQuestionGUI\cancel(), ilMailFormGUI\cancelMail(), ilObjForumGUI\cancelObject(), ilSharedResourceGUI\cancelPassword(), assQuestionGUI\cancelSync(), ilSetupGUI\changeAccessMode(), ilSetupGUI\changeDefaultClient(), ilSessionControl\checkCurrentSessionIsAllowed(), ilSessionControl\checkExpiredSession(), ilContainerStartObjectsGUI\checkPermission(), ilObjectGUI\cloneAllObject(), ilInternalLinkGUI\closeLinkHelp(), ilSetupGUI\cmdClient(), ilObjectCopyGUI\copyMultipleNonContainer(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilSetupGUI\createMemcacheServer(), ilObjTestGUI\createQuestionObject(), ilErrorHandling\defaultHandler(), ilWorkflowEngineDefinitionsGUI\deleteDefinition(), ilSetupGUI\deleteMemcacheServer(), ilPersonalSettingsGUI\deleteOwnAccount4(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilNewsItem\deliverMobFile(), ilSetupGUI\displayDeleteConfirmation(), ilStartUpGUI\doApacheAuthentication(), ilImageMapEditorGUI\editImagemapForward(), ilErrorHandling\errorHandler(), ilSAHSEditGUI\executeCommand(), ilSCORMOfflineModeGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), ilSetupGUI\flushCache(), ilAuthContainerApache\forceCreation(), ilAdministrationGUI\forward(), ilStartUpGUI\getAcceptance(), ilPublicUserProfileGUI\getHTML(), ilObjWorkflowEngineGUI\getType(), ilObjWikiGUI\gotoPageObject(), ilObjItemGroupGUI\gotoParent(), ilObjWikiGUI\gotoStartPageObject(), ilMembershipRegistrationCodeUtils\handleCode(), ilAuthContainerCAS\handleLDAPDataSource(), ilAuthContainerApache\handleLDAPDataSource(), ilNavigationHistoryGUI\handleNavigationRequest(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilSharedResourceGUI\hasAccess(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObjectGUI\importFileObject(), ilObjSurveyGUI\importSurveyObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilEditClipboardGUI\insert(), ilSetupGUI\installDatabase(), ilPersonalDesktopGUI\jumpToBookmarks(), ilPersonalDesktopGUI\jumpToComments(), ilPersonalDesktopGUI\jumpToNotes(), ilSetupGUI\kill_waiting_tasks(), ilAuthApache\login(), ilSetupGUI\loginClient(), ilMailSearchCoursesGUI\mailCourses(), ilMailSearchGroupsGUI\mailGroups(), ilMailSearchGroupsGUI\mailMembers(), ilMailSearchCoursesGUI\mailMembers(), ilObjUserFolderGUI\mailObject(), ilMailingListsGUI\mailToList(), ilObjRoleGUI\mailToRoleObject(), ilContactGUI\mailToUsers(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilMailMemberSearchGUI\nextMailForm(), ilTestExpressPageObjectGUI\nextQuestion(), ilSetupGUI\performLogin(), ilSetupGUI\performMLogin(), ilAssQuestionHintRequestGUI\performRequestCmd(), ilObjSCORM2004LearningModuleGUI\preview(), ilTestExpressPageObjectGUI\prevQuestion(), ilWorkflowEngineDefinitionsGUI\processUploadFormCancellation(), ilObjQuestionPoolGUI\questionsObject(), ilObjTestGUI\questionsObject(), ShibWAYF\redirect(), ilInitialisation\redirect(), SurveyQuestionGUI\redirectAfterSaving(), ilExerciseManagementGUI\redirectFeedbackMailObject(), ilObjCourseGUI\redirectLocToTestConfirmedObject(), ilObjCourseGUI\redirectLocToTestObject(), ilBaseViewGUI\redirectToHome(), ilObjLinkResourceGUI\redirectToLink(), ilMailMemberSearchGUI\redirectToParentReferer(), ilTestExpressPageObjectGUI\redirectToQuestionPoolSelectionPage(), ilImprintGUI\renderFullscreen(), ilLMPageObjectGUI\save(), ilObjFileGUI\save(), assQuestionGUI\save(), ilSetupGUI\save_background_tasks(), ilContentStyleSettingsGUI\saveActiveStyles(), ilSetupGUI\saveBasicSettings(), ilSetupGUI\saveClientIni(), ilSetupGUI\saveContact(), ilSetupGUI\saveDbSlave(), ilMailFormGUI\saveDraft(), assQuestionGUI\saveEdit(), ilSetupGUI\saveLanguages(), ilSetupGUI\saveMasterPassword(), ilObjGlossaryGUI\saveObject(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePersonalData(), ilSetupGUI\saveRegistration(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), ilContentStyleSettingsGUI\saveScope(), ilLPTableBaseGUI\sendMail(), ilBookmarkAdministrationGUI\sendmail(), ilObjContentObjectGUI\sendMailToBlockedUsers(), ilMembershipMailGUI\sendMailToSelectedUsers(), ilMailMemberSearchGUI\sendMailToSelectedUsers(), ilMembershipGUI\sendMailToSelectedUsers(), ilMailFormGUI\sendMessage(), ilObjAuthSettingsGUI\setAuthModeObject(), ilObjFileBasedLMGUI\showLearningModule(), ilStartUpGUI\showLogin(), ilStartUpGUI\showLogout(), ilRemoteObjectBaseGUI\showObject(), ilWorkflowEngineDefinitionsGUI\showUploadForm(), ilWorkflowEngineDefinitionsGUI\stopListening(), ilTestPlayerDynamicQuestionSetGUI\submitSolutionCmd(), ilTestOutputGUI\submitSolutionCmd(), ilObjPollGUI\subscribe(), assQuestionGUI\sync(), ilSetupGUI\toggleClientList(), ilContentStyleSettingsGUI\toggleGlobalDefault(), ilContentStyleSettingsGUI\toggleGlobalFixed(), ilObjPortfolioGUI\toRepository(), ilAuthFrontendCredentialsApache\tryAuthenticationOnLoginPage(), ilObjPollGUI\unsubscribe(), ilObjFileGUI\update(), ilObjComponentSettingsGUI\update(), ilSetupGUI\updateBasicSettings(), ilSetupGUI\updateDatabase(), ilSetupGUI\updateMemcacheServer(), ilObjSAHSLearningModuleGUI\uploadObject(), and ilObjPollGUI\vote().

3354  {
3355  global $DIC;
3356 
3357  if (!isset($DIC['ilCtrl']) || !$DIC['ilCtrl'] instanceof ilCtrl) {
3358  $ctrl = new ilCtrl();
3359  } else {
3360  $ctrl = $DIC->ctrl();
3361  }
3362  $ctrl->redirectToURL($a_script);
3363  }
This class provides processing control methods.
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ removeItemFromDesktops()

static ilUtil::removeItemFromDesktops (   $a_id)
static

removes object from all user's desktops public

Parameters
integerref_id
Returns
array user_ids of all affected users

Definition at line 2920 of file class.ilUtil.php.

References ilObjUser\_removeItemFromDesktops().

Referenced by ilObject\countReferences(), ilSoapCourseAdministration\deleteCourse(), ilSoapObjectAdministration\deleteObject(), ilRepUtil\deleteObjects(), and ilObjectDAV\remove().

2921  {
2922  return ilObjUser::_removeItemFromDesktops($a_id);
2923  }
static _removeItemFromDesktops($a_id)
removes object from all user&#39;s desktops public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeTrailingPathSeparators()

◆ renameExecutables()

static ilUtil::renameExecutables (   $a_dir)
static

Rename uploaded executables for security reasons.

Definition at line 3563 of file class.ilUtil.php.

References $def, and rRenameSuffix().

Referenced by ilPCInteractiveImageGUI\create(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilSCORM13Package\dbImportSco(), ilScorm2004DataSet\importRecord(), ilSCORM2004ScoGUI\importSave(), ilScormAiccImporter\importXmlRepresentation(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilDclMobRecordFieldModel\parseValue(), ilObjFileBasedLM\populateByDirectoy(), ilObjSAHSLearningModule\populateByDirectoy(), ilObjSCORM2004LearningModuleGUI\preview(), ilObjMediaObject\renameExecutables(), ilFileSystemGUI\renameFile(), assQuestionGUI\suggestedsolution(), ilFileSystemGUI\unzipFile(), ilObjMediaCastGUI\updateMediaItem(), ilFileSystemGUI\uploadFile(), and ilObjSAHSLearningModuleGUI\uploadObject().

3564  {
3565  $def_arr = explode(",", SUFFIX_REPL_DEFAULT);
3566  foreach ($def_arr as $def) {
3567  ilUtil::rRenameSuffix($a_dir, trim($def), "sec");
3568  }
3569 
3570  $def_arr = explode(",", SUFFIX_REPL_ADDITIONAL);
3571  foreach ($def_arr as $def) {
3572  ilUtil::rRenameSuffix($a_dir, trim($def), "sec");
3573  }
3574  }
static rRenameSuffix($a_dir, $a_old_suffix, $a_new_suffix)
Renames all files with certain suffix and gives them a new suffix.
$def
Definition: croninfo.php:21
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ replaceLinkProperties()

static ilUtil::replaceLinkProperties (   $matches)
static

replaces target _blank with _self and the link text with the according object title.

Parameters
string$matches$matches[0] contains complete link $matches[1] contains href attribute $matches[2] contains id of goto link
Returns
link containg a _self target, same href and new text content

Definition at line 814 of file class.ilUtil.php.

References $title, ilObject\_lookupObjId(), and ilObject\_lookupTitle().

815  {
816  $link = $matches[0];
817  $ref_id = $matches[2];
818 
819  if ($ref_id > 0) {
820  $obj_id = ilObject::_lookupObjId($ref_id);
821  if ($obj_id > 0) {
822  $title = ilObject::_lookupTitle($obj_id);
823  $link = "<a href=" . $matches[1] . " target=\"_self\">" . $title . "</a>";
824  }
825  }
826  return $link;
827  }
static _lookupTitle($a_id)
lookup object title
static _lookupObjId($a_id)
+ Here is the call graph for this function:

◆ replaceUrlParameterString()

static ilUtil::replaceUrlParameterString (   $url,
  $parametersArray 
)
static

Definition at line 3683 of file class.ilUtil.php.

References $url, and KT_replaceParam().

3684  {
3685  foreach ($parametersArray as $paramName => $paramValue) {
3686  $url = ilUtil::KT_replaceParam($url, $paramName, $paramValue);
3687  }
3688  return $url;
3689  }
static KT_replaceParam($qstring, $paramName, $paramValue)
$url
+ Here is the call graph for this function:

◆ resizeImage()

static ilUtil::resizeImage (   $a_from,
  $a_to,
  $a_width,
  $a_height,
  $a_constrain_prop = false 
)
static

resize image

Parameters
string$a_fromsource file
string$a_totarget file
string$a_widthtarget width
string$a_heighttarget height

Definition at line 1919 of file class.ilUtil.php.

References $size, escapeShellArg(), and execConvert().

Referenced by ilObjMediaObject\_resizeImage(), and ilObjStyleSheet\uploadImage().

1920  {
1921  if ($a_constrain_prop) {
1922  $size = " -geometry " . $a_width . "x" . $a_height . " ";
1923  } else {
1924  $size = " -resize " . $a_width . "x" . $a_height . "! ";
1925  }
1926  $convert_cmd = ilUtil::escapeShellArg($a_from) . " " . $size . ilUtil::escapeShellArg($a_to);
1927 
1928  ilUtil::execConvert($convert_cmd);
1929  }
$size
Definition: RandomTest.php:84
static execConvert($args)
execute convert command
static escapeShellArg($a_arg)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rRenameSuffix()

static ilUtil::rRenameSuffix (   $a_dir,
  $a_old_suffix,
  $a_new_suffix 
)
static

Renames all files with certain suffix and gives them a new suffix.

This words recursively through a directory.

Parameters
string$a_dirdirectory
string$a_old_suffixold suffix
string$a_new_suffixnew suffix

public

Definition at line 3623 of file class.ilUtil.php.

References $file.

Referenced by ilObjMediaObject\renameExecutables(), and renameExecutables().

3624  {
3625  if ($a_dir == "/" || $a_dir == "" || is_int(strpos($a_dir, ".."))
3626  || trim($a_old_suffix) == "") {
3627  return false;
3628  }
3629 
3630  // check if argument is directory
3631  if (!@is_dir($a_dir)) {
3632  return false;
3633  }
3634 
3635  // read a_dir
3636  $dir = opendir($a_dir);
3637 
3638  while ($file = readdir($dir)) {
3639  if ($file != "." and
3640  $file != "..") {
3641  // directories
3642  if (@is_dir($a_dir . "/" . $file)) {
3643  ilUtil::rRenameSuffix($a_dir . "/" . $file, $a_old_suffix, $a_new_suffix);
3644  }
3645 
3646  // files
3647  if (@is_file($a_dir . "/" . $file)) {
3648  // first check for files with trailing dot
3649  if (strrpos($file, '.') == (strlen($file) - 1)) {
3650  rename($a_dir . '/' . $file, substr($a_dir . '/' . $file, 0, -1));
3651  $file = substr($file, 0, -1);
3652  }
3653 
3654  $path_info = pathinfo($a_dir . "/" . $file);
3655 
3656  if (strtolower($path_info["extension"]) ==
3657  strtolower($a_old_suffix)) {
3658  $pos = strrpos($a_dir . "/" . $file, ".");
3659  $new_name = substr($a_dir . "/" . $file, 0, $pos) . "." . $a_new_suffix;
3660  rename($a_dir . "/" . $file, $new_name);
3661  }
3662  }
3663  }
3664  }
3665  return true;
3666  }
static rRenameSuffix($a_dir, $a_old_suffix, $a_new_suffix)
Renames all files with certain suffix and gives them a new suffix.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
+ Here is the caller graph for this function:

◆ sanitateTargetPath()

static ilUtil::sanitateTargetPath (   $a_target)
staticprotected
Parameters
$a_target

Definition at line 4135 of file class.ilUtil.php.

References array, ILIAS\FileUpload\Location\CUSTOMIZING, ILIAS\FileUpload\Location\STORAGE, ILIAS\FileUpload\Location\TEMPORARY, and ILIAS\FileUpload\Location\WEB.

4136  {
4137  switch (true) {
4138  case strpos($a_target, ILIAS_WEB_DIR . '/' . CLIENT_ID) === 0:
4139  case strpos($a_target, './' . ILIAS_WEB_DIR . '/' . CLIENT_ID) === 0:
4140  case strpos($a_target, CLIENT_WEB_DIR) === 0:
4141  $targetFilesystem = \ILIAS\FileUpload\Location::WEB;
4142  break;
4143  case strpos($a_target, CLIENT_DATA_DIR . "/temp") === 0:
4144  $targetFilesystem = \ILIAS\FileUpload\Location::TEMPORARY;
4145  break;
4146  case strpos($a_target, CLIENT_DATA_DIR) === 0:
4147  $targetFilesystem = \ILIAS\FileUpload\Location::STORAGE;
4148  break;
4149  case strpos($a_target, ILIAS_ABSOLUTE_PATH . '/Customizing') === 0:
4150  $targetFilesystem = \ILIAS\FileUpload\Location::CUSTOMIZING;
4151  break;
4152  default:
4153  throw new InvalidArgumentException("Can not move files to \"$a_target\" because path can not be mapped to web, storage or customizing location.");
4154  }
4155 
4156  $absTargetDir = dirname($a_target);
4157  $targetDir = LegacyPathHelper::createRelativePath($absTargetDir);
4158 
4159  return array( $targetFilesystem, $targetDir );
4160  }
const STORAGE
The filesystem outside of the ilias web root.
Definition: Location.php:28
const CUSTOMIZING
The filesystem within the web root where all the skins and plugins are saved.
Definition: Location.php:33
Create styles array
The data for the language used.
const TEMPORARY
The ILIAS temporary directory.
Definition: Location.php:38
const WEB
The filesystem within the ilias web root.
Definition: Location.php:23

◆ secureLink()

static ilUtil::secureLink (   $a_str)
static

Definition at line 2776 of file class.ilUtil.php.

References array.

Referenced by ilObjMediaObjectGUI\savePropertiesObject(), ilExternalFeedItem\setMagpieItem(), ilObjMediaObjectGUI\setObjectPerCreationForm(), and unmaskAttributeTag().

2777  {
2778  $a_str = str_ireplace("javascript", "jvscrpt", $a_str);
2779  $a_str = str_ireplace(array("%00", "%0a", "%0d", "%1a", "&#00;", "&#x00;",
2780  "&#0;", "&#x0;", "&#x0a;", "&#x0d;", "&#10;", "&#13;"), "-", $a_str);
2781  return $a_str;
2782  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ securePlainString()

static ilUtil::securePlainString (   $a_str)
static

Remove unsecure characters from a plain text string.

This function currently returns the string without doing any changes.

Definition at line 2596 of file class.ilUtil.php.

Referenced by ilPDMailGUI\__construct(), ilMailFormGUI\editAttachments(), ilMailFormGUI\saveDraft(), ilMailFormGUI\saveMailBeforeSearch(), ilMailFormGUI\searchUsers(), ilMailFormGUI\sendMessage(), and ilMailFormGUI\showForm().

2597  {
2598  if (ini_get("magic_quotes_gpc")) {
2599  return stripslashes($a_str);
2600  } else {
2601  return $a_str;
2602  }
2603  }
+ Here is the caller graph for this function:

◆ secureString()

static ilUtil::secureString (   $a_str,
  $a_strip_html = true,
  $a_allow = "" 
)
static

Remove unsecure tags.

Definition at line 2473 of file class.ilUtil.php.

References array, getSecureTags(), maskSecureTags(), stripScriptHTML(), and unmaskSecureTags().

Referenced by assKprimChoiceGUI\handleAnswerTextsSubmit(), ilUserDataSet\importRecord(), ilExternalFeedItem\secureString(), ilAssSelfAssessmentQuestionFormatter\stripHtmlExceptSelfAssessmentTags(), stripSlashes(), assSingleChoiceGUI\writeAnswerSpecificPostData(), and assMultipleChoiceGUI\writeAnswerSpecificPostData().

2474  {
2475  // check whether all allowed tags can be made secure
2476  $only_secure = true;
2477  $allow_tags = explode(">", $a_allow);
2478  $sec_tags = ilUtil::getSecureTags();
2479  $allow_array = array();
2480  foreach ($allow_tags as $allow) {
2481  if ($allow != "") {
2482  $allow = str_replace("<", "", $allow);
2483 
2484  if (!in_array($allow, $sec_tags)) {
2485  $only_secure = false;
2486  }
2487  $allow_array[] = $allow;
2488  }
2489  }
2490 
2491  // default behaviour: allow only secure tags 1:1
2492  if (($only_secure || $a_allow == "") && $a_strip_html) {
2493  if ($a_allow == "") {
2494  $allow_array = array("b", "i", "strong", "em", "code", "cite",
2495  "gap", "sub", "sup", "pre", "strike", "bdo");
2496  }
2497 
2498  // this currently removes parts of strings like "a <= b"
2499  // because "a <= b" is treated like "<spam onclick='hurt()'>ss</spam>"
2500  $a_str = ilUtil::maskSecureTags($a_str, $allow_array);
2501  $a_str = strip_tags($a_str); // strip all other tags
2502  $a_str = ilUtil::unmaskSecureTags($a_str, $allow_array);
2503 
2504  // a possible solution could be something like:
2505  // $a_str = str_replace("<", "&lt;", $a_str);
2506  // $a_str = str_replace(">", "&gt;", $a_str);
2507  // $a_str = ilUtil::unmaskSecureTags($a_str, $allow_array);
2508  //
2509  // output would be ok then, but input fields would show
2510  // "a &lt;= b" for input "a <= b" if data is brought back to a form
2511  } else {
2512  // only for scripts, that need to allow more/other tags and parameters
2513  if ($a_strip_html) {
2514  $a_str = ilUtil::stripScriptHTML($a_str, $a_allow);
2515  }
2516  }
2517 
2518  return $a_str;
2519  }
static getSecureTags()
static maskSecureTags($a_str, $allow_array)
static stripScriptHTML($a_str, $a_allow="", $a_rm_js=true)
strip only html tags (4.0) from text $allowed contains tags to be allowed, in format tags a and b ar...
static unmaskSecureTags($a_str, $allow_array)
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ secureUrl()

static ilUtil::secureUrl (   $url)
static

Prepare secure href attribute.

Parameters

Definition at line 2878 of file class.ilUtil.php.

References $url.

Referenced by ilTemplate\addILIASFooter(), ilBookmarkAdministrationTableGUI\fillRow(), ilGroupedListGUI\getHTML(), ilObjMediaObject\getXML(), ilExternalFeedItem\secureString(), and ilExternalFeedItem\setMagpieItem().

2879  {
2880  // check if url is valid (absolute or relative)
2881  if (filter_var($url, FILTER_VALIDATE_URL) === false &&
2882  filter_var("http://" . $url, FILTER_VALIDATE_URL) === false &&
2883  filter_var("http:" . $url, FILTER_VALIDATE_URL) === false &&
2884  filter_var("http://de.de" . $url, FILTER_VALIDATE_URL) === false &&
2885  filter_var("http://de.de/" . $url, FILTER_VALIDATE_URL) === false) {
2886  return "";
2887  }
2888  if (trim(strtolower(parse_url($url, PHP_URL_SCHEME))) == "javascript") {
2889  return "";
2890  }
2891  $url = htmlspecialchars($url, ENT_QUOTES);
2892  return $url;
2893  }
$url
+ Here is the caller graph for this function:

◆ sendFailure()

static ilUtil::sendFailure (   $a_info = "",
  $a_keep = false 
)
static

Send Failure Message to Screen.

Parameters
stringmessage
booleanif true message is kept in session

Definition at line 4530 of file class.ilUtil.php.

References $DIC, and $tpl.

Referenced by ilLocalUserGUI\__checkGlobalRoles(), ilTestScoringByQuestionsGUI\__construct(), ilAssQuestionFeedbackPageObjectCommandForwarder\__construct(), ilTestToplistGUI\__construct(), ilDclTableListGUI\__construct(), ilOrgUnitSimpleImportGUI\__construct(), ilOrgUnitSimpleUserImportGUI\__construct(), ilDclTableViewGUI\__construct(), ilExtIdGUI\__construct(), ilLocalUserGUI\__construct(), ilDclFieldListGUI\__construct(), ilSystemStyleIconsGUI\__construct(), ilDclTableEditGUI\__construct(), ilAssQuestionHintPageObjectCommandForwarder\__construct(), ilDclDetailedViewGUI\__construct(), ilStyleDefinition\__construct(), ilCourseArchivesGUI\__showArchivesMenu(), ilLocalUserGUI\__showRolesTable(), ilLPListOfObjectsGUI\__showUsersList(), ilObjUserAccess\_checkGoto(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilUploadFiles\_copyUploadFile(), ilObjItemGroupGUI\_goto(), ilObjSessionGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilLMPageObjectGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjMailGUI\_goto(), ilStructureObjectGUI\_goto(), ilObjExerciseGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilGlossaryTermGUI\_goto(), ilObjFileGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjGroupGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjCategoryGUI\_importCategories(), ilCalendarCategoryGUI\acceptShared(), ilDclRecordEditGUI\accessDenied(), ilStructureObjectGUI\activatePages(), ilObjComponentSettingsGUI\activatePlugin(), ilDidacticTemplateSettingsGUI\activateTemplates(), ilCourseParticipantsGroupsGUI\add(), ilObjCourseGroupingGUI\add(), ilCourseRegistrationGUI\add(), ilConditionHandlerGUI\add(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilUnitConfigurationGUI\addCategory(), ilObjBlogGUI\addContributor(), ilObjGlossaryGUI\addDefinition(), ilIndividualAssessmentMembersGUI\addedUsers(), ilRepositorySearchGUI\addFromClipboard(), ilExerciseManagementGUI\addMembersObject(), ilForumModeratorsGUI\addModerator(), ilOrgUnitStaffGUI\addOtherRoles(), ilSurveyPageGUI\addQuestionToolbar(), ilSurveyParticipantsGUI\addRater(), ilLDAPSettingsGUI\addRoleAssignment(), ilAuthShibbolethSettingsGUI\addRoleAssignmentRule(), ilSystemStyleIconsGUI\addSelectIconToolbar(), ilOrgUnitUserAssignmentGUI\addStaff(), ilOrgUnitStaffGUI\addStaff(), ilContainerStartObjectsGUI\addStarterObject(), ilExSubmissionTeamGUI\addTeamMemberActionObject(), ilObjGlossaryGUI\addTerm(), ilMembershipGUI\addToClipboard(), ilObjRoleGUI\addToClipboardObject(), ilObjUserFolderGUI\addToClipboardObject(), ilObjContentObjectGUI\addTooltip(), ilObjBlogGUI\addUserFromAutoComplete(), ilExerciseManagementGUI\addUserFromAutoCompleteObject(), ilExSubmissionTeamGUI\addUserFromAutoCompleteObject(), ilObjRoleGUI\addUserObject(), ilSurveyParticipantsGUI\adminAppraiseesCloseObject(), ilObjRoleTemplateGUI\adoptPermSaveObject(), ilObjRoleGUI\adoptPermSaveObject(), ilObjCloudGUI\afterServiceAuth(), ilSCTreeTasksGUI\analyzeStructure(), ilConditionHandlerGUI\askDelete(), ilCalendarCategoryGUI\askDeleteAppointments(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCustomUserFieldsGUI\askDeleteField(), ilObjCourseGroupingGUI\askDeleteGrouping(), ilCourseObjectivesGUI\askDeleteObjective(), ilContainerStartObjectsGUI\askDeleteStarterObject(), ilLPListOfSettingsGUI\assign(), ilConditionHandlerGUI\assign(), ilPageEditorGUI\assignCharacteristicForm(), ilObjRoleGUI\assignDesktopItemObject(), ilMembershipGUI\assignFromWaitingList(), ilGroupMembershipGUI\assignMembers(), ilCourseMembershipGUI\assignMembers(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilLocalUserGUI\assignSave(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilMembershipGUI\assignSubscribers(), ilConsultationHoursGUI\assignUsersToAppointment(), ilObjCourseGUI\autoFillObject(), ilCalendarAppointmentGUI\bookconfirmed(), ilScorm2004Export\buildExportFilePDF(), ilRemoteObjectBaseGUI\callObject(), ilChatroomViewGUI\cancelJoin(), ilCertificateGUI\certificateEditor(), ilSetupGUI\changeDefaultClient(), ilPDNewsBlockGUI\changeFeedSettings(), ilPermission2GUI\changeOwner(), ilSetupGUI\changeSettingsType(), ilObjBookingPoolGUI\changeStatusObject(), ilOrgUnitTypeGUI\checkAccess(), ilStudyProgrammeTypeGUI\checkAccess(), ilMStListCoursesGUI\checkAccessOrFail(), ilMStListUsersGUI\checkAccessOrFail(), ilMStShowUserGUI\checkAccessOrFail(), ilSurveyExecutionGUI\checkAuth(), ilSurveyEvaluationGUI\checkEvaluationAccess(), ilPCMediaObjectGUI\checkFixSize(), ilObjMediaObjectGUI\checkFixSize(), ilAssQuestionHintsGUI\checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), ilAssQuestionHintsGUI\checkForSingleHintIdAndRedirectOnFailure(), ilDclFieldEditGUI\checkInput(), ilDclTableEditGUI\checkInput(), ilPropertyFormGUI\checkInput(), ilSharedResourceGUI\checkPassword(), ilObjWorkspaceFolderGUI\checkPassword(), ilContainerStartObjectsGUI\checkPermission(), ilMembershipGUI\checkPermission(), ilSystemStyleMainGUI\checkPermission(), ilLocalUserGUI\checkPermission(), ilMembershipGUI\checkRbacOrPermissionAccess(), assMatchingQuestion\checkSubmittedMatchings(), ilDclTableListGUI\checkTablesLeft(), assFileUpload\checkUpload(), ilChatroom\checkUserPermissions(), ilDclTableViewGUI\checkViewsLeft(), ilOrgUnitSimpleImportGUI\chooseImport(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilSetupGUI\cloneSaveSource(), ilContainerGUI\cloneWizardPageObject(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilSurveyParticipantsGUI\confirmAdminAppraiseesCloseObject(), ilMembershipGUI\confirmAssignFromWaitingList(), ilExAssignmentEditorGUI\confirmAssignmentsDeletionObject(), ilMembershipGUI\confirmAssignSubscribers(), ilCalendarCategoryGUI\confirmDelete(), ilConsultationHoursGUI\confirmDelete(), ilSurveyParticipantsGUI\confirmDeleteAppraiseesObject(), ilCourseArchivesGUI\confirmDeleteArchives(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilUnitConfigurationGUI\confirmDeleteCategories(), ilAssQuestionHintsGUI\confirmDeleteCmd(), ilLPObjectStatisticsGUI\confirmDeleteData(), ilExSubmissionFileGUI\confirmDeleteDeliveredObject(), ilMemberExportGUI\confirmDeleteExportFile(), ilObjectCustomUserFieldsGUI\confirmDeleteFields(), ilAdvancedMDSettingsGUI\confirmDeleteFields(), ilAdvancedMDSettingsGUI\confirmDeleteFiles(), ilObjSessionGUI\confirmDeleteFilesObject(), ilObjCourseGUI\confirmDeleteInfoFilesObject(), ilObjLinkResourceGUI\confirmDeleteLink(), ilObjRepositorySettingsGUI\confirmDeleteNewItemGroup(), ilObjRoleFolderGUI\confirmDeleteObject(), ilObjUserFolderGUI\confirmdeleteObject(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilSessionMembershipGUI\confirmDeleteParticipants(), ilMembershipGUI\confirmDeleteParticipants(), ilSurveyParticipantsGUI\confirmDeleteRatersObject(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilLDAPSettingsGUI\confirmDeleteRoleMapping(), ilLDAPSettingsGUI\confirmDeleteRules(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilLDAPSettingsGUI\confirmDeleteServerSettings(), ilMailTemplateGUI\confirmDeleteTemplate(), ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\confirmDeleteTests(), ilPCIIMTriggerEditorGUI\confirmDeleteTrigger(), ilUnitConfigurationGUI\confirmDeleteUnits(), ilNewsItemGUI\confirmDeletionNewsItems(), ilObjBookingPoolGUI\confirmedBookingNumbersObject(), ilObjBookingPoolGUI\confirmedBookingObject(), ilBookmarkAdministrationGUI\confirmedMove(), ilCronManagerGUI\confirmedRun(), ilObjForumGUI\confirmMergeThreadsObject(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilMembershipGUI\confirmRefuseFromList(), ilMembershipGUI\confirmRefuseSubscribers(), ilObjMediaPoolGUI\confirmRemove(), ilObjBlogGUI\confirmRemoveContributor(), ilContainerGUI\confirmRemoveFromSystemObject(), ilPDSelectedItemsBlockGUI\confirmRemoveObject(), ilExSubmissionTeamGUI\confirmRemoveTeamMemberObject(), ilOrgUnitStaffGUI\confirmRemoveUser(), SurveyQuestionGUI\confirmSavePhrase(), ilObjGlossaryGUI\confirmTermDeletion(), ilSurveyConstraintsGUI\constraintsAddObject(), ilObjMediaCastGUI\convertFileObject(), ilObjWorkspaceFolderGUI\copy(), ilObjTestGUI\copyAndLinkToQuestionpoolObject(), ilObjStyleSheetGUI\copyCharacteristicsObject(), ilObjectCopyGUI\copyContainer(), ilStructureObjectGUI\copyItems(), ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilObjContentObjectGUI\copyItems(), ilObjectCopyGUI\copyMultipleNonContainer(), ilMediaItem\copyOriginal(), ilObjTestGUI\copyQuestionObject(), ilObjWorkspaceFolderGUI\copyShared(), ilObjectCopyGUI\copySingleObject(), ilDidacticTemplateSettingsGUI\copyTemplate(), ilGlossaryForeignTermCollectorGUI\copyTerms(), ilObjGlossaryGUI\copyTerms(), ilObjMediaPoolGUI\copyToClipboard(), ilObjTestVerificationGUI\create(), ilObjSCORMVerificationGUI\create(), ilObjExerciseVerificationGUI\create(), ilObjCourseVerificationGUI\create(), ilBookmarkAdministrationGUI\createBookmark(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilFileSystemGUI\createDirectory(), ilDclExportGUI\createExportFile(), ilPCFileListGUI\createFileItem(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilConsultationHoursGUI\createNewBookingEntry(), ilObjPortfolioGUI\createPortfolioFromAssignment(), ilObjBlogGUI\createPosting(), ilLDAPSettingsGUI\createRoleMapping(), ilSurveyParticipantsGUI\createSurveyCodesObject(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilECSMappingSettingsGUI\cSaveOverview(), ilECSMappingSettingsGUI\cUpdateSettings(), ilObjWorkspaceFolderGUI\cut(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilObjLinkResourceGUI\deactivateLink(), ilObjComponentSettingsGUI\deactivatePlugin(), ilDidacticTemplateSettingsGUI\deactivateTemplates(), ilLPListOfSettingsGUI\deassign(), ilObjRoleGUI\deassignUserObject(), ilCalendarCategoryGUI\declineShared(), ilErrorHandling\defaultHandler(), ilOrgUnitTypeGUI\delete(), ilCourseArchivesGUI\delete(), ilStudyProgrammeTypeGUI\delete(), ilCalendarCategoryGUI\delete(), ilDclTableEditGUI\delete(), ilConditionHandlerGUI\delete(), ilConsultationHoursGUI\delete(), ilCalendarCategoryGUI\deleteAppointments(), ilPCImageMapEditorGUI\deleteAreas(), ilImageMapEditorGUI\deleteAreas(), ilRegistrationSettingsGUI\deleteAssignment(), ilSubStyleAssignmentGUI\deleteAssignments(), ilMailAttachmentGUI\deleteAttachments(), ilUnitConfigurationGUI\deleteCategories(), ilSurveyParticipantsGUI\deleteCodesConfirmObject(), ilObject2GUI\deleteConfirmation(), ilObject2GUI\deleteConfirmedObjects(), ilLPObjectStatisticsGUI\deleteData(), ilExSubmissionFileGUI\deleteDeliveredObject(), ilObjRoleGUI\deleteDesktopItemsObject(), ilCustomUserFieldsGUI\deleteField(), ilAdvancedMDSettingsGUI\deleteFields(), ilAdvancedMDSettingsGUI\deleteFiles(), ilObjSessionGUI\deleteFilesObject(), ilObjCourseGUI\deleteInfoFilesObject(), ilObjTaxonomyGUI\deleteItems(), SurveyQuestionGUI\deleteMaterial(), ilObjSkillManagementGUI\deleteNodes(), ilCourseObjectivesGUI\deleteObjectives(), ilRepUtilGUI\deleteObjects(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), ilSessionMembershipGUI\deleteParticipants(), ilMembershipGUI\deleteParticipants(), ilPageLayoutAdministrationGUI\deletePgl(), ilAdvancedMDSettingsGUI\deleteRecords(), ilLDAPSettingsGUI\deleteRoleMapping(), ilLDAPSettingsGUI\deleteRules(), ilAuthShibbolethSettingsGUI\deleteRules(), ilSurveyParticipantsGUI\deleteSavedMessageObject(), ilLDAPSettingsGUI\deleteServerSettings(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilContainerStartObjectsGUI\deleteStarterObject(), ilUserStartingPointGUI\deleteStartingPoint(), ilContentStyleSettingsGUI\deleteStyle(), ilMailTemplateGUI\deleteTemplate(), ilDidacticTemplateSettingsGUI\deleteTemplates(), ilTranslationGUI\deleteTranslations(), ilMultilingualismGUI\deleteTranslations(), ilObjectTranslationGUI\deleteTranslations(), ilObjCategoryGUI\deleteTranslationsObject(), ilUnitConfigurationGUI\deleteUnits(), ilLocalUserGUI\deleteUsers(), ilObjCategoryGUI\deleteUsersObject(), ilObjFileGUI\deleteVersions(), ilObjCourseGUI\deliverCertificateObject(), ilFileDataForumDrafts\deliverFile(), ilFileDataForum\deliverFile(), ilNewsItem\deliverMobFile(), ilFileDataForumDrafts\deliverZipFile(), ilFileDataForum\deliverZipFile(), ilObjStudyProgrammeGUI\denyAccessIfNotAnyOf(), ilForumModeratorsGUI\detachModeratorRole(), ilCalendarCategoryGUI\details(), ilObjMediaCastGUI\determinePlaytimeObject(), ilExSubmissionObjectGUI\directSubmitObject(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilSetupGUI\displayLanguages(), ilPageContentGUI\displayValidationError(), ilECSMappingSettingsGUI\dMap(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doCasAuthentication(), ilDclStandardField\doCreate(), ilPermissionGUI\doImportRole(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilDclStandardField\doRead(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilCourseArchivesGUI\downloadArchives(), ilExSubmissionGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilExSubmissionGUI\downloadFileObject(), ilAppointmentPresentationGUI\downloadFiles(), ilObjSystemFolderGUI\downloadJavaServerIniObject(), ilExSubmissionFileGUI\downloadObject(), ilECSMappingSettingsGUI\dSynchronizeTrees(), ilECSMappingSettingsGUI\dUpdateSettings(), ilECSMappingSettingsGUI\dUpdateTreeSettings(), ilCalendarCategoryGUI\edit(), ilConditionHandlerGUI\edit(), ilCourseObjectivesGUI\edit(), ilConsultationHoursGUI\edit(), ilPageObjectGUI\edit(), ilObjStudyProgrammeGUI\editAdvancedSettings(), ilObjOrgUnitGUI\editAdvancedSettings(), ilExSubmissionTextGUI\editAssignmentTextObject(), ilSurveyParticipantsGUI\editCodesObject(), ilObjForumGUI\editDraftObject(), ilObjLinkResourceGUI\editLink(), ilMembershipGUI\editParticipants(), ilExPeerReviewGUI\editPeerReviewObject(), ilSurveyPhrasesGUI\editPhrase(), assNumericGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), ilLDAPSettingsGUI\editRoleAssignment(), ilCloudPluginSettingsGUI\editSettings(), ilObjOrgUnitGUI\editSettings(), ilDidacticTemplateSettingsGUI\editTemplate(), ilLPListOfObjectsGUI\editUser(), ilMarkSchemaGUI\ensureEctsGradesCanBeEdited(), ilMarkSchemaGUI\ensureMarkSchemaCanBeEdited(), ilSurveyEvaluationGUI\evaluation(), ilSurveyEvaluationGUI\evaluationuser(), ilLTIRouterGUI\executeCommand(), ilUIPluginRouterGUI\executeCommand(), ilLPTableBaseGUI\executeCommand(), ilRadiusSettingsGUI\executeCommand(), ilLDAPSettingsGUI\executeCommand(), ilRepositoryObjectSearchGUI\executeCommand(), ilCASSettingsGUI\executeCommand(), ilObjCloudGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilObjectActivationGUI\executeCommand(), ilMemberExportGUI\executeCommand(), ilTestScoringGUI\executeCommand(), ilSurveyPageGUI\executeCommand(), ilDclRecordListGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilDclDetailedViewGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilAdministrationGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilTestRandomQuestionSetConfigGUI\executeCommand(), ilSamlSettingsGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilPageObjectGUI\executeCommand(), ilSurveyEditorGUI\executeCreateQuestionObject(), ilSystemStyleOverviewGUI\export(), ilAccountCodesGUI\exportCodes(), ilRegistrationSettingsGUI\exportCodes(), ilSurveyParticipantsGUI\exportCodesObject(), ilAdvancedMDSettingsGUI\exportRecords(), ilDidacticTemplateSettingsGUI\exportTemplate(), ilFileSystemGUI\extCommand(), ilObjMediaCastGUI\extractPreviewImageObject(), ilTestScoringGUI\fetchActiveIdParameter(), ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillMaxMembers(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilStudyProgrammeTypeFormGUI\fillObject(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilCourseRegistrationGUI\fillRegistrationType(), ilGroupRegistrationGUI\fillRegistrationType(), ilIndividualAssessmentMemberGUI\finalize(), ilIndividualAssessmentMemberGUI\finalizeConfirmation(), ilCourseObjectivesGUI\finalSeparatedTestAssignment(), ilCourseObjectivesGUI\finalTestAssignment(), ilCourseObjectivesGUI\finalTestLimits(), ilSCTreeTasksGUI\findMissing(), ilSCTreeTasksGUI\findMissingTreeEntries(), ilOrgUnitStaffGUI\fromEmployeeToSuperior(), ilOrgUnitStaffGUI\fromSuperiorToEmployee(), ilUnitConfigurationGUI\getCategoryById(), ilObjCloudGUI\getFile(), ilTestExportPlugin\getFormat(), ilCronManagerGUI\getMultiActionData(), ilExerciseManagementGUI\getMultiActionUserIds(), ilBadgeProfileGUI\getMultiSelection(), ilMailTemplateGUI\getTemplateForm(), ilTestSkillLevelThresholdsGUI\getTestId(), ilObjectPermissionStatusGUI\getUser(), ilObjWikiGUI\gotoPageObject(), ilLPListOfSettingsGUI\groupMaterials(), ilMembershipRegistrationCodeUtils\handleCode(), ilObjBibliographicGUI\handleNonAccess(), ilECSObjectSettings\handleSettingsUpdate(), ilTestOutputGUI\handleTearsAndAngerNoObjectiveOrientedQuestion(), ilObjSystemCheckGUI\handleTrashAction(), ilCalendarCategoryGUI\importAppointments(), ilSurveyParticipantsGUI\importExternalRecipientsFromFileObject(), ilSurveyParticipantsGUI\importExternalRecipientsFromTextObject(), ilBookmarkAdministrationGUI\importFile(), ilObjContentObjectGUI\importFileObject(), ilObjectGUI\importFileObject(), ilAdvancedMDSettingsGUI\importRecord(), ilObjSurveyGUI\importSurveyObject(), ilDidacticTemplateSettingsGUI\importTemplate(), ilLMImportGUI\importTranslation(), ilMediaPoolImportGUI\importTranslation(), ilObjSurveyGUI\infoScreen(), ilObjBibliographicGUI\infoScreenForward(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilSetupGUI\initClientDbForm(), ilObjSessionGUI\initContainer(), ilObjCloudGUI\initCreateForm(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilObjFileGUI\initCreationForms(), ilOrgUnitTypeCustomIconsFormGUI\initForm(), ilStudyProgrammeTypeCustomIconsFormGUI\initForm(), ilPCAMDPageListGUI\initForm(), ilPCSkillsGUI\initForm(), ilCloudPluginInitGUI\initGUI(), ilSamlSettingsGUI\initIdp(), ilOrgUnitGlobalSettingsGUI\initSettingsForm(), ilSurveyPageGUI\insertNewQuestion(), ilObjTestGUI\insertQuestionsAfterObject(), ilObjTestGUI\insertQuestionsBeforeObject(), ilSurveyParticipantsGUI\insertSavedMessageObject(), ilMailTemplateGUI\insertTemplate(), ilSetupGUI\installDatabase(), ilSurveyParticipantsGUI\inviteUserGroupObject(), assFormulaQuestionGUI\isSaveCommand(), ilRegistrationGUI\join(), ilPersonalDesktopGUI\jumpToBookmarks(), ilPersonalDesktopGUI\jumpToComments(), ilPersonalDesktopGUI\jumpToNotes(), ilObjGroupGUI\leaveObject(), ilObjCourseGUI\leaveObject(), SurveyQuestionGUI\linkChilds(), ilSCTreeTasksGUI\listTree(), ilRepositorySearchGUI\listUsers(), ilObjRoleGUI\listUsersRoleObject(), ilObjUserFolderGUI\mailObject(), ilSurveyParticipantsGUI\mailRatersObject(), ilMailingListsGUI\mailToList(), ilObjLanguageExtGUI\maintainExecuteObject(), ilCourseObjectivesGUI\materialAssignment(), ilObjForumGUI\mergeThreadsObject(), ilBookmarkAdministrationGUI\move(), ilObjTaxonomyGUI\moveItems(), ilObjTestGUI\moveQuestionsObject(), arGUI\multiAction(), ilPCFileItemGUI\newFileItem(), ilMailMemberSearchGUI\nextMailForm(), ilObjExerciseGUI\outCertificateObject(), ilScoringAdjustmentGUI\outputAdjustQuestionForm(), ilTestPlayerAbstractGUI\outQuestionSummaryCmd(), ilDclMobRecordFieldModel\parseValue(), ilObjTestGUI\participantsObject(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilObjTaxonomyGUI\pasteItems(), ilObjQuestionPoolGUI\pasteObject(), ilMailFolderGUI\performAddSubFolder(), ilAssQuestionHintsGUI\performDeleteCmd(), ilMailFolderGUI\performDeleteSubFolder(), ilLocalUserGUI\performDeleteUsers(), ilObjForumGUI\performMergeThreadsObject(), ilObjForumGUI\performMoveThreadsObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilMailFolderGUI\performRenameSubFolder(), ilRepositoryObjectSearchGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilObjWikiGUI\performSearchObject(), ilDclTableViewEditGUI\permissionDenied(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilSystemStyleIconsGUI\preview(), ilSetup\printProxyStatus(), ilObjSystemFolderGUI\printProxyStatus(), ilSurveyEditorGUI\printViewObject(), ilExAssignmentEditorGUI\processForm(), ilExAssignmentEditorGUI\processPeerReviewForm(), ilExSubmission\processUploadedZipFile(), ilObjForumGUI\publishDraftObject(), ilObjContentObjectGUI\publishExportFile(), ilStartUpGUI\purgePlaceholders(), ilSurveyEditorGUI\questionsObject(), ilObjQuestionPoolGUI\questionsObject(), ilGlossaryForeignTermCollectorGUI\referenceTerms(), ilObjGlossaryGUI\referenceTerms(), ilObjComponentSettingsGUI\refreshLanguages(), ilECSSettingsGUI\refreshParticipants(), ilMembershipGUI\refuseFromList(), ilMembershipGUI\refuseSubscribers(), ilLPListOfSettingsGUI\releaseMaterials(), ilCourseParticipantsGroupsGUI\remove(), ilObjBlogGUI\removeContributor(), ilRepositorySearchGUI\removeFromClipboard(), ilOrgUnitStaffGUI\removeFromEmployees(), ilOrgUnitStaffGUI\removeFromRole(), ilOrgUnitStaffGUI\removeFromSuperiors(), ilRepUtilGUI\removeObjectsFromSystem(), ilObjTestGUI\removeQuestionsObject(), ilExSubmissionTeamGUI\removeTeamMemberObject(), ilFileSystemGUI\renameFile(), ilWikiPageGUI\renamePage(), ilChatroomViewGUI\renderFileUploadForm(), ilSystemStyleLessGUI\reset(), ilObjPDFGenerationGUI\resetSettings(), ilRepUtilGUI\restoreObjects(), ilObjRoleFolderGUI\roleSearchFormObject(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjTestVerificationGUI\save(), ilObjSCORMVerificationGUI\save(), ilObjCourseVerificationGUI\save(), ilObjExerciseVerificationGUI\save(), ilCalendarUserSettingsGUI\save(), ilObjLinkResourceGUI\save(), ilObjCalendarSettingsGUI\save(), ilSystemStyleSettingsGUI\save(), ilCalendarCategoryGUI\save(), ilRadiusSettingsGUI\save(), ilRegistrationSettingsGUI\save(), ilCASSettingsGUI\save(), ilAuthShibbolethSettingsGUI\save(), ilMemberAgreementGUI\save(), SurveyQuestionGUI\save(), ilCalendarAppointmentGUI\save(), ilLDAPSettingsGUI\save(), ilSetupGUI\save_background_tasks(), ilObjPrivacySecurityGUI\save_privacy(), ilObjLinkResourceGUI\saveAddLink(), ilObjSearchSettingsGUI\saveAdvancedLuceneSettingsObject(), ilSubStyleAssignmentGUI\saveAssignment(), ilRegistrationSettingsGUI\saveAssignment(), ilMailAttachmentGUI\saveAttachments(), ilSetupGUI\saveBasicSettings(), ilExSubmissionObjectGUI\saveBlogObject(), ilObjMediaCastGUI\saveCastItemObject(), ilUnitConfigurationGUI\saveCategory(), ilSetupGUI\saveClientIni(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilObjFileAccessSettingsGUI\saveDownloadingSettings(), ilObjContentObjectGUI\saveExportIds(), ilAssQuestionFeedbackEditingGUI\saveFeedbackFormCmd(), ilExternalFeedBlockGUIGen\saveFeedBlock(), ilObjectCustomUserFieldsGUI\saveField(), ilAccountRegistrationGUI\saveForm(), ilAssQuestionHintGUI\saveFormCmd(), ilObjQuestionPoolSettingsGeneralGUI\saveFormCmd(), ilObjTestSettingsScoringResultsGUI\saveFormCmd(), ilObjTestDynamicQuestionSetConfigGUI\saveFormCmd(), ilObjTestSettingsGeneralGUI\saveFormCmd(), ilObjUserFolderGUI\saveGeneralSettingsObject(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), ilObjSCORM2004LearningModuleGUI\saveGlossary(), ilConsultationHoursGUI\saveGroup(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilMultilingualismGUI\saveLanguages(), ilObjectTranslationGUI\saveLanguages(), ilSetupGUI\saveLanguages(), SurveyMatrixQuestionGUI\saveLayout(), ilAssQuestionHintsGUI\saveListOrderCmd(), ilObjUserFolderGUI\saveLoginnameSettingsObject(), ilObjSearchSettingsGUI\saveLuceneSettingsObject(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilMarkSchemaGUI\saveMarks(), ilSetupGUI\saveMasterPassword(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilLOEditorGUI\saveMultiTestAssignment(), ilSystemStyleOverviewGUI\saveNewSubStyle(), ilSystemStyleOverviewGUI\saveNewSystemStyle(), ilOrgUnitTypeFormGUI\saveObject(), ilOrgUnitTypeCustomIconsFormGUI\saveObject(), ilStudyProgrammeTypeFormGUI\saveObject(), ilStudyProgrammeTypeCustomIconsFormGUI\saveObject(), ilContainerReferenceGUI\saveObject(), ilObjRoleGUI\saveObject(), ilObjSessionGUI\saveObject(), ilConditionHandlerGUI\saveObligatoryList(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilConditionHandlerGUI\saveObligatorySettings(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePersonalData(), ilPersonalProfileGUI\saveProfile(), ilObjSurveyGUI\savePropertiesObject(), ilSetupGUI\saveProxy(), ilObjSystemFolderGUI\saveProxyObject(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilAdvancedMDSettingsGUI\saveRecord(), ilSetupGUI\saveRegistration(), ilRegistrationSettingsGUI\saveRoleAccessLimitations(), ilLDAPSettingsGUI\saveRoleSelection(), ilConsultationHoursGUI\saveSequence(), ilLPListOfSettingsGUI\saveSettings(), ilECSParticipantSettingsGUI\saveSettings(), ilObjPDFGenerationGUI\saveSettings(), ilObjTermsOfServiceGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilLOEditorGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilSingleUserShareGUI\saveShare(), ilAssQuestionSkillAssignmentsGUI\saveSkillPointsCmd(), ilAssQuestionSkillAssignmentsGUI\saveSkillQuestionAssignmentPropertiesFormCmd(), ilObjectCopyGUI\saveSource(), ilObjectCopyGUI\saveSourceMembership(), ilUserStartingPointGUI\saveStartingPoint(), ilObjectCopyGUI\saveTarget(), ilLOEditorGUI\saveTest(), ilTranslationGUI\saveTranslations(), ilMultilingualismGUI\saveTranslations(), ilObjectTranslationGUI\saveTranslations(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilObjFileGUI\saveUnzip(), ilSurveyExecutionGUI\saveUserInput(), ilUserStartingPointGUI\saveUserStartingPoint(), ilLPTableBaseGUI\searchObjects(), ilObjUserFolderGUI\searchResultHandler(), ilObjectCopyGUI\searchSource(), ilConsultationHoursGUI\searchUsersForAppointments(), ilObjCourseGroupingGUI\selectCourse(), ilObjRoleGUI\selectDesktopItemObject(), ilRepositorySearchGUI\selectObject(), ilCourseObjectivesGUI\selfAssessmentAssignment(), ilCourseObjectivesGUI\selfAssessmentLimits(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilDclRecordEditGUI\sendFailure(), ilObjBibliographicGUI\sendFile(), ilMemberAgreementGUI\sendInfoMessage(), ilObjContentObjectGUI\sendMailToBlockedUsers(), ilMembershipMailGUI\sendMailToSelectedUsers(), ilMailMemberSearchGUI\sendMailToSelectedUsers(), ilMembershipGUI\sendMailToSelectedUsers(), ilTestGradingMessageBuilder\sendMessage(), ilSystemStyleMessageStack\sendMessages(), ilTestInfoScreenToolbarGUI\sendMessages(), ilBadgeBackpack\sendRequest(), ilLDAPSettingsGUI\serverList(), ilObjCloudGUI\serviceAuth(), ilSetting\set(), ilObjAuthSettingsGUI\setAuthModeObject(), ilGlossaryForeignTermCollectorGUI\setForeignGlossary(), ilExerciseManagementGUI\setIndividualDeadlineObject(), ilImageMapEditorGUI\setLink(), ilStructureObjectGUI\setPageLayout(), ilObjContentObjectGUI\setPageLayout(), ilExSubmissionObjectGUI\setSelectedBlogObject(), ilExSubmissionObjectGUI\setSelectedPortfolioObject(), ilImageMapEditorGUI\setShape(), ilCalendarCategoryGUI\shareAssign(), ilCalendarCategoryGUI\shareAssignRoles(), ilCalendarCategoryGUI\shareDeassign(), ilCalendarCategoryGUI\sharePerformSearch(), ilCalendarCategoryGUI\shareSearch(), ilLPObjectStatisticsGUI\showAccessGraph(), ilExSubmissionTextGUI\showAssignmentTextObject(), ilPasswordAssistanceGUI\showAssignPasswordForm(), ilStartUpGUI\showCodeForm(), ilLPObjectStatisticsGUI\showDailyGraph(), ilRepUtilGUI\showDeleteConfirmation(), ilMailTemplateGUI\showEditTemplateForm(), ilMailFolderGUI\showFolder(), ilAssQuestionHintGUI\showFormCmd(), ilObjTestDynamicQuestionSetConfigGUI\showFormCmd(), ilTestRandomQuestionSetConfigGUI\showGeneralConfigFormCmd(), ilExPeerReviewGUI\showGivenPeerReviewObject(), ilObjectCopyGUI\showItemSelection(), ilLPObjectStatisticsGUI\showLearningProgressGraph(), ilStartUpGUI\showLogin(), ilStartUpGUI\showLoginPage(), ilOrgUnitStaffGUI\showOtherRoles(), ilLMPresentationGUI\showPrintView(), ilExPeerReviewGUI\showReceivedPeerReviewObject(), ilTestRandomQuestionSetConfigGUI\showSourcePoolDefinitionListCmd(), ilOrgUnitStaffGUI\showStaff(), ilOrgUnitStaffGUI\showStaffRec(), ilMailTemplateGUI\showTemplates(), ilLPObjectStatisticsGUI\showTypesGraph(), ilStartUpGUI\showUserMappingSelection(), ilLPListOfObjectsGUI\showUserObjectMatrix(), ilCourseContentGUI\showUserTimings(), ilStyleDefinition\skinExists(), ilOrgUnitSimpleImportGUI\startImport(), ilOrgUnitSimpleUserImportGUI\startImport(), ilObjSCORMLearningModuleGUI\stopUserOfflineMode(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), ilPasswordAssistanceGUI\submitAssistanceForm(), ilContactGUI\submitInvitation(), ilPasswordAssistanceGUI\submitUsernameAssistanceForm(), assFormulaQuestionResult\substituteFormula(), SurveyQuestionGUI\syncCopies(), ilCalendarCategoryGUI\synchroniseCalendar(), ilObjComponentSettingsGUI\uninstallPlugin(), ilCalendarCategoryGUI\unshare(), ilFileSystemGUI\unzipFile(), ilObjStudyProgrammeSettingsGUI\update(), ilSystemStyleLessGUI\update(), ilObjectActivationGUI\update(), ilCalendarCategoryGUI\update(), ilObjComponentSettingsGUI\update(), ilCalendarAppointmentGUI\update(), ilADTBasedObjectGUI\updateAction(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilExSubmissionTextGUI\updateAssignmentTextObject(), ilBadgeManagementGUI\updateBadge(), ilSetupGUI\updateBasicSettings(), ilBookmarkAdministrationGUI\updateBookmark(), ilBookmarkAdministrationGUI\updateBookmarkFolder(), ilSurveyParticipantsGUI\updateCodesObject(), ilECSSettingsGUI\updateCommunities(), ilConditionHandlerGUI\updateCondition(), ilObjLoggingSettingsGUI\updateErrorSettings(), ilExternalFeedBlockGUIGen\updateFeedBlock(), ilObjectCustomUserFieldsGUI\updateField(), ilCustomUserFieldsGUI\updateFields(), ilAdvancedMDSettingsGUI\updateFields(), ilCourseObjectivesGUI\updateFinalTestAssignment(), ilCourseObjectivesGUI\updateFinalTestLimits(), ilMDEditorGUI\updateGeneral(), ilConsultationHoursGUI\updateGroup(), ilObjCourseGUI\updateInfoObject(), ilPCDataTableGUI\updateJS(), ilObjLinkResourceGUI\updateLink(), ilObjLinkResourceGUI\updateLinks(), ilCourseObjectivesGUI\updateMaterialAssignment(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjRoleGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjSessionGUI\updateObject(), ilMembershipGUI\updateParticipants(), ilExPeerReviewGUI\updatePeerReviewObject(), ilSCORM2004ScoGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), ilAdvancedMDSettingsGUI\updateRecord(), ilLDAPSettingsGUI\updateRoleAssignment(), ilAuthShibbolethSettingsGUI\updateRoleAssignmentRule(), ilLDAPSettingsGUI\updateRoleMapping(), ilRegistrationSettingsGUI\updateRoles(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentLimits(), ilCloudPluginSettingsGUI\updateSettings(), ilObjLoggingSettingsGUI\updateSettings(), ilObjOrgUnitGUI\updateSettings(), ilConsultationHoursGUI\updateSettings(), ilObjSearchSettingsGUI\updateSettingsObject(), ilMailTemplateGUI\updateTemplate(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilObjForumGUI\updateThreadDraftObject(), ilCourseContentGUI\updateTimings(), ilECSSettingsGUI\updateTitle(), ilObjectServiceSettingsGUI\updateToolSettings(), ilLPListOfObjectsGUI\updateUser(), ilCourseContentGUI\updateUserTimings(), ilCalendarCategoryGUI\uploadAppointments(), assOrderingQuestionGUI\uploadElementImage(), ilMailAttachmentGUI\uploadFile(), ilFileSystemGUI\uploadFile(), ilExSubmissionFileGUI\uploadFileObject(), ilExerciseManagementGUI\uploadMultiFeedbackObject(), ilMobMultiSrtUploadGUI\uploadMultipleSubtitleFile(), ilObjMediaObjectGUI\uploadMultipleSubtitleFileObject(), ilObjLanguageExtGUI\uploadObject(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjTestGUI\uploadTstObject(), ilPersonalProfileGUI\uploadUserPicture(), ilObjUserGUI\uploadUserPictureObject(), ilLPListOfObjectsGUI\userDetails(), ilObjUserFolderGUI\usrExportCsvObject(), ilObjUserFolderGUI\usrExportX86Object(), ilObjUserFolderGUI\usrExportXmlObject(), ilObjPollGUI\validateCustom(), ilSCTreeTasksGUI\validateDuplicates(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCustomUserFieldsGUI\validateForm(), assNumeric\validateSolutionSubmit(), assMultipleChoice\validateSolutionSubmit(), assClozeTest\validateSolutionSubmit(), assFormulaQuestion\validateSolutionSubmit(), ilObjOrgUnitGUI\view(), ilObjLanguageExtGUI\viewObject(), virusHandling(), assLongMenuGUI\writePostData(), assKprimChoiceGUI\writePostData(), and assFormulaQuestionGUI\writePostData().

4531  {
4532  global $DIC;
4533 
4534  if (isset($DIC["tpl"])) {
4535  $tpl = $DIC["tpl"];
4536  $tpl->setMessage("failure", $a_info, $a_keep);
4537  }
4538  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ sendInfo()

static ilUtil::sendInfo (   $a_info = "",
  $a_keep = false 
)
static

Send Info Message to Screen.

Parameters
stringmessage
booleanif true message is kept in session

Definition at line 4514 of file class.ilUtil.php.

References $DIC, and $tpl.

Referenced by ilChatroomSettingsGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilTestScoringByQuestionsGUI\__construct(), FormMailCodesGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilRepositorySearchGUI\__performCourseSearch(), ilRepositorySearchGUI\__performGroupSearch(), ilRepositorySearchGUI\__performRoleSearch(), ilRepositorySearchGUI\__performUserSearch(), ilObjRoleGUI\__prepareOutput(), ilObjLinkResourceGUI\__prepareOutput(), ilUserSearchFilter\__searchObjects(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilUploadFiles\_copyUploadFile(), ilObjChatroomGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjForumGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjTestGUI\_goto(), ilPersonalSettingsGUI\abortDeleteOwnAccount(), ilObjTestGUI\accessViolationRedirect(), ilPageLayoutAdministrationGUI\activate(), ilObjectTranslationGUI\activateContentMultilinguality(), ilECSSettingsGUI\addCategoryMapping(), ilObjTestGUI\addDefaultsObject(), ilObjTestGUI\addParticipantsObject(), assTextQuestionGUI\addSuggestedSolution(), ilBadgeProfileGUI\addToBackpackMulti(), ilObjRoleGUI\addUserObject(), ilIndividualAssessmentMembersGUI\addUsersFromSearch(), arConnectorDB\affectedRows(), ilSetupGUI\applyCustomUpdates(), ilObjTestGUI\applyDefaultsObject(), ilSetupGUI\applyHotfix(), assImagemapQuestionGUI\areaEditor(), ilExSubmissionObjectGUI\askDirectSubmissionObject(), ilSkillProfileGUI\assignLevel(), ilPersonalSkillsGUI\assignMaterial(), assImagemapQuestionGUI\back(), ilSetupGUI\bt_tabs(), ilObjSCORMLearningModuleGUI\cancel(), ilObjStyleSheetGUI\cancelCharacteristicDeletionObject(), ilContentStyleSettingsGUI\cancelDelete(), ilPageLayoutAdministrationGUI\cancelDeletePg(), ilSurveyParticipantsGUI\cancelDeleteSelectedUserDataObject(), ilObjSCORMLearningModuleGUI\cancelDeleteTracking(), SurveyQuestionGUI\cancelExplorer(), ilObjSearchSettingsGUI\cancelObject(), ilObjStyleSheetGUI\cancelObject(), ilObjForumGUI\cancelObject(), ilObjSCORMLearningModuleGUI\cancelStopUserOfflineMode(), SurveyQuestionGUI\cancelSync(), ilSetupGUI\changeAccessMode(), ilSetupGUI\changeDefaultClient(), ilMailFolderGUI\changeFolder(), ilSetupGUI\changeSettingsType(), ilObjCourseGUI\checkLicenses(), ilTestPlayerAbstractGUI\checkOnlineTestAccess(), ilChatroomAdminViewGUI\checkServerConnection(), ilTestPlayerAbstractGUI\checkTestExecutable(), ilContainerGUI\cloneAllObject(), ilSetupGUI\cloneSaveSource(), ilObjForumGUI\cloneWizardPageObject(), ilSurveyParticipantsGUI\codesObject(), ilObjPDFGenerationGUI\configForm(), ilPCGridGUI\confirmCellDeletion(), ilMailingListsGUI\confirmDelete(), ilConsultationHoursGUI\confirmDelete(), ilObjPollGUI\confirmDeleteAllVotes(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilObjMDSettingsGUI\confirmDeleteEntries(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilMailFolderGUI\confirmDeleteMails(), ilMailingListsGUI\confirmDeleteMembers(), ilMembershipGUI\confirmDeleteParticipants(), ilSkillProfileGUI\confirmDeleteProfiles(), ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\confirmDeleteThreads(), ilExcCriteriaGUI\confirmDeletion(), ilExcCriteriaCatalogueGUI\confirmDeletion(), ilExportGUI\confirmDeletion(), ilObjSkillManagementGUI\confirmedDelete(), ilObjTaxonomyGUI\confirmedDelete(), ilObjSCORM2004LearningModuleGUI\confirmedDelete(), ilObjHelpSettingsGUI\confirmHelpModulesDeletion(), ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilBasicSkillGUI\confirmLevelDeletion(), ilBasicSkillGUI\confirmLevelResourcesRemoval(), ilObjForumGUI\confirmMergeThreadsObject(), ilPortfolioRepositoryGUI\confirmPortfolioDeletion(), ilObjPortfolioBaseGUI\confirmPortfolioPageDeletion(), ilConsultationHoursGUI\confirmRejectBooking(), ilObjWikiGUI\confirmRemoveImportantPagesObject(), ilMultilingualismGUI\confirmRemoveLanguages(), ilObjectTranslationGUI\confirmRemoveLanguages(), ilContSkillAdminGUI\confirmRemoveSelectedSkill(), ilSkillSelfEvaluationGUI\confirmSelfEvaluationDeletion(), ilSettingsTemplateGUI\confirmSettingsTemplateDeletion(), ilPersonalSkillsGUI\confirmSkillRemove(), ilObjMediaObjectGUI\confirmSrtDeletionObject(), ilPCTabsGUI\confirmTabsDeletion(), ilDidacticTemplateGUI\confirmTemplateSwitch(), ilSkillProfileGUI\confirmUserRemoval(), ilSurveyConstraintsGUI\constraintsObject(), ilSurveyConstraintsGUI\constraintStep1Object(), ilObjBlogGUI\contributors(), ilObjMediaCastGUI\convertFileObject(), ilSkillTreeNodeGUI\copyItems(), ilStructureObjectGUI\copyItems(), ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilObjContentObjectGUI\copyItems(), ilObjSurveyQuestionPoolGUI\copyObject(), ilObjQuestionPoolGUI\copyObject(), ilContainerGUI\copyObject(), ilObjContentObjectGUI\copyPage(), ilObjPortfolioBaseGUI\copyPageForm(), ilObjTestGUI\copyQuestionObject(), ilSurveyEditorGUI\copyQuestionsToPoolObject(), ilObjGlossaryGUI\copyTerms(), ilBookmarkAdministrationGUI\createBookmark(), ilSurveyConstraintsGUI\createConstraintsObject(), ilExSubmissionObjectGUI\createPortfolioObject(), ilExSubmissionObjectGUI\createPortfolioTemplateObject(), ilSurveyEditorGUI\createQuestionblockObject(), ilObjTestGUI\createQuestionPoolAndCopyObject(), ilTestExportGUI\createTestArchiveExport(), ilSkillTreeNodeGUI\cutItems(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilContainerGUI\cutObject(), ilContSkillAdminGUI\deassignCompetencesConfirm(), ilObjSCORMLearningModuleGUI\decreaseAttempts(), ilChatroomBanGUI\delete(), ilObjPollGUI\deleteAllVotes(), ilECSSettingsGUI\deleteCategoryMappings(), ilObjStyleSheetGUI\deleteCharacteristicConfirmationObject(), ilSurveyParticipantsGUI\deleteCodesObject(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilObjTestGUI\deleteDefaultsObject(), ilObjMDSettingsGUI\deleteEntries(), ilObjAssessmentFolderGUI\deleteLogObject(), ilPDMailBlockGUI\deleteMail(), ilMarkSchemaGUI\deleteMarkSteps(), ilObjStyleSheetGUI\deleteMediaQueryConfirmationObject(), ilPersonalSettingsGUI\deleteOwnAccount1(), ilSurveyPhrasesGUI\deletePhrase(), ilSkillProfileGUI\deleteProfiles(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjQuestionPoolGUI\deleteQuestionsObject(), ilPageEditorGUI\deleteSelected(), ilSurveyParticipantsGUI\deleteSingleUserResultsObject(), ilObjTestGUI\deleteSingleUserResultsObject(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilObjStyleSheetGUI\deleteTemplateConfirmationObject(), ilObjForumGUI\deleteThreadDraftsObject(), ilMailFolderGUI\deliverFile(), ilTestEvaluationGUI\detailedEvaluation(), ilExSubmissionObjectGUI\directSubmitObject(), ilForumSettingsGUI\disableAdminForceNoti(), ilObjForumGUI\disableForumNotificationObject(), ilForumSettingsGUI\disableHideUserToggleNoti(), ilScoringAdjustmentGUI\dispatchCommand(), ilSetupGUI\displayClientList(), ilSetupGUI\displayDatabaseSlave(), ilSetupGUI\displayDeleteConfirmation(), ilBookmarkAdministrationGUI\displayHeader(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilSetupGUI\displaySessions(), ilSetupGUI\displayTools(), ilDclDetailedViewGUI\doExtReplace(), ilObjSurveyQuestionPoolGUI\downloadExportFileObject(), ilObjFolder\downloadFolder(), ilContainerGUI\downloadMultipleObjects(), ilExSubmissionFileGUI\downloadReturnedObject(), ilBasicSkillGUI\edit(), ilBasicSkillTemplateGUI\edit(), ilPageObjectGUI\edit(), ilExSubmissionTextGUI\editAssignmentTextObject(), ilBadgeManagementGUI\editBadge(), ilECSSettingsGUI\editCategoryMapping(), ilAdvancedMDSettingsGUI\editFields(), ilMailFolderGUI\editFolder(), ilObjWikiGUI\editImportantPagesObject(), ilBasicSkillGUI\editLevel(), ilImageMapEditorGUI\editMapArea(), ilExPeerReviewGUI\editPeerReviewObject(), ilObjFileAccessSettingsGUI\editPreviewSettings(), ilSkillTreeNodeGUI\editProperties(), ilObjContentObjectGUI\editPublicSection(), ilObjBlogAdministrationGUI\editSettings(), ilObjHelpSettingsGUI\editSettings(), ilObjDataCollectionGUI\emptyInfo(), ilForumSettingsGUI\enableAdminForceNoti(), ilObjForumGUI\enableForumNotificationObject(), ilForumSettingsGUI\enableHideUserToggleNoti(), ilTestPlayerAbstractGUI\endingTimeReached(), ilWorkflowEngineDefinitionsGUI\ensureProcessIdInRequest(), ilMailGUI\executeCommand(), ilObjPortfolioGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilDclTableListGUI\executeCommand(), ilExerciseManagementGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjQuestionPoolSettingsGeneralGUI\executeCommand(), ilObjContentObjectGUI\executeCommand(), ilDclRecordListGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjTestSettingsGeneralGUI\executeCommand(), ilObjTestSettingsScoringResultsGUI\executeCommand(), ilObjTestDynamicQuestionSetConfigGUI\executeCommand(), ilQuestionEditGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), ilDclContentExporter\export(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), ilECSSettingsGUI\exportMappings(), ilObjSurveyQuestionPoolGUI\exportQuestionObject(), ilObjQuestionPoolGUI\exportQuestionObject(), ilObjSCORMLearningModuleGUI\exportSelectionUsers(), ilDidacticTemplateSettingsGUI\exportTemplate(), ilObjMediaCastGUI\extractPreviewImageObject(), ilExportIDTableGUI\fillRow(), ilObjForumGUI\getForumObjects(), ilNewItemGroupTableGUI\getGroups(), ilExcCriteriaCatalogueTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilImagemapPreview\getPreviewFilename(), assFormulaQuestionGUI\getTestOutput(), ilObjectPermissionStatusGUI\getUser(), ilAssQuestionSkillAssignmentsGUI\handleAssignmentConfigurationHintMessage(), ilObjSCORMLearningModuleGUI\import(), ilECSSettingsGUI\importMappings(), ilObjUserFolderGUI\importUsersObject(), ilLocalUserGUI\index(), ilObjSurveyGUI\infoScreen(), ilSetupGUI\initClientDbForm(), ilObjPortfolioGUI\initCreateForm(), ilCustomUserFieldsGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilAssQuestionHintsGUI\initHintOrderingClipboardNotification(), ilForumTopicTableGUI\initMergeThreadsTable(), ilPCInteractiveImageGUI\insert(), ilObjMediaPoolGUI\insertFromClipboard(), ilSurveyEditorGUI\insertQuestionblocksObject(), ilSurveyEditorGUI\insertQuestions(), ilTestExpressPageObjectGUI\insertQuestions(), ilTestQuestionBrowserTableGUI\insertQuestionsCmd(), ilSurveyEditorGUI\insertQuestionsObject(), ilObjTestGUI\insertQuestionsObject(), ilObjTestGUI\insertRandomSelectionObject(), ilContactGUI\inviteToChat(), assFormulaQuestionGUI\isSaveCommand(), ilSetupGUI\jumpToFirstUnfinishedSetupStep(), ilContainerGUI\linkObject(), ilBadgeProfileGUI\listBackpackGroups(), ilBadgeManagementGUI\listBadges(), ilPCInteractiveImageGUI\listContentPopups(), ilObjRoleGUI\listDesktopItemsObject(), ilTestExportGUI\listExportFiles(), ilSkillTemplateCategoryGUI\listItems(), ilSkillCategoryGUI\listItems(), ilSkillTemplateReferenceGUI\listItems(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilLMEditShortTitlesGUI\listShortTitles(), ilSkillRootGUI\listSkills(), ilPersonalSkillsGUI\listSkillsForAdd(), ilObjTaxonomyGUI\listTaxonomies(), ilSkillRootGUI\listTemplates(), ilObjectTranslationGUI\listTranslations(), ilObjCategoryGUI\listUsersObject(), ilContainerGUI\lockObject(), ilMailSearchGroupsGUI\mail(), ilMailSearchCoursesGUI\mail(), ilMailingListsGUI\mailToList(), ilContactGUI\mailToUsers(), ilObjForumGUI\markAllReadObject(), ilExerciseManagementGUI\membersObject(), ilObjForumGUI\mergeThreadsObject(), ilPermissionGUI\modifyBlockRoles(), ilBookmarkAdministrationGUI\move(), ilObjContentObjectGUI\moveChapter(), ilObjTaxonomyGUI\moveItems(), ilObjSurveyQuestionPoolGUI\moveObject(), ilObjQuestionPoolGUI\moveObject(), ilObjContentObjectGUI\movePage(), ilObjTestGUI\movePageObject(), ilSurveyEditorGUI\moveQuestionsObject(), ilObjForumGUI\moveThreadsObject(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilDclDetailedViewGUI\offerAlternativeViews(), ilLMPageGUI\onFeedbackEditingForwarding(), ilObjLanguageFolderGUI\out(), ilTestServiceGUI\outCorrectSolution(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), assQuestionGUI\outQuestionPage(), assQuestionGUI\outQuestionType(), assQuestionGUI\outSolutionExplorer(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilObjTestGUI\participantsObject(), ilObjSurveyQuestionPoolGUI\pasteObject(), ilObjQuestionPoolGUI\pasteObject(), ilMailFolderGUI\performAddSubFolder(), ilAdvancedSearchGUI\performAdvMDSearch(), ilMailingListsGUI\performDelete(), ilMailingListsGUI\performDeleteMembers(), ilMailFolderGUI\performDeleteSubFolder(), ilObjForumGUI\performDeleteThreadsObject(), ilMailFolderGUI\performEmptyTrash(), ilObjForumGUI\performMoveThreadsObject(), ilObjForumGUI\performPostActivationObject(), ilMailFolderGUI\performRenameSubFolder(), ilAdvancedSearchGUI\performSearch(), ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilObjForumGUI\performThreadsActionObject(), ilSurveyPhrasesGUI\phrases(), ilTestPlayerAbstractGUI\populateKioskHead(), ilTestPlayerFixedQuestionSetGUI\populateQuestionOptionalMessage(), ilTestPlayerRandomQuestionSetGUI\populateQuestionOptionalMessage(), ilImprintGUI\postOutputProcessing(), ilWikiPageGUI\preview(), ilObjBlogGUI\preview(), ilSurveyEvaluationGUI\printEvaluation(), ilObjTestGUI\printobject(), ilWorkflowEngineDefinitionsGUI\processUploadFormCancellation(), ilContSkillAdminGUI\publishAssignments(), ilSurveyEditorGUI\questionsObject(), ilObjTestGUI\questionsObject(), ilECSSettingsGUI\readAll(), ilObjGlossaryGUI\referenceTerms(), ilObjSessionGUI\registerObject(), ilSetupGUI\reloadControlStructure(), ilMultilingualismGUI\removeLanguages(), ilObjectTranslationGUI\removeLanguages(), ilObjTestGUI\removeParticipantObject(), ilSurveyEditorGUI\removeQuestionsObject(), ilCronManagerGUI\render(), ilBookingScheduleGUI\render(), ilObjPollGUI\render(), ilSessionStatisticsGUI\render(), ilObjBlogGUI\render(), ilSurveyPageGUI\renderPage(), ilExSubmissionObjectGUI\renderResourceSelection(), ilAssQuestionPreviewGUI\resetCmd(), ilTestEvaluationGUI\resetfilterEvaluation(), ilAssQuestionHintsGUI\resetOrderingClipboardCmd(), ilObjTestGUI\reviewobject(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjRoleFolderGUI\roleSearchObject(), ilObjFileGUI\rollbackVersion(), ilDownloadFilesBackgroundTask\run(), ilDclFieldEditGUI\save(), ilECSSettingsGUI\save(), ilObjSearchSettingsGUI\saveAdvancedLuceneSettingsObject(), ilMailingListsGUI\saveAssignmentForm(), ilExSubmissionObjectGUI\saveBlogObject(), ilObjStyleSheetGUI\saveCharacteristicObject(), ilObjTestGUI\saveClientIPObject(), ilMailFormGUI\saveDraft(), ilObjMDSettingsGUI\saveEntry(), ilECSSettingsGUI\saveExportMappings(), ilAccountRegistrationGUI\saveForm(), ilObjTestSettingsGeneralGUI\saveFormCmd(), ilObjStyleSheetGUI\saveHideStatusObject(), ilECSSettingsGUI\saveImportMappings(), ilMultilingualismGUI\saveLanguages(), ilObjectTranslationGUI\saveLanguages(), ilSetupGUI\saveLanguages(), ilObjSearchSettingsGUI\saveLuceneSettingsObject(), ilSetupGUI\saveMasterPassword(), ilObjExternalToolsSettingsGUI\saveMathJaxObject(), ilObjUserGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilObjSessionGUI\saveObject(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilObjTestGUI\saveOrderAndObligationsObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), assFileUpload\savePreviewData(), ilObjSCORMLearningModuleGUI\saveProperties(), ilObjMediaObjectGUI\savePropertiesObject(), ilSkillSelfEvaluationGUI\saveSelfEvaluation(), ilLPListOfSettingsGUI\saveSettings(), ilLOEditorGUI\saveSettings(), ilObjSearchSettingsGUI\saveSettingsObject(), ilSingleUserShareGUI\saveShare(), ilObjAdvancedEditingGUI\saveTags(), ilObjFileAccessSettingsGUI\saveWebDAVSettings(), assFileUpload\saveWorkingData(), ilMailSearchGUI\search(), ilLuceneAdvancedSearchGUI\search(), ilMailFormGUI\search(), ilObjectCopyGUI\searchSource(), ilObjRoleGUI\selectDesktopItemObject(), ilPCMediaObjectGUI\selectObjectReference(), ilConditionHandlerGUI\selector(), ilTestRandomQuestionSetConfigGUI\selectPoolDerivationTargetCmd(), ilDclRecordListGUI\sendFile(), ilConsultationHoursGUI\sendInfoAboutUnassignedUsers(), ilTestGradingMessageBuilder\sendMessage(), ilMailFormGUI\sendMessage(), ilSystemStyleMessageStack\sendMessages(), ilTestInfoScreenToolbarGUI\sendMessages(), ilObjWikiGUI\setAsStartPageObject(), ilObjAuthSettingsGUI\setAuthModeObject(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilExSubmissionObjectGUI\setSelectedBlogObject(), ilExSubmissionObjectGUI\setSelectedPortfolioObject(), ilExSubmissionObjectGUI\setSelectedPortfolioTemplateObject(), ilSetup\setSessionSettings(), ilMailSearchGroupsGUI\share(), ilMailSearchCoursesGUI\share(), ilLPListOfSettingsGUI\show(), ilCalendarSubscriptionGUI\show(), ilUserActionAdminGUI\show(), ilObjectCustomUserFieldsGUI\show(), ilNewsTimelineGUI\show(), ilRegistrationGUI\show(), ilContainerGUI\showAdministrationPanel(), ilLPObjectStatisticsGUI\showAggregationInfo(), ilPermissionGUI\showConfirmBlockRole(), ilLPObjectStatisticsGUI\showCronJobInfo(), ilObjContentObjectGUI\showEntrySelector(), ilMailFormGUI\showForm(), ilObjTestDynamicQuestionSetConfigGUI\showFormCmd(), ilTestRandomQuestionSetConfigGUI\showGeneralConfigFormCmd(), ilGlossaryForeignTermCollectorGUI\showGlossarySelector(), ilObjStudyProgrammeMembersGUI\showInfoMessage(), ilObjectCopyGUI\showItemSelection(), ilObjSessionGUI\showJoinRequestButton(), ilMarkSchemaGUI\showMarkSchema(), ilMailSearchGroupsGUI\showMembers(), ilMailSearchCoursesGUI\showMembers(), ilObjTermsOfServiceGUI\showMissingDocuments(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), ilExerciseManagementGUI\showMultiFeedbackObject(), ilObjBookingPoolGUI\showNoScheduleMessage(), ilExerciseManagementGUI\showParticipantObject(), ilObjPollGUI\showParticipants(), ilObjPollGUI\showParticipantVotes(), ilPersonalSettingsGUI\showPassword(), ilContainerGUI\showPasswordInstructionObject(), ilPersonalProfileGUI\showPersonalData(), ilObjPrivacySecurityGUI\showPrivacy(), ilRepositorySelectorInputGUI\showRepositorySelection(), ilMailSearchGUI\showResults(), ilLuceneAdvancedSearchGUI\showSavedResults(), ilLuceneSearchGUI\showSavedResults(), ilTestRandomQuestionSetConfigGUI\showSourcePoolDefinitionListCmd(), ilObjectCopyGUI\showSourceSelectionMembership(), ilObjectCopyGUI\showSourceSelectionTree(), ilObjForumGUI\showStatisticsObject(), ilMailFormGUI\showSubmissionErrors(), ilObjectCopyGUI\showTargetSelectionTree(), ilObjWikiGUI\showTemplateSelectionObject(), ilMediaPoolImportGUI\showTranslationImportForm(), ilLMImportGUI\showTranslationImportForm(), ilRepUtilGUI\showTrashTable(), ilObjTestGUI\showUserResults(), ilObjSystemFolderGUI\showVcsInformationObject(), ilTestEvaluationGUI\singleResults(), ilUserStartingPointGUI\startingPoints(), ilSkillSelfEvaluationGUI\startSelfEvaluation(), ilWorkflowEngineDefinitionsGUI\stopListening(), ilExSubmissionFileGUI\submissionScreenObject(), ilExSubmissionTeamGUI\submissionScreenTeamObject(), ilContactGUI\submitInvitation(), assQuestionGUI\suggestedsolution(), assFlashQuestionGUI\suggestRange(), assFormulaQuestionGUI\suggestRange(), ilSetupGUI\switchTree(), ilOrgUnitSimpleUserImportGUI\testImport(), ilObjTestGUI\timingObject(), ilSetupGUI\toggleClientList(), ilObjForumGUI\toggleThreadNotificationObject(), ilBuddySystemGUI\transitionCommand(), ilSurveyEditorGUI\unfoldQuestionblockObject(), ilSkillProfileGUI\update(), ilECSSettingsGUI\update(), ilECSSettingsGUI\updateCategoryMapping(), ilSetupGUI\updateDatabase(), ilObjMDSettingsGUI\updateEntry(), ilAdvancedMDSettingsGUI\updateField(), ilObjStyleSheetGUI\updateObject(), ilPageLayoutGUI\updateProperties(), ilSCORM2004ScoGUI\updateProperties(), ilSkillSelfEvaluationGUI\updateSelfEvaluation(), ilObjSearchSettingsGUI\updateSettingsObject(), ilObjTaxonomyGUI\updateTaxNode(), ilExSubmissionFileGUI\uploadFileObject(), ilObjFileGUI\uploadFiles(), ilMobMultiSrtUploadGUI\uploadMultipleSubtitleFileForm(), ilObjMediaObjectGUI\uploadMultipleSubtitleFileFormObject(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjTestGUI\uploadTstObject(), ilExSubmissionFileGUI\uploadZipObject(), ilObjContentObject\validatePages(), ilPDNotesGUI\view(), ilObjStudyProgrammeMembersGUI\view(), ilObjPortfolioBaseGUI\view(), ilObjLanguageExtGUI\viewObject(), ilObjWikiGUI\viewPageObject(), ilExerciseManagementGUI\waitingDownloadObject(), assSingleChoiceGUI\writeQuestionSpecificPostData(), and assMultipleChoiceGUI\writeQuestionSpecificPostData().

4515  {
4516  global $DIC;
4517 
4518  $tpl = $DIC["tpl"];
4519  $tpl->setMessage("info", $a_info, $a_keep);
4520  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ sendQuestion()

static ilUtil::sendQuestion (   $a_info = "",
  $a_keep = false 
)
static

◆ sendSuccess()

static ilUtil::sendSuccess (   $a_info = "",
  $a_keep = false 
)
static

Send Success Message to Screen.

Parameters
stringmessage
booleanif true message is kept in session

Definition at line 4562 of file class.ilUtil.php.

References $DIC, and $tpl.

Referenced by ilChatroomSettingsGUI\__construct(), ilTestScoringByQuestionsGUI\__construct(), ilWorkflowEngineSettingsGUI\__construct(), ilObjStudyProgrammeMembersGUI\_addUsers(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilObjCategoryGUI\_importCategories(), ilCalendarCategoryGUI\acceptShared(), ilECSSettingsGUI\activate(), ilPageLayoutAdministrationGUI\activate(), ilAuthLoginPageEditorGUI\activate(), ilBadgeProfileGUI\activate(), ilObjSCORM2004LearningModuleGUI\activateExpertMode(), ilSamlSettingsGUI\activateIdp(), ilObjHelpSettingsGUI\activateModule(), ilLOEditorGUI\activateObjectives(), ilObjComponentSettingsGUI\activatePlugin(), ilDidacticTemplateSettingsGUI\activateTemplates(), ilObjBadgeAdministrationGUI\activateTypes(), ilWikiPageGUI\activateWikiPageRating(), ilWikiPageTemplateGUI\add(), ilCourseParticipantsGroupsGUI\add(), ilObjCourseGroupingGUI\add(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilSurveyParticipantsGUI\addAppraisee(), ilRegistrationSettingsGUI\addAssignment(), ilUnitConfigurationGUI\addCategory(), ilPCGridGUI\addCell(), ilPageEditorGUI\addChangeComment(), ilObjBlogGUI\addContributor(), ilIndividualAssessmentMembersGUI\addedUsers(), ilSurveyParticipantsGUI\addExternalRaterObject(), SurveyQuestionGUI\addGIT(), assQuestionGUI\addGIT(), ilCourseArchivesGUI\addHTMLArchive(), ilObjWikiGUI\addImportantPageObject(), ilExerciseManagementGUI\addMembersObject(), ilForumModeratorsGUI\addModerator(), ilPCIIMTriggerEditorGUI\addNewArea(), ilObjRepositorySettingsGUI\addNewItemGroupSeparator(), ilOrgUnitStaffGUI\addOtherRoles(), ilWikiPageTemplateGUI\addPageTemplateFromPageAction(), ilMailSearchGroupsGUI\addPermission(), ilMailSearchCoursesGUI\addPermission(), ilMailSearchGUI\addPermission(), ilWorkspaceAccessGUI\addPermissionHandler(), SurveyQuestionGUI\addPG(), assQuestionGUI\addPG(), ilPCInteractiveImageGUI\addPopup(), ilSurveyParticipantsGUI\addRater(), ilPermissionGUI\addRole(), ilLDAPSettingsGUI\addRoleAssignment(), ilAuthShibbolethSettingsGUI\addRoleAssignmentRule(), ilObjRoleFolderGUI\addRolePermissionsObject(), SurveyQuestionGUI\addSelectedPhrase(), ilPersonalSkillsGUI\addSkill(), SurveyQuestionGUI\addST(), assQuestionGUI\addST(), ilOrgUnitUserAssignmentGUI\addStaff(), ilOrgUnitStaffGUI\addStaff(), ilContainerStartObjectsGUI\addStarterObject(), ilPCTabsGUI\addTab(), ilExSubmissionTeamGUI\addTeamMemberActionObject(), ilObjForumGUI\addThreadObject(), ilLPTableBaseGUI\addToClipboard(), ilMembershipGUI\addToClipboard(), ilObjRoleGUI\addToClipboardObject(), ilObjUserFolderGUI\addToClipboardObject(), ilPDSelectedItemsBlockGUI\addToDeskObject(), ilObjBibliographicGUI\addToDeskObject(), ilContainerGUI\addToDeskObject(), ilObjBlogGUI\addToDeskObject(), ilObjForumGUI\addToDeskObject(), ilObjContentObjectGUI\addTooltip(), ilUnitConfigurationGUI\addUnit(), ilObjRoleGUI\addUserObject(), ilCourseArchivesGUI\addXMLArchive(), ilSurveyParticipantsGUI\adminAppraiseesCloseObject(), ilLPObjectStatisticsGUI\adminSync(), ilSessionStatisticsGUI\adminSync(), ilObjRoleTemplateGUI\adoptPermSaveObject(), ilObjRoleFolderGUI\adoptPermSaveObject(), ilObjRoleGUI\adoptPermSaveObject(), ilExAssignmentEditorGUI\adoptTeamAssignmentsObject(), ilObjectGUI\afterImport(), ilObjPollGUI\afterSave(), ilObjBlogGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjItemGroupGUI\afterSave(), ilObjBookingPoolGUI\afterSave(), ilObjMediaCastGUI\afterSave(), ilObjExerciseGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjPortfolioTemplateGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjOrgUnitGUI\afterSave(), ilObjDataCollectionGUI\afterSave(), ilObjIndividualAssessmentGUI\afterSave(), ilObjTaxonomyGUI\afterSave(), ilObjectPluginGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjPortfolioGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjGroupGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjTestGUI\afterSave(), ilObjectGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjForumGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjCloudGUI\afterServiceAuth(), ilObjectGUI\afterUpdate(), ilSCTreeTasksGUI\analyzeStructure(), ilObjTestGUI\applyDefaultsObject(), ilSurveyParticipantsGUI\appraiseeCloseObject(), ilObjBlogGUI\approve(), ilOrgUnitPositionGUI\assign(), ilLPListOfSettingsGUI\assign(), ilConditionHandlerGUI\assign(), ilBadgeManagementGUI\assignBadge(), ilObjCourseGroupingGUI\assignCourse(), ilObjRoleGUI\assignDesktopItemObject(), ilMembershipGUI\assignFromWaitingList(), ilSkillProfileGUI\assignLevelToProfile(), ilGroupMembershipGUI\assignMembers(), ilCourseMembershipGUI\assignMembers(), ilLocalUserGUI\assignSave(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilMembershipGUI\assignSubscribers(), ilSkillProfileGUI\assignUser(), ilObjCourseGUI\autoFillObject(), ilWikiPageGUI\blockWikiPage(), ilCalendarAppointmentGUI\bookconfirmed(), ilTestExportGUI\buildExportTableGUI(), ilTestRandomQuestionSetConfigGUI\buildQuestionStageCmd(), ilCalendarAppointmentGUI\cancelConfirmed(), ilRegistrationGUI\cancelSubscriptionRequest(), ilECSMappingSettingsGUI\cDeleteRulesOfNode(), ilCertificateGUI\certificateEditor(), ilObjRoleGUI\changeExistingObjectsObject(), ilPDNewsBlockGUI\changeFeedSettings(), ilPermission2GUI\changeOwner(), ilObjLTIAdministrationGUI\changeStatusLTIConsumer(), ilObjBookingPoolGUI\changeStatusObject(), ilConditionHandlerGUI\chi_update(), ilObjExternalToolsSettingsGUI\clearMathJaxCacheObject(), ilContainerGUI\clearObject(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilBookmarkAdministrationGUI\confirm(), ilObjUserFolderGUI\confirmaccessFreeObject(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjUserFolderGUI\confirmactivateObject(), ilBlogPostingGUI\confirmBlogPostingDeletion(), ilObjUserFolderGUI\confirmdeactivateObject(), ilSurveyParticipantsGUI\confirmDeleteAllUserDataObject(), ilObjTestGUI\confirmDeleteAllUserResultsObject(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilObjUserFolderGUI\confirmdeleteObject(), ilSurveyPhrasesGUI\confirmDeletePhrase(), ilObjSurveyQuestionPoolGUI\confirmDeleteQuestionsObject(), ilObjQuestionPoolGUI\confirmDeleteQuestionsObject(), ilSurveyParticipantsGUI\confirmDeleteSelectedUserDataObject(), ilObjTestGUI\confirmDeleteSelectedUserDataObject(), ilObjFileGUI\confirmDeleteVersions(), ilCronManagerGUI\confirmedActivate(), ilCronManagerGUI\confirmedDeactivate(), ilObjContentObjectGUI\confirmedDelete(), ilBookmarkAdministrationGUI\confirmedMove(), ilPDSelectedItemsBlockGUI\confirmedRemove(), ilCronManagerGUI\confirmedReset(), ilObjTestSettingsGeneralGUI\confirmedResetTemplateCmd(), ilCronManagerGUI\confirmedRun(), ilPDSelectedItemsBlockGUI\confirmedUnsubscribe(), ilSurveyEditorGUI\confirmRemoveQuestionsObject(), ilObjTestGUI\confirmRemoveQuestionsObject(), SurveyQuestionGUI\confirmSavePhrase(), ilWikiPageGUI\confirmWikiPageDeletion(), ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilObjStyleSheetGUI\copyCharacteristicsObject(), ilObjectCopyGUI\copyContainerToTargets(), ilPageEditorGUI\copyLinkedMediaToClipboard(), ilObjectCopyGUI\copyMultipleNonContainer(), ilObjPortfolioBaseGUI\copyPage(), ilSurveyPageGUI\copyQuestion(), ilObjTestGUI\copyQuestionObject(), ilObjRoleFolderGUI\copyRoleObject(), ilPageEditorGUI\copySelected(), ilDidacticTemplateSettingsGUI\copyTemplate(), ilGlossaryForeignTermCollectorGUI\copyTerms(), ilObjMediaPoolGUI\copyToClipboard(), ilPCMediaObjectGUI\copyToClipboard(), ilECSSettingsGUI\cp(), ilOrgUnitPositionGUI\create(), ilDclTableViewEditGUI\create(), ilObjBibliographicAdminLibrariesGUI\create(), ilOrgUnitTypeGUI\create(), ilStudyProgrammeTypeGUI\create(), ilPCInteractiveImageGUI\create(), ilCustomUserFieldsGUI\create(), ilPCMediaObjectGUI\create(), ilExSubmissionTeamGUI\createAdoptedTeamObject(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilAccountCodesGUI\createCodes(), ilRegistrationSettingsGUI\createCodes(), ilFileSystemGUI\createDirectory(), ilExportGUI\createExportFile(), ilObjLTIAdministrationGUI\createLTIConsumer(), ilObjWikiGUI\createPageUsingTemplateObject(), ilObjPortfolioGUI\createPortfolioFromAssignment(), ilObjPortfolioGUI\createPortfolioFromTemplateProcess(), ilExSubmissionObjectGUI\createPortfolioObject(), ilChatroomAdminViewGUI\createPublicRoom(), ilLDAPSettingsGUI\createRoleMapping(), ilExSubmissionTeamGUI\createSingleMemberTeamObject(), ilSurveyParticipantsGUI\createSurveyCodesObject(), ilDclTableViewEditFormGUI\createTableView(), ilExSubmissionTeamGUI\createTeamObject(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExerciseManagementGUI\createTeamsObject(), ilECSMappingSettingsGUI\cSaveOverview(), ilECSMappingSettingsGUI\cUpdateSettings(), ilSurveyPageGUI\cutQuestion(), ilPageEditorGUI\cutSelected(), ilECSMappingSettingsGUI\dDeleteTree(), ilECSSettingsGUI\deactivate(), ilBadgeProfileGUI\deactivate(), ilObjBlogGUI\deactivateAdmin(), ilObjectTranslationGUI\deactivateContentMultiLang(), ilSamlSettingsGUI\deactivateIdp(), ilObjLinkResourceGUI\deactivateLink(), ilObjHelpSettingsGUI\deactivateModule(), ilLOEditorGUI\deactivateObjectives(), ilObjComponentSettingsGUI\deactivatePlugin(), ilDidacticTemplateSettingsGUI\deactivateTemplates(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilWikiPageGUI\deactivateWikiPageRating(), ilLPListOfSettingsGUI\deassign(), ilBadgeManagementGUI\deassignBadge(), ilContSkillAdminGUI\deassignCompetences(), ilExerciseManagementGUI\deassignMembersObject(), ilObjRoleGUI\deassignUserObject(), ilCalendarCategoryGUI\declineShared(), ilOrgUnitUserAssignmentGUI\delete(), ilExcCriteriaGUI\delete(), ilExcCriteriaCatalogueGUI\delete(), ilOrgUnitPositionGUI\delete(), ilDclRecordEditGUI\delete(), ilRatingCategoryGUI\delete(), ilDclTableViewEditGUI\delete(), ilOrgUnitTypeGUI\delete(), ilCourseArchivesGUI\delete(), ilStudyProgrammeTypeGUI\delete(), ilCalendarCategoryGUI\delete(), ilBookingScheduleGUI\delete(), ilBookingObjectGUI\delete(), ilConditionHandlerGUI\delete(), ilCalendarAppointmentGUI\delete(), ilConsultationHoursGUI\delete(), ilCalendarCategoryGUI\deleteAppointments(), ilSurveyParticipantsGUI\deleteAppraiseesObject(), ilPCImageMapEditorGUI\deleteAreas(), ilImageMapEditorGUI\deleteAreas(), ilRegistrationSettingsGUI\deleteAssignment(), ilSubStyleAssignmentGUI\deleteAssignments(), ilExAssignmentEditorGUI\deleteAssignmentsObject(), ilBadgeManagementGUI\deleteBadges(), ilUnitConfigurationGUI\deleteCategories(), ilAccountCodesGUI\deleteCodes(), ilRegistrationSettingsGUI\deleteCodes(), ilSurveyParticipantsGUI\deleteCodesObject(), ilObject2GUI\deleteConfirmedObjects(), ilSurveyConstraintsGUI\deleteConstraintsObject(), ilLPObjectStatisticsGUI\deleteData(), ilWorkflowEngineDefinitionsGUI\deleteDefinition(), ilExSubmissionFileGUI\deleteDeliveredObject(), ilObjRoleGUI\deleteDesktopItemsObject(), ilSCTreeTasksGUI\deleteDuplicatesFromRepository(), ilSCTreeTasksGUI\deleteDuplicatesFromTrash(), ilObjMDSettingsGUI\deleteEntries(), ilCalendarAppointmentGUI\deleteExclude(), ilMemberExportGUI\deleteExportFile(), ilSCORM2004ScoGUI\deleteExportFile(), ilObjSCORM2004LearningModuleGUI\deleteExportFile(), ilCustomUserFieldsGUI\deleteField(), ilDclFieldListGUI\deleteFields(), ilObjectCustomUserFieldsGUI\deleteFields(), ilAdvancedMDSettingsGUI\deleteFields(), ilFileSystemGUI\deleteFile(), ilAdvancedMDSettingsGUI\deleteFiles(), ilConsultationHoursGUI\deleteGroup(), ilObjCourseGroupingGUI\deleteGrouping(), ilSamlSettingsGUI\deleteIdp(), assImagemapQuestionGUI\deleteImage(), ilObjBadgeAdministrationGUI\deleteImageTemplates(), ilObjCourseGUI\deleteInfoFilesObject(), arGUI\deleteItems(), ilBasicSkillGUI\deleteLevel(), ilObjLinkResourceGUI\deleteLinks(), ilObjAssessmentFolderGUI\deleteLogObject(), ilObjLTIAdministrationGUI\deleteLTIConsumer(), SurveyQuestionGUI\deleteMaterial(), ilSetupGUI\deleteMemcacheServer(), ilObjContentObjectGUI\deleteMenuEntry(), ilTestRandomQuestionSetConfigGUI\deleteMultipleSourcePoolDefinitionsCmd(), ilObjRepositorySettingsGUI\deleteNewItemGroup(), ilObjBadgeAdministrationGUI\deleteObjectBadges(), ilCourseObjectivesGUI\deleteObjectives(), ilLOEditorGUI\deleteObjectives(), ilRepUtilGUI\deleteObjects(), ilPCInteractiveImageGUI\deleteOverlays(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), ilSessionMembershipGUI\deleteParticipants(), ilMembershipGUI\deleteParticipants(), ilPCInteractiveImageGUI\deletePopups(), ilObjPortfolioBaseGUI\deletePortfolioPages(), ilPortfolioRepositoryGUI\deletePortfolios(), ilSurveyParticipantsGUI\deleteRatersObject(), ilAdvancedMDSettingsGUI\deleteRecords(), ilLDAPSettingsGUI\deleteRoleMapping(), ilObjRoleFolderGUI\deleteRoleObject(), ilLDAPSettingsGUI\deleteRules(), ilAuthShibbolethSettingsGUI\deleteRules(), ilSurveyParticipantsGUI\deleteSavedMessageObject(), ilObjForumGUI\deleteSelectedDraft(), ilSkillSelfEvaluationGUI\deleteSelfEvaluation(), ilLDAPSettingsGUI\deleteServerSettings(), ilSettingsTemplateGUI\deleteSettingsTemplate(), ilTestRandomQuestionSetConfigGUI\deleteSingleSourcePoolDefinitionCmd(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilObjMediaObjectGUI\deleteSrtFilesObject(), ilContainerStartObjectsGUI\deleteStarterObject(), ilUserStartingPointGUI\deleteStartingPoint(), ilDclTableListGUI\deleteTables(), ilDclTableViewGUI\deleteTableviews(), ilObjTaxonomyGUI\deleteTaxonomy(), ilMailTemplateGUI\deleteTemplate(), ilDidacticTemplateSettingsGUI\deleteTemplates(), ilLOEditorGUI\deleteTest(), ilLOEditorGUI\deleteTests(), ilObjContentObjectGUI\deleteTooltips(), ilPCIIMTriggerEditorGUI\deleteTrigger(), ilUnitConfigurationGUI\deleteUnits(), ilDclDetailedViewDefinitionGUI\deleteView(), ilTestRandomQuestionSetConfigGUI\deriveNewPoolsCmd(), ilForumModeratorsGUI\detachModeratorRole(), ilObjMediaCastGUI\determinePlaytimeObject(), ilExSubmissionObjectGUI\directSubmitObject(), ilForumSettingsGUI\disableAdminForceNoti(), ilForumSettingsGUI\disableHideUserToggleNoti(), ilObjLanguageFolderGUI\disableLanguageDetectionObject(), ilSurveyParticipantsGUI\disinviteUserGroupObject(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilExerciseManagementGUI\dissolveTeamsObject(), ilECSMappingSettingsGUI\dMap(), ilObjPDFGenerationGUI\doCleanUp(), ilECSSettingsGUI\doDelete(), ilPermissionGUI\doImportRole(), ilCalendarViewGUI\downloadFiles(), ilAppointmentPresentationGUI\downloadFiles(), ilECSMappingSettingsGUI\dSynchronizeTree(), ilECSMappingSettingsGUI\dUpdateSettings(), ilECSMappingSettingsGUI\dUpdateTreeSettings(), ilObjForumGUI\editDraftObject(), ilRepositorySearchGUI\emptyClipboard(), ilForumSettingsGUI\enableAdminForceNoti(), ilForumSettingsGUI\enableHideUserToggleNoti(), ilObjLanguageFolderGUI\enableLanguageDetectionObject(), ilSCORMOfflineModeGUI\executeCommand(), ilBlogPostingGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilSurveyEditorGUI\executeCopyQuestionsToPoolObject(), ilObjExternalFeedGUI\exitSave(), ilObjSCORM2004LearningModuleGUI\exportHTML(), ilObjSCORM2004LearningModuleGUI\exportHTMLOne(), ilAdvancedMDSettingsGUI\exportRecords(), ilObjSCORM2004LearningModuleGUI\exportScorm12(), ilObjSCORM2004LearningModuleGUI\exportScorm2004_3rd(), ilObjSCORM2004LearningModuleGUI\exportScorm2004_4th(), ilTable2GUI\fillFooter(), ilIndividualAssessmentMemberGUI\finalize(), ilBlogExerciseGUI\finalize(), ilPortfolioExerciseGUI\finalize(), ilSCTreeTasksGUI\findMissing(), ilSCTreeTasksGUI\findMissingTreeEntries(), ilObjContentObjectGUI\fixTree(), ilOrgUnitStaffGUI\fromEmployeeToSuperior(), ilOrgUnitStaffGUI\fromSuperiorToEmployee(), ilTestExportPlugin\getFormat(), ilObjForumGUI\getForumObjects(), ilTestSkillLevelThresholdsGUI\getTestId(), ilObjWorkflowEngineGUI\getType(), ilLPListOfSettingsGUI\groupMaterials(), ilObjBookingPoolGUI\handleBookingSuccess(), ilMembershipRegistrationCodeUtils\handleCode(), ilExerciseManagementGUI\handleIndividualDeadlineCallsObject(), ilObjSystemCheckGUI\handleTrashAction(), ilWikiPageGUI\hideAdvancedMetaData(), ilSurveyParticipantsGUI\importAccessCodesActionObject(), ilSurveyParticipantsGUI\importExternalRecipientsFromFileObject(), ilSurveyParticipantsGUI\importExternalRecipientsFromTextObject(), ilExternalFeedBlockGUI\importFile(), ilBookmarkAdministrationGUI\importFile(), ilObjFolderGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObjectGUI\importFileObject(), ilExcCriteriaCatalogueGUI\importForm(), ilExcCriteriaGUI\importForm(), ilLocalUnitConfigurationGUI\importGlobalCategories(), ilPageLayoutAdministrationGUI\importPageLayout(), ilPersonalProfileGUI\importPersonalData(), ilSkillProfileGUI\importProfiles(), ilAdvancedMDSettingsGUI\importRecord(), ilSkillRootGUI\importSkills(), ilObjSurveyGUI\importSurveyObject(), ilDidacticTemplateSettingsGUI\importTemplate(), ilLMImportGUI\importTranslation(), ilMediaPoolImportGUI\importTranslation(), ilObjUserFolderGUI\importUsersObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilSetupGUI\initClientDbForm(), ilObjWikiSettingsGUI\initForm(), ilOrgUnitGlobalSettingsGUI\initSettingsForm(), ilSurveyEditorGUI\insertQuestionblocksObject(), ilSurveyEditorGUI\insertQuestions(), ilTestExpressPageObjectGUI\insertQuestions(), ilObjTestGUI\insertQuestionsAfterObject(), ilObjTestGUI\insertQuestionsBeforeObject(), ilTestQuestionBrowserTableGUI\insertQuestionsCmd(), ilSurveyEditorGUI\insertQuestionsObject(), ilObjTestGUI\insertQuestionsObject(), ilObjTestGUI\insertRandomSelectionObject(), ilSurveyParticipantsGUI\insertSavedMessageObject(), ilMailTemplateGUI\insertTemplate(), ilSetupGUI\installDatabase(), ilSurveyParticipantsGUI\inviteUserGroupObject(), ilObjSessionGUI\joinObject(), ilObjectCopyGUI\keepObjectsInClipboard(), ilContainerGUI\keepObjectsInClipboardObject(), ilSetupGUI\kill_waiting_tasks(), ilRegistrationGUI\leaveWaitingList(), SurveyQuestionGUI\linkChilds(), assQuestionGUI\linkChilds(), ilTestExportGUI\listExportFiles(), ilSurveyParticipantsGUI\mailRatersActionObject(), ilSurveyExecutionGUI\mailUserResults(), ilObjSurveyGUI\mailUserResultsObject(), ilObjLanguageExtGUI\maintainExecuteObject(), ilSurveyPageGUI\movePage(), ilObjTestGUI\moveQuestionsObject(), ilSystemStyleOverviewGUI\moveUserStyles(), ilSurveyPageGUI\multiCopy(), ilSurveyPageGUI\multiCut(), ilExAssignmentEditorGUI\orderAssignmentsByDeadlineObject(), ilScoringAdjustmentGUI\outputAdjustQuestionForm(), ilSystemStyleDocumentationGUI\parseEntries(), ilObjStyleSheetGUI\pasteCharacteristicsObject(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardBeforeCmd(), ilObjTaxonomyGUI\pasteItems(), ilObjQuestionPoolGUI\pasteObject(), ilContainerGUI\pasteObject(), ilObjGlossaryGUI\pasteTerms(), ilAssQuestionHintsGUI\performDeleteCmd(), ilObjRoleGUI\performDeleteRoleObject(), ilLocalUserGUI\performDeleteUsers(), ilObjCategoryGUI\performDeleteUsersObject(), ilObjSCORM2004LearningModuleGUI\performLMChapterInsert(), ilObjForumGUI\performMergeThreadsObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjForumGUI\performThreadsActionObject(), ilObjCourseGUI\performUnsubscribeObject(), ilObjRoleGUI\permSaveObject(), ilSetup\printProxyStatus(), ilStartUpGUI\processCode(), ilWorkflowEngineDefinitionsGUI\processUploadFormCancellation(), ilContSkillAdminGUI\publishAssignments(), ilObjForumGUI\publishDraftObject(), ilObjForumGUI\publishThreadDraftObject(), ilGlossaryForeignTermCollectorGUI\referenceTerms(), ilObjLinkResourceGUI\refreshLinkCheck(), ilObjContentObjectGUI\refreshLinkCheck(), ilECSSettingsGUI\refreshParticipants(), ilMembershipGUI\refuseFromList(), ilMembershipGUI\refuseSubscribers(), ilCalendarAppointmentGUI\register(), ilObjSessionGUI\registerObject(), ilConsultationHoursGUI\rejectBooking(), ilLPListOfSettingsGUI\releaseMaterials(), ilDclDetailedViewDefinitionGUI\releasePageLock(), ilPageObjectGUI\releasePageLock(), ilCourseParticipantsGroupsGUI\remove(), ilWikiPageTemplateGUI\remove(), ilObjMediaPoolGUI\remove(), ilObjBlogGUI\removeContributor(), ilRepositorySearchGUI\removeFromClipboard(), ilPDSelectedItemsBlockGUI\removeFromDeskObject(), ilObjBibliographicGUI\removeFromDeskObject(), ilContainerGUI\removeFromDeskObject(), ilObjBlogGUI\removeFromDeskObject(), ilObjForumGUI\removeFromDeskObject(), ilOrgUnitStaffGUI\removeFromEmployees(), ilOrgUnitStaffGUI\removeFromRole(), ilOrgUnitStaffGUI\removeFromSuperiors(), ilObjGlossaryGUI\removeGlossary(), ilObjWikiGUI\removeImportantPagesObject(), ilBasicSkillGUI\removeLevelResources(), ilObjContentObjectGUI\removeLMGlossary(), ilPersonalSkillsGUI\removeMaterial(), ilRepUtilGUI\removeObjectsFromSystem(), ilWikiPageTemplateGUI\removePageTemplateFromPageAction(), ilWorkspaceAccessGUI\removePermission(), ilObjRoleFolderGUI\removeRolePermissionsObject(), ilContSkillAdminGUI\removeSelectedSkill(), ilSurveySkillGUI\removeSkillFromQuestion(), ilPersonalSkillsGUI\removeSkills(), ilPDTaggingBlockGUI\removeTagsWithoutAccess(), ilExSubmissionTeamGUI\removeTeamMemberObject(), ilObjUserGUI\removeUserPictureObject(), ilSkillProfileGUI\removeUsers(), ilFileSystemGUI\renameFile(), ilWikiPageGUI\renamePage(), ilSCTreeTasksGUI\repairMissing(), ilSCTreeTasksGUI\repairMissingTreeEntries(), ilSCTreeTasksGUI\repairStructure(), ilObjTermsOfServiceGUI\reset(), ilSystemStyleLessGUI\reset(), ilObjLoggingSettingsGUI\resetComponentLevels(), ilObjContentObjectGUI\resetNumberOfTries(), ilObjCourseGUI\resetObject(), ilExPeerReviewGUI\resetPeerReviewObject(), ilObjPDFGenerationGUI\resetSettings(), ilObjSurveyGUI\resetTemplateObject(), ilRepUtilGUI\restoreObjects(), ilObjFileGUI\rollbackVersion(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjBookingPoolGUI\rsvInUseObject(), ilObjBookingPoolGUI\rsvNotInUseObject(), ilLMEditShortTitlesGUI\save(), ilTaxMDGUI\save(), ilUserActionAdminGUI\save(), ilUserProfileInfoSettingsGUI\save(), ilIndividualAssessmentMemberGUI\save(), ilCalendarUserSettingsGUI\save(), ilObjNotificationSettingsGUI\save(), ilDclFieldListGUI\save(), ilContainerNewsSettingsGUI\save(), ilObjCalendarSettingsGUI\save(), ilRatingCategoryGUI\save(), ilCalendarCategoryGUI\save(), ilObjCertificateSettingsGUI\save(), ilRadiusSettingsGUI\save(), arGUI\save(), ilSettingsPermissionGUI\save(), ilRegistrationSettingsGUI\save(), ilCASSettingsGUI\save(), ilObjFileGUI\save(), ilAuthShibbolethSettingsGUI\save(), ilBookingScheduleGUI\save(), ilSkillProfileGUI\save(), ilDclFieldEditGUI\save(), ilBookingObjectGUI\save(), ilDclTableEditGUI\save(), SurveyQuestionGUI\save(), ilCalendarAppointmentGUI\save(), ilDclRecordEditGUI\save(), ilSkillTreeNodeGUI\save(), ilCourseObjectivesGUI\save(), assQuestionGUI\save(), ilLDAPSettingsGUI\save(), ilSetupGUI\save_background_tasks(), ilObjPrivacySecurityGUI\save_privacy(), ilCourseContentGUI\saveAcceptance(), ilObjAccessibilitySettingsGUI\saveAccessKeys(), ilPageObjectGUI\saveActivation(), ilObjLinkResourceGUI\saveAddLink(), ilPCMediaObjectGUI\saveAliasProperties(), ilObjSkillManagementGUI\saveAllTemplateTitles(), ilStructureObjectGUI\saveAllTitles(), ilSCORM2004NodeGUI\saveAllTitles(), ilObjSkillManagementGUI\saveAllTitles(), ilObjSCORM2004LearningModuleGUI\saveAllTitles(), ilObjContentObjectGUI\saveAllTitles(), ilIndividualAssessmentMemberGUI\saveAmend(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilPCImageMapEditorGUI\saveArea(), ilPCIIMTriggerEditorGUI\saveArea(), ilImageMapEditorGUI\saveArea(), ilObjTaxonomyGUI\saveAssignedItemsSorting(), ilSubStyleAssignmentGUI\saveAssignment(), ilRegistrationSettingsGUI\saveAssignment(), ilExAssignmentEditorGUI\saveAssignmentObject(), ilExAssignmentEditorGUI\saveAssignmentOrderObject(), ilBadgeManagementGUI\saveBadge(), ilSetupGUI\saveBasicSettings(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjSystemFolderGUI\saveBenchSettingsObject(), ilObjPortfolioTemplateGUI\saveBlog(), ilObjPortfolioGUI\saveBlog(), ilExSubmissionObjectGUI\saveBlogObject(), ilUnitConfigurationGUI\saveCategory(), ilPCGridGUI\saveCellData(), ilPCGridGUI\saveCells(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilPersonalChatSettingsFormGUI\saveChatOptions(), ilSetupGUI\saveClientIni(), ilChatroomAdminViewGUI\saveClientSettings(), ilExerciseManagementGUI\saveCommentsObject(), ilContSkillAdminGUI\saveCompetenceAssignment(), ilObjLoggingSettingsGUI\saveComponentLevels(), ilObjContactAdministrationGUI\saveConfigurationForm(), ilSetupGUI\saveContact(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjMDSettingsGUI\saveCopyrightSettings(), ilTestRandomQuestionSetConfigGUI\saveCreateSourcePoolDefinitionFormCmd(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilSetupGUI\saveDbSlave(), ilSurveyEditorGUI\saveDefineQuestionblockObject(), ilObjFileAccessSettingsGUI\saveDiskQuotaMailTemplate(), ilObjFileAccessSettingsGUI\saveDownloadingSettings(), ilMarkSchemaGUI\saveEctsForm(), assQuestionGUI\saveEdit(), ilSurveyPhrasesGUI\saveEditPhrase(), ilTestRandomQuestionSetConfigGUI\saveEditSourcePoolDefinitionFormCmd(), ilObjMDSettingsGUI\saveEntry(), ilObjContentObjectGUI\saveExportIds(), ilObjMailGUI\saveExternalSettingsFormObject(), ilAssQuestionFeedbackEditingGUI\saveFeedbackFormCmd(), ilObjectCustomUserFieldsGUI\saveField(), ilAdvancedMDSettingsGUI\saveField(), ilObjectCustomUserFieldsGUI\saveFields(), ilObjMediaPoolGUI\saveFolder(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilMailingListsGUI\saveForm(), ilAssQuestionHintGUI\saveFormCmd(), ilObjQuestionPoolSettingsGeneralGUI\saveFormCmd(), ilObjTestSettingsScoringResultsGUI\saveFormCmd(), ilObjTestDynamicQuestionSetConfigGUI\saveFormCmd(), ilObjTestSettingsGeneralGUI\saveFormCmd(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilObjMDSettingsGUI\saveGeneralSettings(), ilPersonalSettingsGUI\saveGeneralSettings(), ilObjUserFolderGUI\saveGeneralSettingsObject(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), ilObjSCORM2004LearningModuleGUI\saveGlossary(), ilExerciseManagementGUI\saveGradesObject(), ilObjWikiGUI\saveGradingObject(), ilConsultationHoursGUI\saveGroup(), ilObjSystemFolderGUI\saveHeaderTitleObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjContentObjectGUI\saveHelpMapping(), ilObjSystemFolderGUI\saveHTTPSObject(), ilSamlSettingsGUI\saveIdpSettings(), ilObjBadgeAdministrationGUI\saveImageTemplate(), ilPageObjectGUI\saveInitialOpenedContent(), ilTaggingGUI\saveInput(), ilSurveyParticipantsGUI\saveInvitationStatusObject(), ilObjItemGroupGUI\saveItemAssignment(), ilExportGUI\saveItemSelection(), ilObjSystemFolderGUI\saveJavaServerObject(), SurveyMatrixQuestionGUI\saveLayout(), ilLMPageObjectGUI\saveLayout(), ilBasicSkillGUI\saveLevel(), ilBasicSkillGUI\saveLevelResource(), ilObjLinkResourceGUI\saveLinkCheck(), ilObjContentObjectGUI\saveLinkCheck(), ilAssQuestionHintsGUI\saveListOrderCmd(), ilAuthLoginPageEditorGUI\saveLoginInfo(), ilObjUserFolderGUI\saveLoginnameSettingsObject(), ilObjUserTrackingGUI\saveLPDefaultsObject(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilLDAPSettingsGUI\saveMapping(), ilMarkSchemaGUI\saveMarks(), ilObjSessionGUI\saveMaterialsObject(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilObjRepositorySettingsGUI\saveModules(), ilExerciseManagementGUI\saveMultiFeedbackObject(), ilMobMultiSrtUploadGUI\saveMultiSrt(), ilLOEditorGUI\saveMultiTestAssignment(), ilObjUserFolderGUI\saveNewAccountMailObject(), ilObjLanguageExtGUI\saveNewEntryObject(), ilSamlSettingsGUI\saveNewIdp(), ilObjRepositorySettingsGUI\saveNewItemGroup(), ilObjRepositorySettingsGUI\saveNewItemGroupOrder(), ilSystemStyleOverviewGUI\saveNewSubStyle(), ilSystemStyleOverviewGUI\saveNewSystemStyle(), ilObjCourseGUI\saveNotificationObject(), ilObjGroupGUI\saveNotificationObject(), ilObjRecoveryFolderGUI\saveObject(), ilObjAssessmentFolderGUI\saveObject(), ilObjAdvancedEditingGUI\saveObject(), ilObjTypeDefinitionGUI\saveObject(), ilObjRoleTemplateGUI\saveObject(), ilObjMailGUI\saveObject(), ilObjUserGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjRoleGUI\saveObject(), ilObjMediaObjectGUI\saveObject(), ilObjRoleFolderGUI\saveObject(), ilLOEditorGUI\saveObjectiveCreation(), ilConditionHandlerGUI\saveObligatoryList(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilSurveyEditorGUI\saveObligatoryObject(), ilObjSurveyQuestionPoolGUI\saveObligatoryObject(), ilConditionHandlerGUI\saveObligatorySettings(), ilMailOptionsGUI\saveOptions(), ilExcCriteriaGUI\saveOrder(), ilExcCriteriaCatalogueGUI\saveOrder(), ilUnitConfigurationGUI\saveOrder(), ilUserStartingPointGUI\saveOrder(), ilSkillTreeNodeGUI\saveOrder(), ilObjTestGUI\saveOrderAndObligationsObject(), ilObjWikiGUI\saveOrderingAndIndentObject(), ilObjMediaCastGUI\saveOrderObject(), ilObjPortfolioBaseGUI\savePage(), ilContainerGUI\savePageContentObject(), ilStructureObjectGUI\savePageLayout(), ilObjContentObjectGUI\savePageLayout(), ilPageLayoutAdministrationGUI\savePageLayoutTypes(), ilPersonalSettingsGUI\savePassword(), ilWorkspaceAccessGUI\savePasswordForm(), ilContainerGUI\savePasswordObject(), ilPermissionGUI\savePermissions(), ilPersonalProfileGUI\savePersonalData(), ilPCInteractiveImageGUI\savePopups(), ilObjPortfolioBaseGUI\savePortfolioPagesOrdering(), ilPermissionGUI\savePositionsPermissions(), ilObjFileAccessSettingsGUI\savePreviewSettings(), ilMemberExportSettingsGUI\savePrintViewSettings(), ilPersonalProfileGUI\saveProfile(), ilInfoScreenGUI\saveProgress(), ilObjFileBasedLMGUI\saveProperties(), ilObjContentObjectGUI\saveProperties(), ilObjGlossaryGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjSurveyQuestionPoolGUI\savePropertiesObject(), ilObjSurveyGUI\savePropertiesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilSetupGUI\saveProxy(), ilObjSystemFolderGUI\saveProxyObject(), ilPersonalProfileGUI\savePublicProfile(), ilObjContentObjectGUI\savePublicSection(), ilObjContentObjectGUI\savePublicSectionAccess(), ilObjContentObjectGUI\savePublicSectionPages(), ilObjPollGUI\saveQuestion(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilAdvancedMDSettingsGUI\saveRecord(), ilSetupGUI\saveRegistration(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), ilRegistrationSettingsGUI\saveRoleAccessLimitations(), ilLDAPSettingsGUI\saveRoleSelection(), ilAuthShibbolethSettingsGUI\saveRoleSelection(), ilContentStyleSettingsGUI\saveScope(), ilObjAuthSettingsGUI\saveScriptObject(), ilContSkillAdminGUI\saveSelectedSkill(), ilCalendarCategoryGUI\saveSelection(), ilPersonalSkillsGUI\saveSelfEvaluation(), ilConsultationHoursGUI\saveSequence(), ilObjSCORM2004LearningModuleGUI\saveSequencing(), ilChatroomAdminViewGUI\saveSettings(), ilObjWebResourceAdministrationGUI\saveSettings(), ilObjForumAdministrationGUI\saveSettings(), ilObjStudyProgrammeAdminGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilLPListOfSettingsGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjMediaObjectsSettingsGUI\saveSettings(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilECSParticipantSettingsGUI\saveSettings(), ilObjPDFGenerationGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjTermsOfServiceGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilLOEditorGUI\saveSettings(), ilObjSkillManagementGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilContSkillAdminGUI\saveSettings(), ilBadgeProfileGUI\saveSettings(), ilSamlSettingsGUI\saveSettings(), ilObjSurveyAdministrationGUI\saveSettingsObject(), ilObjAssessmentFolderGUI\saveSettingsObject(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilObjUserTrackingGUI\saveSettingsObject(), ilObjRoleFolderGUI\saveSettingsObject(), ilObjWikiGUI\saveSettingsObject(), ilObjMediaCastGUI\saveSettingsObject(), ilSettingsTemplateGUI\saveSettingsTemplate(), assImagemapQuestionGUI\saveShape(), ilSingleUserShareGUI\saveShare(), ilAssQuestionSkillAssignmentsGUI\saveSkillPointsCmd(), ilAssQuestionSkillAssignmentsGUI\saveSkillQuestionAssignmentPropertiesFormCmd(), ilObjAuthSettingsGUI\saveSOAPObject(), ilCourseObjectivesGUI\saveSorting(), ilObjTaxonomyGUI\saveSorting(), ilObjLinkResourceGUI\saveSorting(), ilLOEditorGUI\saveSorting(), ilContainerStartObjectsGUI\saveSortingObject(), ilContainerGUI\saveSortingObject(), ilUserStartingPointGUI\saveStartingPoint(), ilExerciseManagementGUI\saveStatus(), ilObjContentObjectGUI\saveStyleSettings(), ilObjPortfolioBaseGUI\saveStyleSettings(), ilObjSCORM2004LearningModuleGUI\saveStyleSettings(), ilObjGlossaryGUI\saveStyleSettings(), ilObjBlogGUI\saveStyleSettings(), ilObjWikiGUI\saveStyleSettingsObject(), ilContainerGUI\saveStyleSettingsObject(), ilLDAPSettingsGUI\saveSyncronizationSettings(), ilDclTableViewGUI\saveTableViewOrder(), ilPCTabsGUI\saveTabs(), ilObjAdvancedEditingGUI\saveTags(), ilInfoScreenGUI\saveTags(), ilObjTaxonomyGUI\saveTaxNode(), ilObjectMetaDataGUI\saveTaxonomySettings(), ilWikiPageTemplateGUI\saveTemplateSettings(), ilObjGlossaryGUI\saveTerm(), ilLOEditorGUI\saveTest(), ilObjForumGUI\saveThreadAsDraftObject(), ilObjForumGUI\saveThreadSortingObject(), ilSurveySkillThresholdsGUI\saveThresholds(), ilPortfolioRepositoryGUI\saveTitles(), ilObjContentObjectGUI\saveTooltips(), ilTranslationGUI\saveTranslations(), ilMultilingualismGUI\saveTranslations(), ilObjectTranslationGUI\saveTranslations(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilUnitConfigurationGUI\saveUnit(), ilObjFileGUI\saveUnzip(), ilObjFileAccessSettingsGUI\saveUploadSettings(), ilSamlSettingsGUI\saveUserAttributeMapping(), ilUserStartingPointGUI\saveUserStartingPoint(), ilObjSystemFolderGUI\saveWebServicesObject(), ilObjPersonalDesktopSettingsGUI\saveWsp(), ilObjGlossaryGUI\selectGlossary(), ilObjContentObjectGUI\selectLMGlossary(), ilPersonalSkillsGUI\selectMaterial(), ilSurveySkillGUI\selectSkillForQuestion(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilDclRecordListGUI\sendFile(), ilExerciseManagementGUI\sendMembersObject(), ilTestGradingMessageBuilder\sendMessage(), ilSystemStyleMessageStack\sendMessages(), ilObjMailGUI\sendTestMail(), ilPCTableGUI\setAlignment(), ilObjWikiGUI\setAsStartPageObject(), ilObjAuthSettingsGUI\setAuthModeObject(), ilSurveyParticipantsGUI\setCodeLanguageObject(), ilPortfolioRepositoryGUI\setDefault(), ilImageMapEditorGUI\setHighlight(), ilObjCourseGUI\setLPSyncObject(), ilObjHelpSettingsGUI\setMode(), ilExSubmissionObjectGUI\setSelectedBlogObject(), ilExSubmissionObjectGUI\setSelectedPortfolioObject(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilObjLanguageExtGUI\settingsObject(), ilPCTableGUI\setWidths(), ilCalendarCategoryGUI\shareAssign(), ilCalendarCategoryGUI\shareAssignRoles(), ilCalendarCategoryGUI\shareDeassign(), ilTestRandomQuestionSetConfigGUI\showGeneralConfigFormCmd(), ilStartUpGUI\showLogin(), ilObjAssessmentFolderGUI\showLogSettingsObject(), ilTestRandomQuestionSetConfigGUI\showSourcePoolDefinitionListCmd(), ilObjStudyProgrammeIndividualPlanGUI\showSuccessMessage(), ilObjStudyProgrammeMembersGUI\showSuccessMessage(), ilWorkflowEngineDefinitionsGUI\showUploadForm(), ilWorkflowEngineDefinitionsGUI\stopListening(), ilContactGUI\submitInvitation(), ilObjPollGUI\subscribe(), assQuestionGUI\suggestedsolution(), ilAuthLoginPageEditorGUI\switchIPE(), ilAuthLoginPageEditorGUI\switchRTE(), ilDidacticTemplateGUI\switchTemplate(), SurveyQuestionGUI\sync(), SurveyQuestionGUI\syncCopies(), ilCalendarCategoryGUI\synchroniseCalendar(), ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd(), ilObjTestGUI\timingObject(), ilBadgeManagementGUI\toggleBadges(), ilContentStyleSettingsGUI\toggleGlobalDefault(), ilContentStyleSettingsGUI\toggleGlobalFixed(), ilObjBadgeAdministrationGUI\toggleObjectBadges(), ilBuddySystemGUI\transitionCommand(), ilWikiPageGUI\unblockWikiPage(), ilSurveyEditorGUI\unfoldQuestionblockObject(), ilWikiPageGUI\unhideAdvancedMetaData(), ilObjComponentSettingsGUI\uninstallPlugin(), ilExSubmissionObjectGUI\unlinkPortfolioObject(), ilObjContentObjectGUI\unlockQuestion(), ilCalendarAppointmentGUI\unregister(), ilObjSessionGUI\unregisterObject(), ilPortfolioRepositoryGUI\unsetDefault(), ilCalendarCategoryGUI\unshare(), ilObjPollGUI\unsubscribe(), ilObjGroupGUI\unsubscribeObject(), ilFileSystemGUI\unzipFile(), ilOrgUnitDefaultPermissionGUI\update(), ilOrgUnitPositionGUI\update(), ilFMSettingsGUI\update(), ilExtIdGUI\update(), ilIndividualAssessmentSettingsGUI\update(), ilCronManagerGUI\update(), ilObjStudyProgrammeSettingsGUI\update(), ilObjBibliographicAdminLibrariesGUI\update(), ilRatingCategoryGUI\update(), ilObjCourseGroupingGUI\update(), ilPCDataTableGUI\update(), ilOrgUnitTypeGUI\update(), ilStudyProgrammeTypeGUI\update(), ilSystemStyleLessGUI\update(), ilObjectActivationGUI\update(), ilBookingScheduleGUI\update(), ilPCInteractiveImageGUI\update(), ilCalendarCategoryGUI\update(), ilBookingObjectGUI\update(), ilCustomUserFieldsGUI\update(), ilPCTabsGUI\update(), ilObjectMetaDataGUI\update(), ilObjFileGUI\update(), ilSkillTreeNodeGUI\update(), ilObjComponentSettingsGUI\update(), ilCalendarAppointmentGUI\update(), ilADTBasedObjectGUI\updateAction(), ilWikiPageGUI\updateAdvancedMetaData(), ilObjStudyProgrammeGUI\updateAdvancedSettings(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilOrgUnitTypeGUI\updateAMD(), ilStudyProgrammeTypeGUI\updateAMD(), ilMDEditorGUI\updateAnnotation(), ilImageMapEditorGUI\updateAreas(), ilPCImageMapEditorGUI\updateAreas(), ilExAssignmentEditorGUI\updateAssignmentObject(), ilExSubmissionTextGUI\updateAssignmentTextObject(), ilObjAuthSettingsGUI\updateAuthModeDeterminationObject(), ilObjAuthSettingsGUI\updateAuthRolesObject(), ilBadgeManagementGUI\updateBadge(), ilSetupGUI\updateBasicSettings(), ilMDEditorGUI\updateClassification(), ilSurveyParticipantsGUI\updateCodesObject(), ilECSSettingsGUI\updateCommunities(), ilConditionHandlerGUI\updateCondition(), ilObjCourseGUI\updateCourseIconsObject(), ilOrgUnitTypeGUI\updateCustomIcons(), ilStudyProgrammeTypeGUI\updateCustomIcons(), ilBlogPostingGUI\updateDate(), ilMDEditorGUI\updateEducational(), ilObjMDSettingsGUI\updateEntry(), ilObjLoggingSettingsGUI\updateErrorSettings(), ilObjectCustomUserFieldsGUI\updateField(), ilAdvancedMDSettingsGUI\updateField(), ilCustomUserFieldsGUI\updateFields(), ilAdvancedMDSettingsGUI\updateFields(), ilCourseObjectivesGUI\updateFinalTestAssignment(), ilCourseObjectivesGUI\updateFinalTestLimits(), ilObjMediaPoolGUI\updateFolder(), ilMDEditorGUI\updateGeneral(), ilConsultationHoursGUI\updateGroup(), ilObjGroupGUI\updateGroupIconsObject(), ilObjGroupGUI\updateGroupTypeObject(), ilObjFolderGUI\updateIconsObject(), ilObjCategoryGUI\updateIconsObject(), ilObjBadgeAdministrationGUI\updateImageTemplate(), ilIndividualAssessmentSettingsGUI\updateInfo(), ilObjCategoryGUI\updateInfoObject(), ilObjCourseGUI\updateInfoObject(), ilObjGroupGUI\updateInfoObject(), ilPCDataTableGUI\updateJS(), ilBasicSkillGUI\updateLevel(), ilBasicSkillGUI\updateLevelOrder(), ilLicenseGUI\updateLicense(), ilMDEditorGUI\updateLifecycle(), ilObjLinkResourceGUI\updateLink(), ilObjLinkResourceGUI\updateLinks(), ilObjLTIAdministrationGUI\updateLTIConsumer(), ilLearningProgressGUI\updateManual(), ilCourseObjectivesGUI\updateMaterialAssignment(), ilObjMediaPoolGUI\updateMediaPoolPage(), ilSessionMembershipGUI\updateMembers(), ilObjContentObjectGUI\updateMenuEntry(), ilMDEditorGUI\updateMetaMetaData(), ilConsultationHoursGUI\updateMulti(), ilObjRepositorySettingsGUI\updateNewItemGroup(), ilForumSettingsGUI\updateNotificationSettings(), ilObjRoleTemplateGUI\updateObject(), ilRemoteObjectBaseGUI\updateObject(), ilObjRootFolderGUI\updateObject(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjSurveyQuestionPoolGUI\updateObject(), ilObjRoleGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjSessionGUI\updateObject(), ilObjQuestionPoolGUI\updateObject(), ilRatingCategoryGUI\updateOrder(), ilMembershipGUI\updateParticipants(), ilGroupMembershipGUI\updateParticipantsStatus(), ilCourseMembershipGUI\updateParticipantsStatus(), ilExPeerReviewGUI\updatePeerReviewObject(), ilExAssignmentEditorGUI\updatePeerReviewObject(), ilMDEditorGUI\updateQuickEdit(), ilMDEditorGUI\updateQuickEdit_scorm(), ilAdvancedMDSettingsGUI\updateRecord(), ilAdvancedMDSettingsGUI\updateRecords(), ilMDEditorGUI\updateRelation(), ilMDEditorGUI\updateRights(), ilLDAPSettingsGUI\updateRoleAssignment(), ilAuthShibbolethSettingsGUI\updateRoleAssignmentRule(), ilLDAPSettingsGUI\updateRoleMapping(), ilRegistrationSettingsGUI\updateRoles(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentLimits(), ilCloudPluginSettingsGUI\updateSettings(), ilObjLoggingSettingsGUI\updateSettings(), ilLTIProviderObjectSettingGUI\updateSettings(), ilObjOrgUnitGUI\updateSettings(), ilObjTaxonomyGUI\updateSettings(), ilConsultationHoursGUI\updateSettings(), ilSettingsTemplateGUI\updateSettingsTemplate(), ilAssQuestionSkillAssignmentsGUI\updateSkillQuestionAssignmentsCmd(), ilSkillTemplateReferenceGUI\updateSkillTemplateReference(), ilRegistrationGUI\updateSubscriptionRequest(), ilAdvancedMDSettingsGUI\updateSubstitutions(), ilDclTableViewEditFormGUI\updateTableView(), ilMDEditorGUI\updateTechnical(), ilMailTemplateGUI\updateTemplate(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilObjForumGUI\updateThreadDraftObject(), ilObjForumGUI\updateThreadObject(), ilCourseContentGUI\updateTimings(), ilBlogPostingGUI\updateTitle(), ilLPListOfSettingsGUI\updateTLT(), ilObjectServiceSettingsGUI\updateToolSettings(), ilPCIIMTriggerEditorGUI\updateTrigger(), ilLPListOfObjectsGUI\updateUser(), ilCourseContentGUI\updateUserTimings(), ilCalendarCategoryGUI\uploadAppointments(), ilMailAttachmentGUI\uploadFile(), ilFileSystemGUI\uploadFile(), ilExSubmissionFileGUI\uploadFileObject(), ilObjHelpSettingsGUI\uploadHelpFile(), ilObjLanguageExtGUI\uploadObject(), ilPCInteractiveImageGUI\uploadOverlayImages(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), ilExSubmissionFileGUI\uploadZipObject(), ilContainerGUI\useNewEditorObject(), ilSCTreeTasksGUI\validateDuplicates(), and ilSurveySkillDeterminationGUI\writeSkills().

4563  {
4564  global $DIC;
4565 
4566  $tpl = $DIC["tpl"];
4567  $tpl->setMessage("success", $a_info, $a_keep);
4568  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

◆ setCookie()

static ilUtil::setCookie (   $a_cookie_name,
  $a_cookie_value = '',
  $a_also_set_super_global = true,
  $a_set_cookie_invalid = false 
)
static

Definition at line 4663 of file class.ilUtil.php.

References $_COOKIE, $expire, defined, IL_COOKIE_PATH, and time.

Referenced by ilStartUpGUI\_checkGoto(), ilInitialisation\determineClient(), ilInitialisation\initClientIniFile(), ilLTIViewGUI\logout(), ilSessionControl\removeSessionCookie(), ilStartUpGUI\showLogin(), and ilStartUpGUI\showLogout().

4664  {
4665  /*
4666  if(!(bool)$a_set_cookie_invalid) $expire = IL_COOKIE_EXPIRE;
4667  else $expire = time() - (365*24*60*60);
4668  */
4669  // Temporary fix for feed.php
4670  if (!(bool) $a_set_cookie_invalid) {
4671  $expire = 0;
4672  } else {
4673  $expire = time() - (365*24*60*60);
4674  }
4675  /* We MUST NOT set the global constant here, because this affects the session_set_cookie_params() call as well
4676  if(!defined('IL_COOKIE_SECURE'))
4677  {
4678  define('IL_COOKIE_SECURE', false);
4679  }
4680  */
4681  $secure = false;
4682  if (defined('IL_COOKIE_SECURE')) {
4683  $secure = IL_COOKIE_SECURE;
4684  }
4685 
4686  setcookie(
4687  $a_cookie_name,
4688  $a_cookie_value,
4689  $expire,
4691  IL_COOKIE_DOMAIN,
4692  $secure,
4693  IL_COOKIE_HTTPONLY
4694  );
4695 
4696  if ((bool) $a_also_set_super_global) {
4697  $_COOKIE[$a_cookie_name] = $a_cookie_value;
4698  }
4699  }
$expire
Definition: saml2-acs.php:140
$_COOKIE['client_id']
Definition: server.php:9
const IL_COOKIE_PATH(isset($_GET["client_id"]))
Definition: metadata.php:36
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
+ Here is the caller graph for this function:

◆ setPathStr()

static ilUtil::setPathStr (   $a_path)
static

??? public

Parameters
string

Definition at line 568 of file class.ilUtil.php.

569  {
570  if ("" != $a_path && "/" != substr($a_path, -1)) {
571  $a_path .= "/";
572  //$a_path = substr($a_path,1);
573  }
574 
575  //return getcwd().$a_path;
576  return $a_path;
577  }

◆ shortenText()

static ilUtil::shortenText (   $a_str,
  $a_len,
  $a_dots = false,
  $a_next_blank = false,
  $a_keep_extension = false 
)
static

shorten a string to given length.

Adds 3 dots at the end of string (optional) TODO: do not cut within words (->wordwrap function) public

Parameters
stringstring to be shortened
integerstring length in chars
booleanadding 3 dots (true) or not (false, default)
truncateat first blank after $a_len characters
Returns
string shortended string

Definition at line 1350 of file class.ilUtil.php.

References ilStr\strLen(), ilStr\strPos(), and ilStr\subStr().

Referenced by ilObjSystemFolder\_getHeaderTitleDescription(), ilObject\_writeDescription(), ilExcel\addSheet(), ilObject\create(), ilObjSystemFolder\delete(), ilBookmarkAdministrationGUI\delete(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilLDAPRoleMappingTableGUI\fillRow(), ilNewsForContextTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilWorkspaceExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilExplorer\formatObject(), SurveyMatrixQuestionEvaluation\getChart(), ilContainer\getCompleteDescriptions(), ilObjLinkResourceListGUI\getDescription(), ilPDNotesBlockGUI\getListRowData(), ilLTIViewGUI\getNavEntries(), ilMailNotification\getObjectTitle(), ilCalendarEntry\getPresentationTitle(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilLocator(), ilObjWikiGUI\initSettingsForm(), ilSCORMExplorer\insertObject(), ilWikiPageTemplateGUI\listTemplates(), ilChartDataSpider\parseGlobalOptions(), ilMembershipCronNotifications\parseNewsItem(), ilMainMenuGUI\renderEntry(), ilBenchmark\save(), ilObject\setDescription(), ilObject\setTitle(), and ilGlossaryDefinition\shortenShortText().

1356  {
1357  include_once("./Services/Utilities/classes/class.ilStr.php");
1358  if (ilStr::strLen($a_str) > $a_len) {
1359  if ($a_next_blank) {
1360  $len = ilStr::strPos($a_str, " ", $a_len);
1361  } else {
1362  $len = $a_len;
1363  }
1364  // BEGIN WebDAV
1365  // - Shorten names in the middle, before the filename extension
1366  // Workaround for Windows WebDAV Client:
1367  // Use the unicode ellipsis symbol for shortening instead of
1368  // three full stop characters.
1369  if ($a_keep_extension) {
1370  $p = strrpos($a_str, '.'); // this messes up normal shortening, see bug #6190
1371  }
1372  if ($p === false || $p == 0 || strlen($a_str) - $p > $a_len) {
1373  $a_str = ilStr::subStr($a_str, 0, $len);
1374  if ($a_dots) {
1375  $a_str .= "\xe2\x80\xa6"; // UTF-8 encoding for Unicode ellipsis character.
1376  }
1377  } else {
1378  if ($a_dots) {
1379  $a_str = ilStr::subStr($a_str, 0, $len - (strlen($a_str) - $p + 1)) . "\xe2\x80\xa6" . substr($a_str, $p);
1380  } else {
1381  $a_str = ilStr::subStr($a_str, 0, $len - (strlen($a_str) - $p + 1)) . substr($a_str, $p);
1382  }
1383  }
1384  }
1385 
1386  return $a_str;
1387  }
static strLen($a_string)
Definition: class.ilStr.php:78
static strPos($a_haystack, $a_needle, $a_offset=null)
Definition: class.ilStr.php:30
static subStr($a_str, $a_start, $a_length=null)
Definition: class.ilStr.php:15
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shortenWords()

static ilUtil::shortenWords (   $a_str,
  $a_len = 30,
  $a_dots = true 
)
static

Ensure that the maximum word lenght within a text is not longer than $a_len.

Parameters
string$a_strinput string
integer$a_lenmax. word length
boolean$a_dotsappend "..." to shortened words
Returns
string

Definition at line 1402 of file class.ilUtil.php.

References $i, ilStr\strLen(), and ilStr\subStr().

Referenced by ilNewsForContextBlockGUI\fillRow(), and ilCalendarEntry\getPresentationTitle().

1403  {
1404  include_once("./Services/Utilities/classes/class.ilStr.php");
1405  $str_arr = explode(" ", $a_str);
1406 
1407  for ($i = 0; $i < count($str_arr); $i++) {
1408  if (ilStr::strLen($str_arr[$i]) > $a_len) {
1409  $str_arr[$i] = ilStr::subStr($str_arr[$i], 0, $a_len);
1410  if ($a_dots) {
1411  $str_arr[$i].= "...";
1412  }
1413  }
1414  }
1415 
1416  return implode($str_arr, " ");
1417  }
static strLen($a_string)
Definition: class.ilStr.php:78
static subStr($a_str, $a_start, $a_length=null)
Definition: class.ilStr.php:15
$i
Definition: disco.tpl.php:19
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sort_func()

static ilUtil::sort_func (   $a,
  $b 
)
static

sub-function to sort an array

Parameters
array$a
array$b
Returns
boolean true on success / false on error

Definition at line 3052 of file class.ilUtil.php.

References ilStr\strCmp(), and ilStr\strToUpper().

3053  {
3054  global $array_sortby,$array_sortorder;
3055 
3056  if (!isset($array_sortby)) {
3057  // occured in: setup -> new client -> install languages -> sorting of languages
3058  $array_sortby = 0;
3059  }
3060 
3061  // this comparison should give optimal results if
3062  // locale is provided and mb string functions are supported
3063  if ($array_sortorder == "asc") {
3064  return ilStr::strCmp($a[$array_sortby], $b[$array_sortby]);
3065  }
3066 
3067  if ($array_sortorder == "desc") {
3068  return !ilStr::strCmp($a[$array_sortby], $b[$array_sortby]);
3069  return strcoll(ilStr::strToUpper($b[$array_sortby]), ilStr::strToUpper($a[$array_sortby]));
3070  }
3071  }
static strToUpper($a_string)
Definition: class.ilStr.php:96
static strCmp($a, $b)
Compare two strings.
+ Here is the call graph for this function:

◆ sort_func_numeric()

static ilUtil::sort_func_numeric (   $a,
  $b 
)
static

sub-function to sort an array

Parameters
array$a
array$b
Returns
boolean true on success / false on error

Definition at line 3083 of file class.ilUtil.php.

3084  {
3085  global $array_sortby,$array_sortorder;
3086 
3087  if ($array_sortorder == "asc") {
3088  return $a["$array_sortby"] > $b["$array_sortby"];
3089  }
3090 
3091  if ($array_sortorder == "desc") {
3092  return $a["$array_sortby"] < $b["$array_sortby"];
3093  }
3094  }

◆ sortArray()

static ilUtil::sortArray (   $array,
  $a_array_sortby,
  $a_array_sortorder = 0,
  $a_numeric = false,
  $a_keep_keys = false 
)
static

sortArray

Parameters
arrayarray to sort
stringsort_column
stringsort_order (ASC or DESC)
boolsort numeric?
Returns
array sorted array

Definition at line 3107 of file class.ilUtil.php.

References array.

Referenced by ilBenchmarkTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilUserDefinedFields\__read(), ilContainerSessionsContentGUI\__showMaterials(), ilCourseObjectiveMaterials\_getAssignableMaterials(), ilExport\_getLastExportFileDate(), ilExport\_getLastExportFileInformation(), ilNewsItem\_getNewsItemsOfUser(), ilTemplate\addILIASFooter(), ilCalendarSchedule\calculate(), ilColumnGUI\determineBlocks(), ilLMTracker\determineProgressStatus(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\exportData(), ilObjExercise\exportGradesExcel(), ilPollBlockGUI\fillRow(), ilClassificationBlockGUI\filterContainer(), ilTaxonomyNode\fixOrderNumbers(), ilExAssignmentTeam\getAdoptableTeamAssignments(), ilNewsItem\getAggregatedChildNewsData(), ilNewsItem\getAggregatedNewsData(), ilObjSurvey\getAllRelations(), ilItemGroupItems\getAssignableItems(), ilCalendarSelectionBlockGUI\getCalendars(), ilPersonalSkillExplorerGUI\getChildsOfNode(), ilModulesTableGUI\getComponents(), ilAwarenessData\getData(), ilBenchmarkTableGUI\getDataByFirstTable(), ilSessionMaterialsTableGUI\getDataFromDb(), ilFSWebStorageExercise\getFiles(), ilFSStorageExc5242\getFiles(), ilFSStorageExercise5069\getFiles(), ilFSStorageExercise\getFiles(), ilObjectDefinition\getGroupedRepositoryObjectTypes(), ilExAssignmentTeam\getGroupMembersMap(), ilNewItemGroupTableGUI\getGroups(), ilDclNReferenceFieldGUI\getHTML(), ilCalendarAgendaListGUI\getHTML(), ilTable2GUI\getHTML(), ilTestManScoringParticipantsTableGUI\getInternalyOrderedDataValues(), ilPCImageMapTableGUI\getItems(), ilUserRoleStartingPointTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilPCIIMTriggerTableGUI\getItems(), ilObjBlogGUI\getKeywords(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), ilItemGroupItemsTableGUI\getMaterials(), ilAwarenessData\getOnlineUserData(), ilCourseMembershipGUI\getPrintMemberData(), ilPageObject\getRecentChanges(), ilObjMediaCast\getSortedItemsArray(), ilObjCourse\getSubItems(), ilObjectDefinition\getSubObjects(), ilObjectDefinition\getSubObjectsRecursively(), ilTagging\getTagsForUser(), ilObjectActivation\getTimingsAdministrationItems(), ilObjUserTrackingGUI\initLPDefaultsForm(), ilPCQuestionGUI\insert(), ilObjectListGUI\insertPreconditions(), ilPCParagraph\linkTermsInDom(), ilBadgeProfileGUI\listBadges(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilObjectAddNewItemGUI\parsePersonalWorkspace(), ilObjectAddNewItemGUI\parseRepository(), ilObjRoleGUI\permObject(), ilTreeExplorerGUI\preloadChilds(), ilContentStyleSettings\read(), ilPortfolioPageGUI\renderMyCourses(), ilContainerContentGUI\renderPageEmbeddedBlocks(), ilSkillTreeNode\saveChildsOrder(), ilObjStyleSheet\saveMediaQueryOrder(), ilObjRoleTemplateGUI\saveObject(), ilObjWiki\saveOrderingAndIndentation(), ilWikiPageGUI\searchWikiLinkAC(), ilExerciseManagementGUI\showParticipantObject(), ilLMPresentationGUI\showPrintView(), ilTableGUI\sortData(), ilContainerSorting\sortItems(), ilLinkResourceItems\sortItems(), ilExplorer\sortNodes(), ilContainerSorting\sortOrderDefault(), ilCourseObjectiveQuestionAssignmentTableGUI\sortQuestions(), ilContainerSorting\sortSubItems(), ilAdvancedMDSettingsGUI\updateSubstitutions(), and ilObjTypeDefinitionGUI\viewObject().

3113  {
3114  include_once("./Services/Utilities/classes/class.ilStr.php");
3115 
3116  // BEGIN WebDAV: Provide a 'stable' sort algorithm
3117  if (!$a_keep_keys) {
3118  return self::stableSortArray($array, $a_array_sortby, $a_array_sortorder, $a_numeric, $a_keep_keys);
3119  }
3120  // END WebDAV Provide a 'stable' sort algorithm
3121 
3122  global $array_sortby,$array_sortorder;
3123  $array_sortby = $a_array_sortby;
3124 
3125  if ($a_array_sortorder == "desc") {
3126  $array_sortorder = "desc";
3127  } else {
3128  $array_sortorder = "asc";
3129  }
3130  if ($a_numeric) {
3131  if ($a_keep_keys) {
3132  uasort($array, array("ilUtil", "sort_func_numeric"));
3133  } else {
3134  usort($array, array("ilUtil", "sort_func_numeric"));
3135  }
3136  } else {
3137  if ($a_keep_keys) {
3138  uasort($array, array("ilUtil", "sort_func"));
3139  } else {
3140  usort($array, array("ilUtil", "sort_func"));
3141  }
3142  }
3143  //usort($array,"ilUtil::sort_func");
3144 
3145  return $array;
3146  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ stableSortArray()

static ilUtil::stableSortArray (   $array,
  $a_array_sortby,
  $a_array_sortorder = 0,
  $a_numeric = false 
)
static

Sort an aray using a stable sort algorithm, which preveserves the sequence of array elements which have the same sort value.

To sort an array by multiple sort keys, invoke this function for each sort key.

Parameters
arrayarray to sort
stringsort_column
stringsort_order (ASC or DESC)
boolsort numeric?
Returns
array sorted array

Definition at line 3162 of file class.ilUtil.php.

References array, and mergesort().

Referenced by ilLanguageTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), and ilTrQuery\getUserDataForObject().

3163  {
3164  global $array_sortby,$array_sortorder;
3165 
3166  $array_sortby = $a_array_sortby;
3167 
3168  if ($a_array_sortorder == "desc") {
3169  $array_sortorder = "desc";
3170  } else {
3171  $array_sortorder = "asc";
3172  }
3173 
3174  // Create a copy of the array values for sorting
3175  $sort_array = array_values($array);
3176 
3177  if ($a_numeric) {
3178  ilUtil::mergesort($sort_array, array("ilUtil", "sort_func_numeric"));
3179  } else {
3180  ilUtil::mergesort($sort_array, array("ilUtil", "sort_func"));
3181  }
3182 
3183  return $sort_array;
3184  }
static mergesort(&$array, $cmp_function='strcmp')
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stripOnlySlashes()

static ilUtil::stripOnlySlashes (   $a_str)
static

strip slashes if magic qoutes is enabled

Parameters
stringstring

Definition at line 2458 of file class.ilUtil.php.

Referenced by ilTextAreaInputGUI\checkInput(), ilObjTermsOfServiceGUI\getAgreementTextByFilenameAsynch(), assFormulaQuestionGUI\writePostData(), and assQuestionGUI\writeQuestionGenericPostData().

2459  {
2460  if (ini_get("magic_quotes_gpc")) {
2461  $a_str = stripslashes($a_str);
2462  }
2463 
2464  return $a_str;
2465  }
+ Here is the caller graph for this function:

◆ stripScriptHTML()

static ilUtil::stripScriptHTML (   $a_str,
  $a_allow = "",
  $a_rm_js = true 
)
static

strip only html tags (4.0) from text $allowed contains tags to be allowed, in format tags a and b are allowed todo: needs to be optimized-> not very efficient

Parameters
string$a_strinput string
string$a_allowallowed tags, if an empty string is passed a default set of tags is allowed
boolean$a_rm_jsremove javascript attributes (onclick...)

Definition at line 2797 of file class.ilUtil.php.

Referenced by ilTemplate\fillHeader(), ilTemplate\fillWindowTitle(), secureString(), ilTemplate\setHeaderPageTitle(), ilTemplate\setTitle(), and ilFramesetGUI\show().

2798  {
2799  //$a_str = strip_tags($a_str, $a_allow);
2800 
2801  $negativestr = "a,abbr,acronym,address,applet,area,base,basefont," .
2802  "big,blockquote,body,br,button,caption,center,cite,code,col," .
2803  "colgroup,dd,del,dfn,dir,div,dl,dt,em,fieldset,font,form,frame," .
2804  "frameset,h1,h2,h3,h4,h5,h6,head,hr,html,i,iframe,img,input,ins,isindex,kbd," .
2805  "label,legend,li,link,map,menu,meta,noframes,noscript,object,ol," .
2806  "optgroup,option,p,param,q,s,samp,script,select,small,span," .
2807  "strike,strong,style,sub,sup,table,tbody,td,textarea,tfoot,th,thead," .
2808  "title,tr,tt,u,ul,var";
2809  $a_allow = strtolower($a_allow);
2810  $negatives = explode(",", $negativestr);
2811  $outer_old_str = "";
2812  while ($outer_old_str != $a_str) {
2813  $outer_old_str = $a_str;
2814  foreach ($negatives as $item) {
2815  $pos = strpos($a_allow, "<$item>");
2816 
2817  // remove complete tag, if not allowed
2818  if ($pos === false) {
2819  $old_str = "";
2820  while ($old_str != $a_str) {
2821  $old_str = $a_str;
2822  $a_str = preg_replace("/<\/?\s*$item(\/?)\s*>/i", "", $a_str);
2823  $a_str = preg_replace("/<\/?\s*$item(\/?)\s+([^>]*)>/i", "", $a_str);
2824  }
2825  }
2826  }
2827  }
2828 
2829  if ($a_rm_js) {
2830  // remove all attributes if an "on..." attribute is given
2831  $a_str = preg_replace("/<\s*\w*(\/?)(\s+[^>]*)?(\s+on[^>]*)>/i", "", $a_str);
2832 
2833  // remove all attributes if a "javascript" is within tag
2834  $a_str = preg_replace("/<\s*\w*(\/?)\s+[^>]*javascript[^>]*>/i", "", $a_str);
2835 
2836  // remove all attributes if an "expression" is within tag
2837  // (IE allows something like <b style='width:expression(alert(1))'>test</b>)
2838  $a_str = preg_replace("/<\s*\w*(\/?)\s+[^>]*expression[^>]*>/i", "", $a_str);
2839  }
2840 
2841  return $a_str;
2842  }
+ Here is the caller graph for this function:

◆ stripSlashes()

static ilUtil::stripSlashes (   $a_str,
  $a_strip_html = true,
  $a_allow = "" 
)
static

strip slashes if magic qoutes is enabled

Parameters
booleanstrip also html tags

Definition at line 2441 of file class.ilUtil.php.

References secureString().

Referenced by ilBlogExerciseGUI\__construct(), ilObjBlogGUI\__construct(), ilAccountRegistrationGUI\__distributeMails(), ilUserSearchFilter\__parseQueryString(), ilSearchGUI\__parseQueryString(), ilRepositorySearchGUI\__parseQueryString(), ilAdvancedSearchGUI\__performContentSearch(), ilAdvancedSearchGUI\__performEntitySearch(), ilAdvancedSearchGUI\__performGeneralSearch(), ilAdvancedSearchGUI\__performKeywordSearch(), ilAdvancedSearchGUI\__performLifecycleSearch(), ilAdvancedSearchGUI\__performTaxonSearch(), ilAdvancedSearchGUI\__performTitleSearch(), ilObjUserGUI\_goto(), ilPCParagraph\_input2xml(), ilObjFile\_lookupFileName(), ilObjFileAccess\_lookupVersion(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilPageEditorGUI\addChangeComment(), ilObjGlossaryGUI\addDefinition(), ilObjGlossaryGUI\addTerm(), ilObjContentObjectGUI\addTooltip(), ilPCInteractiveImage\addTriggerArea(), ilObjBlogGUI\addUserFromAutoComplete(), ilPageEditorGUI\assignCharacteristic(), ilObjRole\assignData(), ilSkillProfileGUI\assignUser(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilAssQuestionSkillAssignmentsTableGUI\buildSkillPointsInput(), ilObjRoleGUI\changeExistingObjectsObject(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilSetup\checkDataDirSetup(), ilSetup\checkErrorLogSetup(), ilMailQuickFilterInputGUI\checkInput(), ilNonEditableValueGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilGloAdvColSortInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilClozeGapInputBuilderGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilWidthHeightInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilChatroomAuthInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilCopyrightInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilTRBLBorderStyleInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilCheckboxInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilOrgUnitMultiLineInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilOrgUnitGenericMultiInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilDclGenericMultiInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilDurationInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilObjLinkResourceGUI\checkLinkInput(), ilSetup\checkLogSetup(), ilSetup\checkToolsSetup(), ilObjSurvey\cloneTextblocks(), ilPageObjectGUI\confirmPageTranslationCreation(), ilObjMediaCastGUI\convertFileObject(), ilChatroomPrivateRoomGUI\create(), ilPCQuestionOverviewGUI\create(), ilPCResourcesGUI\create(), ilPCSourceCodeGUI\create(), ilPCFileListGUI\create(), ilPCTableGUI\create(), ilBookmarkAdministrationGUI\createBookmark(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilFileSystemGUI\createDirectory(), ilExportGUI\createExportFile(), ilFileUtils\createFile(), ilObjFileBasedLMGUI\createFromDirectory(), ilPCParagraphGUI\createJS(), ilPageObjectGUI\createPageTranslation(), ilObjBlogGUI\createPosting(), ilSCORM13Package\dbImportSco(), ilExAssignmentEditorGUI\deleteAssignmentsObject(), ilMailAttachmentGUI\deleteAttachments(), ilFileSystemGUI\deleteFile(), ilPCInteractiveImageGUI\deleteOverlays(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilChatroomUploadFileGUI\displayLinkToUploadedFile(), ilObjSurveyGUI\doAutoCompleteObject(), ilStartUpGUI\doSamlAuthentication(), ilObjLanguageExtGUI\downloadObject(), ilPCParagraphGUI\edit(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilObjAuthSettingsGUI\editSOAPObject(), ilTestExpressPageObjectGUI\executeCommand(), ilUsersGalleryGUI\executeCommand(), ilContactGUI\executeCommand(), ilDclRecordListGUI\executeCommand(), assQuestionGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilChatroomPostMessageGUI\executeDefault(), ilObjMediaPoolGUI\export(), ilObjContentObjectGUI\export(), ilObjContentObjectGUI\exportHTML(), ilFileSystemGUI\extCommand(), assClozeTest\fetchSolutionSubmit(), ilRepositoryObjectSearchBlockGUI\fillDataSection(), ilWikiSearchBlockGUI\fillDataSection(), ilExportIDTableGUI\fillRow(), ilMailSearchCoursesMembersTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilObjTermsOfServiceGUI\getAcceptedContentAsynch(), ilMailTemplateGUI\getAjaxPlaceholdersById(), ilLanguage\getFallbackInstance(), ilCertificateGUI\getFormFieldsFromPOST(), ilObjUser\getFullname(), ilObjBlogGUI\getHTML(), ilUserLPTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilBookmarkExplorerGUI\getNodeHref(), assAnswerCloze\getNumericValueFromText(), ilNumberInputGUI\getPostValueForComparison(), assTextQuestion\getSolutionSubmit(), ilUserTableGUI\getUserIdsForFilter(), ilClozeGapInputBuilderGUI\getValue(), ilClozeGapInputBuilderGUI\getValueCombination(), ilPCParagraph\handleAjaxContent(), ilObjSessionGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilObjForumGUI\handleFormInput(), ilPCTable\importHtml(), ilMediaPoolImportGUI\importTranslation(), ilLMImportGUI\importTranslation(), ilLuceneUserSearchGUI\initUserSearchCache(), ilLuceneSearchGUI\initUserSearchCache(), ilSearchGUI\initUserSearchCache(), ilAdvancedSearchGUI\initUserSearchCache(), ilMDEditorGUI\keywordAutocomplete(), ilBlogPostingGUI\keywordAutocomplete(), ilGlossaryPresentationGUI\listTerms(), ilCalendarAppointmentGUI\load(), ilObjSessionGUI\load(), ilECSUser\loadFromGET(), ilLDAPRoleGroupMappingSettings\loadFromPost(), ilECSSettingsGUI\loadFromPost(), ilCalendarAppointmentGUI\loadNotificationRecipients(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilRecurrenceInputGUI\loadRecurrence(), ilCalendarAppointmentGUI\loadRecurrenceSettings(), ilObjSessionGUI\loadRecurrenceSettings(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), ilMailSearchGUI\lookupRecipientAsync(), ilMailFormGUI\lookupRecipientAsync(), ilObjLanguageExtGUI\maintainExecuteObject(), ilCSVReader\open(), assQuestionGUI\outChapterSelector(), assQuestionGUI\outPageSelector(), ilFileSystemGUI\parseCurrentDirectory(), ilMailFolderGUI\performAddSubFolder(), ilMailingListsGUI\performDelete(), ilMailFolderGUI\performRenameSubFolder(), ilRepositoryObjectSearchGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilObjWikiGUI\performSearchObject(), prepareFormOutput(), ilBlogPostingGUI\preview(), ilLMPageGUI\processAnswer(), ilPageObjectGUI\processAnswer(), ilICalParser\purgeString(), ilMailBodyPurifier\purify(), ilMDFormat\read(), ilMDEntity\read(), ilMDLocation\read(), ilMDIdentifier\read(), ilMDIdentifier_\read(), ilMDDescription\read(), ilMDKeyword\read(), ilMDTypicalAgeRange\read(), ilMDTaxon\read(), ilMDAnnotation\read(), ilMDRights\read(), ilMDTaxonPath\read(), ilMDContribute\read(), ilMDLifecycle\read(), ilMDRequirement\read(), ilMDRelation\read(), ilMDMetaMetadata\read(), ilMDClassification\read(), ilMDTechnical\read(), ilMDGeneral\read(), ilMDEducational\read(), ilLuceneUserSearchGUI\remoteSearch(), ilLuceneSearchGUI\remoteSearch(), ilAdvancedSearchGUI\remoteSearch(), ilSearchGUI\remoteSearch(), ilLuceneAdvancedSearchGUI\remoteSearch(), ilExAssignmentFileSystemGUI\renameFile(), ilFileSystemGUI\renameFile(), ilFileSystemGUI\renameFileForm(), ilObjBlogGUI\renderFullScreen(), ilObjBlogGUI\renderList(), ilObjPDFGenerationGUI\resetSettings(), ilTable2GUI\restoreTemplate(), ilFileSystemGUI\sanitizeCurrentDirectory(), ilQtiMatImageSecurity\sanitizeLabel(), ilLMEditShortTitlesGUI\save(), ilObjCalendarSettingsGUI\save(), ilLMPageObjectGUI\save(), ilRadiusSettingsGUI\save(), ilRegistrationSettingsGUI\save(), ilStructureObjectGUI\save(), ilCourseContentGUI\saveAcceptance(), ilPCMediaObjectGUI\saveAliasProperties(), ilObjSkillManagementGUI\saveAllTemplateTitles(), ilObjSkillManagementGUI\saveAllTitles(), ilObjSCORM2004LearningModuleGUI\saveAllTitles(), ilPCImageMapEditorGUI\saveArea(), ilPCIIMTriggerEditorGUI\saveArea(), ilImageMapEditorGUI\saveArea(), ilRegistrationSettingsGUI\saveAssignment(), ilObjSystemFolderGUI\saveBenchSettingsObject(), ilExerciseManagementGUI\saveCommentForLearnersObject(), ilExerciseManagementGUI\saveCommentsObject(), ilDAVCronDiskQuota\saveCustomSettings(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilGlossaryTermGUI\saveDefinition(), ilObjFileAccessSettingsGUI\saveDownloadingSettings(), ilObjMDSettingsGUI\saveEntry(), ilObjContentObjectGUI\saveExportIds(), ilAccountRegistrationGUI\saveForm(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilPersonalSettingsGUI\saveGeneralSettings(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), ilExerciseManagementGUI\saveGradesObject(), ilObjWikiGUI\saveGradingObject(), ilObjSystemFolderGUI\saveHeaderTitleObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilSurveyEditorGUI\saveHeadingObject(), ilPageObjectGUI\saveInitialOpenedContent(), ilTaxAssignInputGUI\saveInput(), ilTaggingGUI\saveInput(), ilObjSystemFolderGUI\saveJavaServerObject(), ilTaggingGUI\saveJS(), ilPCParagraphGUI\saveJS(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilLDAPSettingsGUI\saveMapping(), ilObjGroupGUI\saveMapSettingsObject(), ilObjCourseGUI\saveMapSettingsObject(), ilObjExternalToolsSettingsGUI\saveMapsObject(), ilMarkSchemaGUI\saveMarkSchemaFormData(), ilSetup\saveMasterSetup(), ilObjExternalToolsSettingsGUI\saveMathJaxObject(), ilPCParagraph\saveMetaKeywords(), ilObjUserFolderGUI\saveNewAccountMailObject(), ilObjLanguageExtGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilContainerGUI\savePageContentObject(), ilStructureObjectGUI\savePageLayout(), ilObjContentObjectGUI\savePageLayout(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePersonalData(), ilObjPortfolioBaseGUI\savePortfolioPagesOrdering(), ilPersonalProfileGUI\saveProfile(), ilPCFileListGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjSurveyGUI\savePropertiesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilRatingGUI\saveRating(), ilObjSCORM2004LearningModuleGUI\saveSequencing(), ilObjTaggingSettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilObjAssessmentFolderGUI\saveSettingsObject(), ilObjTaxonomyGUI\saveSorting(), ilExerciseManagementGUI\saveStatusAllObject(), ilExerciseManagementGUI\saveStatusParticipantObject(), ilObjContentObjectGUI\saveStyleSettings(), ilObjPortfolioBaseGUI\saveStyleSettings(), ilObjSCORM2004LearningModuleGUI\saveStyleSettings(), ilObjGlossaryGUI\saveStyleSettings(), ilObjBlogGUI\saveStyleSettings(), ilObjWikiGUI\saveStyleSettingsObject(), ilContainerGUI\saveStyleSettingsObject(), ilLDAPSettingsGUI\saveSyncronizationSettings(), ilPortfolioRepositoryGUI\saveTitles(), ilObjContentObjectGUI\saveTooltips(), ilTranslationGUI\saveTranslations(), ilMultilingualismGUI\saveTranslations(), ilObjectTranslationGUI\saveTranslations(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilObjFileAccessSettingsGUI\saveWebDAVSettings(), assLongMenu\saveWorkingData(), assClozeTest\saveWorkingData(), ilExerciseManagementGUI\selectAssignmentObject(), ilExerciseManagementGUI\selectParticipantObject(), ilPCTableGUI\setAlignment(), ilImageMapEditorGUI\setHighlight(), ilObjHelpSettingsGUI\setMode(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilPCTableGUI\setProperties(), ilLDAPRoleGroupMappingSetting\setRoleByName(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilObjChatroomGUI\settings(), ilPCTableGUI\setWidths(), ilCalendarCategoryGUI\sharePerformSearch(), ilRegistrationGUI\showCustomFields(), ilStartUpGUI\showSamlLoginForm(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\showTrackingItemsBySco(), ilObjSCORM2004LearningModuleGUI\showTrackingItemsBySco(), ilObjForumGUI\showUserObject(), ilObjTaggingSettingsGUI\showUsers(), ilWorkflowEngineDefinitionsGUI\stopListening(), ilFormPropertyGUI\stripSlashesAddSpaceFallback(), SurveyQuestion\stripSlashesAddSpaceFallback(), stripSlashesArray(), stripSlashesRecursive(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), ilPageObjectGUI\switchToLanguage(), ilSetup\testLatex(), ilBuddySystemGUI\transitionAsyncCommand(), ilPCQuestionOverviewGUI\update(), ilPCSourceCodeGUI\update(), ilPCResourcesGUI\update(), ilPCInteractiveImageGUI\update(), ilMDEditorGUI\updateAnnotation(), ilImageMapEditorGUI\updateAreas(), ilPCImageMapEditorGUI\updateAreas(), ilBookmarkAdministrationGUI\updateBookmark(), ilBookmarkAdministrationGUI\updateBookmarkFolder(), ilMDEditorGUI\updateClassification(), ilNestedSetXML\updateDomNode(), ilMDEditorGUI\updateEducational(), ilObjMDSettingsGUI\updateEntry(), ilMDEditorGUI\updateGeneral(), ilObjCourseGUI\updateInfoObject(), ilObjGroupGUI\updateInfoObject(), ilPCDataTableGUI\updateJS(), ilMDKeyword\updateKeywords(), ilMDEditorGUI\updateLifecycle(), ilObjLinkResourceGUI\updateLinks(), ilExerciseXMLParser\updateMarking(), ilSetup\updateMasterSettings(), ilSessionMembershipGUI\updateMembers(), ilMDEditorGUI\updateMetaMetaData(), ilNoteGUI\updateNote(), ilObjGroupGUI\updateObject(), ilSCORM2004ScoGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), ilMDEditorGUI\updateQuickEdit_scorm(), ilMDEditorGUI\updateQuickEdit_scorm_propagate(), ilAdvancedMDSettingsGUI\updateRecords(), ilMDEditorGUI\updateRelation(), ilMDEditorGUI\updateRights(), ilRegistrationGUI\updateSubscriptionRequest(), ilMDEditorGUI\updateTechnical(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilExAssignmentFileSystemGUI\uploadFile(), ilFileSystemGUI\uploadFile(), ilObjLanguageExtGUI\uploadObject(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().

2442  {
2443  if (ini_get("magic_quotes_gpc")) {
2444  $a_str = stripslashes($a_str);
2445  }
2446  //echo "<br><br>-".$a_strip_html."-".htmlentities($a_str);
2447  //echo "<br>-".htmlentities(ilUtil::secureString($a_str, $a_strip_html, $a_allow));
2448  return ilUtil::secureString($a_str, $a_strip_html, $a_allow);
2449  }
static secureString($a_str, $a_strip_html=true, $a_allow="")
Remove unsecure tags.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stripSlashesArray()

static ilUtil::stripSlashesArray (   $a_arr,
  $a_strip_html = true,
  $a_allow = "" 
)
static

Strip slashes from array.

Definition at line 2389 of file class.ilUtil.php.

References stripSlashes().

Referenced by ilSkillTreeNodeGUI\copyItems(), ilStructureObjectGUI\copyItems(), ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilObjContentObjectGUI\copyItems(), ilObjContentObjectGUI\copyPage(), ilObjGlossaryGUI\copyTerms(), ilSkillTreeNodeGUI\cutItems(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilObjContentObjectGUI\movePage(), ilObjGlossaryGUI\referenceTerms(), ilObjAccessibilitySettingsGUI\saveAccessKeys(), ilStructureObjectGUI\saveAllTitles(), ilObjContentObjectGUI\saveAllTitles(), ilPCGridGUI\saveCellData(), ilPCGridGUI\saveCells(), ilObjItemGroupGUI\saveItemAssignment(), ilPCInteractiveImageGUI\savePopups(), ilAdvancedMDRecordGUI\saveSelection(), ilPCTabsGUI\saveTabs(), ilBasicSkillGUI\updateLevelOrder(), ilExerciseManagementGUI\uploadMultiFeedbackObject(), ilMobMultiSrtUploadGUI\uploadMultipleSubtitleFile(), and ilObjMediaObjectGUI\uploadMultipleSubtitleFileObject().

2390  {
2391  if (is_array($a_arr)) {
2392  foreach ($a_arr as $k => $v) {
2393  $a_arr[$k] = ilUtil::stripSlashes($v, $a_strip_html, $a_allow);
2394  }
2395  }
2396 
2397  return $a_arr;
2398  }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stripSlashesRecursive()

static ilUtil::stripSlashesRecursive (   $a_data,
  $a_strip_html = true,
  $a_allow = "" 
)
static

Strip slashes from array and sub-arrays.

Definition at line 2417 of file class.ilUtil.php.

References stripSlashes().

Referenced by ilEssayKeywordWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilClozeGapInputBuilderGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilObjBlogGUI\confirmRemoveContributor(), ilCtrl\getParameterArrayByClass(), assLongMenu\getSolutionSubmit(), ilMultiFilesSubmitRecursiveSlashesStripper\manipulateFileSubmitValues(), ilFormSubmitRecursiveSlashesStripper\manipulateFormSubmitValues(), ilObjBlogGUI\removeContributor(), ilLogicalAnswerComparisonExpressionInputGUI\sanitizeSuperGlobalSubmitValue(), ilAnswerWizardInputGUI\sanitizeSuperGlobalSubmitValue(), assClozeTestGUI\writeAnswerSpecificPostData(), and assLongMenuGUI\writeQuestionSpecificPostData().

2418  {
2419  if (is_array($a_data)) {
2420  foreach ($a_data as $k => $v) {
2421  if (is_array($v)) {
2422  $a_data[$k] = ilUtil::stripSlashesRecursive($v, $a_strip_html, $a_allow);
2423  } else {
2424  $a_data[$k] = ilUtil::stripSlashes($v, $a_strip_html, $a_allow);
2425  }
2426  }
2427  } else {
2428  $a_data = ilUtil::stripSlashes($a_data, $a_strip_html, $a_allow);
2429  }
2430 
2431  return $a_data;
2432  }
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ switchColor()

static ilUtil::switchColor (   $a_num,
  $a_css1,
  $a_css2 
)
static

◆ tf2yn()

static ilUtil::tf2yn (   $a_tf)
static

convert true/false to "y"/"n"

Definition at line 3033 of file class.ilUtil.php.

Referenced by ilObjContentObject\exportXMLProperties(), ilObjRoleGUI\permSaveObject(), ilPersonalChatSettingsFormGUI\saveChatOptions(), ilObjSAHSLearningModule\setAutoReview(), ilObjFileBasedLM\update(), ilObjGlossary\update(), ilObjSAHSLearningModule\update(), and ilObjContentObject\updateProperties().

3034  {
3035  if ($a_tf) {
3036  return "y";
3037  } else {
3038  return "n";
3039  }
3040  }
+ Here is the caller graph for this function:

◆ unique_multi_array()

static ilUtil::unique_multi_array (   $array,
  $sub_key 
)
static

Make a multi-dimensional array to have only DISTINCT values for a certain "column".

It's like using the DISTINCT parameter on a SELECT sql statement.

Parameters
arrayyour multi-dimensional array
string'column' to filter
Returns
array filtered array
Author
Unknown tru@a.nosp@m.scri.nosp@m.bedat.nosp@m.a.co.nosp@m.m (found in PHP annotated manual)

Definition at line 3241 of file class.ilUtil.php.

References $key, $target, and array.

3242  {
3243  $target = array();
3244  $existing_sub_key_values = array();
3245 
3246  foreach ($array as $key=>$sub_array) {
3247  if (!in_array($sub_array[$sub_key], $existing_sub_key_values)) {
3248  $existing_sub_key_values[] = $sub_array[$sub_key];
3249  $target[$key] = $sub_array;
3250  }
3251  }
3252 
3253  return $target;
3254  }
Create styles array
The data for the language used.
$key
Definition: croninfo.php:18

◆ unmaskAttributeTag()

static ilUtil::unmaskAttributeTag (   $a_str,
  $tag,
  $tag_att 
)
static

Definition at line 2702 of file class.ilUtil.php.

References $DIC, $ilLog, $tag, and secureLink().

Referenced by unmaskSecureTags().

2703  {
2704  global $DIC;
2705 
2706  $ilLog = $DIC["ilLog"];
2707 
2708  while (preg_match(
2709  '/&lt;(' . $tag . ' ' . $tag_att . $tag_att . '="(([$@!*()~;,_0-9A-z\/:=%.&#?+\-])*)")&gt;/i',
2710  $a_str,
2711  $found
2712  )) {
2713  $old_str = $a_str;
2714  $a_str = preg_replace(
2715  "/&lt;" . preg_quote($found[1], "/") . "&gt;/i",
2716  '<' . $tag . ' ' . $tag_att . '="' . ilUtil::secureLink($found[2]) . '">',
2717  $a_str
2718  );
2719  if ($old_str == $a_str) {
2720  $ilLog->write("ilUtil::unmaskA-" . htmlentities($old_str) . " == " .
2721  htmlentities($a_str));
2722  return $a_str;
2723  }
2724  }
2725  $a_str = str_replace('&lt;/' . $tag . '&gt;', '</' . $tag . '>', $a_str);
2726  return $a_str;
2727  }
global $DIC
Definition: saml.php:7
static secureLink($a_str)
if(function_exists('posix_getuid') &&posix_getuid()===0) if(!array_key_exists('t', $options)) $tag
Definition: cron.php:35
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unmaskSecureTags()

static ilUtil::unmaskSecureTags (   $a_str,
  $allow_array 
)
static

Definition at line 2558 of file class.ilUtil.php.

References $t, array, unmaskAttributeTag(), and unmaskTag().

Referenced by secureString().

2559  {
2560  foreach ($allow_array as $t) {
2561  switch ($t) {
2562  case "a":
2563  $a_str = ilUtil::unmaskAttributeTag($a_str, "a", "href");
2564  break;
2565 
2566  case "img":
2567  $a_str = ilUtil::unmaskAttributeTag($a_str, "img", "src");
2568  break;
2569 
2570  case "p":
2571  case "div":
2572  $a_str = ilUtil::unmaskTag($a_str, $t, array(
2573  array("param" => "align", "value" => "left"),
2574  array("param" => "align", "value" => "center"),
2575  array("param" => "align", "value" => "justify"),
2576  array("param" => "align", "value" => "right")
2577  ));
2578  break;
2579 
2580  default:
2581  $a_str = ilUtil::unmaskTag($a_str, $t);
2582  break;
2583  }
2584  }
2585 
2586  return $a_str;
2587  }
static unmaskAttributeTag($a_str, $tag, $tag_att)
static unmaskTag($a_str, $t, $fix_param="")
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unmaskTag()

static ilUtil::unmaskTag (   $a_str,
  $t,
  $fix_param = "" 
)
static

Definition at line 2757 of file class.ilUtil.php.

References $t.

Referenced by unmaskSecureTags().

2758  {
2759  $a_str = str_replace("&lt;" . $t . "&gt;", "<" . $t . ">", $a_str);
2760  $a_str = str_replace("&lt;/" . $t . "&gt;", "</" . $t . ">", $a_str);
2761 
2762  if (is_array($fix_param)) {
2763  foreach ($fix_param as $p) {
2764  $k = $p["param"];
2765  $v = $p["value"];
2766  $a_str = str_replace(
2767  "&lt;$t $k=\"$v\"&gt;",
2768  "<" . "$t $k=\"$v\"" . ">",
2769  $a_str
2770  );
2771  }
2772  }
2773  return $a_str;
2774  }
+ Here is the caller graph for this function:

◆ unserializeSession()

static ilUtil::unserializeSession (   $data)
static

Returns the unserialized ILIAS session data.

Parameters
array$dataThe serialized ILIAS session data from database
Returns
array

Definition at line 4778 of file class.ilUtil.php.

References $data, $i, $result, and array.

4779  {
4780  $vars = preg_split(
4781  '/([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff^|]*)\|/',
4782  $data,
4783  -1,
4784  PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE
4785  );
4786 
4787  $result = array();
4788 
4789  for ($i = 0; $vars[$i]; $i++) {
4790  $result[$vars[$i++]] = unserialize($vars[$i]);
4791  }
4792 
4793  return $result;
4794  }
$result
Create styles array
The data for the language used.
$i
Definition: disco.tpl.php:19

◆ unzip()

static ilUtil::unzip (   $a_file,
  $overwrite = false,
  $a_flat = false 
)
static

unzip file

Parameters
string$a_filefull path/filename
boolean$overwritepass true to overwrite existing files

Definition at line 1630 of file class.ilUtil.php.

References $DIC, $file, $log, $name, $target, array, delDir(), escapeShellArg(), execQuoted(), ilTempnam(), makeDir(), and ilFileUtils\recursive_dirscan().

Referenced by ilObjCategoryGUI\_importCategories(), ilExportContainer\addSubitems(), ilExSubmission\downloadAllAssignmentFiles(), ilSurveyExporter\getXmlRepresentation(), ilSystemStyleSkinContainer\import(), ilObjStyleSheet\import(), ilCertificate\importCertificate(), ilObjContentObject\importFromZipFile(), ilImport\importObject(), ilObjSurveyQuestionPool\importObject(), ilObjSurvey\importObject(), ilScorm2004DataSet\importRecord(), ilSCORM2004ScoGUI\importSave(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilScormAiccImporter\importXmlRepresentation(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilObjSCORM2004LearningModuleGUI\preview(), ilFileUtils\processZipFile(), ilFileDataCourse\unpackImportFile(), ilFileDataImportMail\unzip(), ilFileSystemGUI\unzipFile(), ilExAssignment\uploadMultiFeedbackFile(), ilMobMultiSrtUpload\uploadMultipleSubtitleFile(), ilObjMediaObject\uploadMultipleSubtitleFile(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjQuestionPoolGUI\uploadQplObject(), and ilObjTestGUI\uploadTstObject().

1631  {
1632  global $DIC;
1633 
1634  $log = $DIC->logger()->root();
1635 
1636  if (!is_file($a_file)) {
1637  return;
1638  }
1639 
1640  // if flat, move file to temp directory first
1641  if ($a_flat) {
1642  $tmpdir = ilUtil::ilTempnam();
1643  ilUtil::makeDir($tmpdir);
1644  copy($a_file, $tmpdir . DIRECTORY_SEPARATOR . basename($a_file));
1645  $orig_file = $a_file;
1646  $a_file = $tmpdir . DIRECTORY_SEPARATOR . basename($a_file);
1647  $origpathinfo = pathinfo($orig_file);
1648  }
1649 
1650  $pathinfo = pathinfo($a_file);
1651  $dir = $pathinfo["dirname"];
1652  $file = $pathinfo["basename"];
1653 
1654  // unzip
1655  $cdir = getcwd();
1656  chdir($dir);
1657  $unzip = PATH_TO_UNZIP;
1658 
1659  // the following workaround has been removed due to bug
1660  // http://www.ilias.de/mantis/view.php?id=7578
1661  // since the workaround is quite old, it may not be necessary
1662  // anymore, alex 9 Oct 2012
1663  /*
1664  // workaround for unzip problem (unzip of subdirectories fails, so
1665  // we create the subdirectories ourselves first)
1666  // get list
1667  $unzipcmd = "-Z -1 ".ilUtil::escapeShellArg($file);
1668  $arr = ilUtil::execQuoted($unzip, $unzipcmd);
1669  $zdirs = array();
1670 
1671  foreach($arr as $line)
1672  {
1673  if(is_int(strpos($line, "/")))
1674  {
1675  $zdir = substr($line, 0, strrpos($line, "/"));
1676  $nr = substr_count($zdir, "/");
1677  //echo $zdir." ".$nr."<br>";
1678  while ($zdir != "")
1679  {
1680  $nr = substr_count($zdir, "/");
1681  $zdirs[$zdir] = $nr; // collect directories
1682  //echo $dir." ".$nr."<br>";
1683  $zdir = substr($zdir, 0, strrpos($zdir, "/"));
1684  }
1685  }
1686  }
1687 
1688  asort($zdirs);
1689 
1690  foreach($zdirs as $zdir => $nr) // create directories
1691  {
1692  ilUtil::createDirectory($zdir);
1693  }
1694  */
1695 
1696  // real unzip
1697  if (!$overwrite) {
1698  $unzipcmd = ilUtil::escapeShellArg($file);
1699  } else {
1700  $unzipcmd = "-o " . ilUtil::escapeShellArg($file);
1701  }
1702  ilUtil::execQuoted($unzip, $unzipcmd);
1703 
1704  chdir($cdir);
1705 
1706  // remove all sym links
1707  clearstatcache(); // prevent is_link from using cache
1708  $dir_realpath = realpath($dir);
1709  foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)) as $name => $f) {
1710  if (is_link($name)) {
1711  $target = readlink($name);
1712  if (substr($target, 0, strlen($dir_realpath)) != $dir_realpath) {
1713  unlink($name);
1714  $log->info("Removed symlink " . $name);
1715  }
1716  }
1717  }
1718 
1719  // if flat, get all files and move them to original directory
1720  if ($a_flat) {
1721  include_once("./Services/Utilities/classes/class.ilFileUtils.php");
1722  $filearray = array();
1723  ilFileUtils::recursive_dirscan($tmpdir, $filearray);
1724  if (is_array($filearray["file"])) {
1725  foreach ($filearray["file"] as $k => $f) {
1726  if (substr($f, 0, 1) != "." && $f != basename($orig_file)) {
1727  copy($filearray["path"][$k] . $f, $origpathinfo["dirname"] . DIRECTORY_SEPARATOR . $f);
1728  }
1729  }
1730  }
1731  ilUtil::delDir($tmpdir);
1732  }
1733  }
global $DIC
Definition: saml.php:7
if($format !==null) $name
Definition: metadata.php:146
Create styles array
The data for the language used.
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
static execQuoted($cmd, $args=null)
exec command and fix spaces on windows
static ilTempnam($a_temp_path=null)
Create a temporary file in an ILIAS writable directory.
static escapeShellArg($a_arg)
static recursive_dirscan($dir, &$arr)
Recursively scans a given directory and writes path and filename into referenced array.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virusHandling()

static ilUtil::virusHandling (   $a_file,
  $a_orig_name = "",
  $a_clean = true 
)
static

scan file for viruses and clean files if possible

Definition at line 3815 of file class.ilUtil.php.

References $DIC, $lng, ilVirusScannerFactory\_getInstance(), array, ilFileUtils\getValidFilename(), and sendFailure().

Referenced by ilUploadFiles\_copyUploadFile(), ilMultipleChoiceWizardInputGUI\checkInput(), ilFlashFileInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilFileInputGUI\checkInput(), assFileUpload\checkUpload(), ilKprimChoiceWizardInputGUI\checkUploads(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilMultipleImagesInputGUI\onCheckInput(), ilFileUtils\processZipFile(), and ilDAVServer\PUTfinished().

3816  {
3817  global $DIC;
3818 
3819  $lng = $DIC->language();
3820 
3821  if (IL_VIRUS_SCANNER != "None") {
3822  require_once("./Services/VirusScanner/classes/class.ilVirusScannerFactory.php");
3824  if (($vs_txt = $vs->scanFile($a_file, $a_orig_name)) != "") {
3825  if ($a_clean && (IL_VIRUS_CLEAN_COMMAND != "")) {
3826  $clean_txt = $vs->cleanFile($a_file, $a_orig_name);
3827  if ($vs->fileCleaned()) {
3828  $vs_txt.= "<br />" . $lng->txt("cleaned_file") .
3829  "<br />" . $clean_txt;
3830  $vs_txt.= "<br />" . $lng->txt("repeat_scan");
3831  if (($vs2_txt = $vs->scanFile($a_file, $a_orig_name)) != "") {
3832  return array(false, nl2br($vs_txt) . "<br />" . $lng->txt("repeat_scan_failed") .
3833  "<br />" . nl2br($vs2_txt));
3834  } else {
3835  return array(true, nl2br($vs_txt) . "<br />" . $lng->txt("repeat_scan_succeded"));
3836  }
3837  } else {
3838  return array(false, nl2br($vs_txt) . "<br />" . $lng->txt("cleaning_failed"));
3839  }
3840  } else {
3841  return array(false, nl2br($vs_txt));
3842  }
3843  }
3844  }
3845 
3846  return array(true,"");
3847  }
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yn2tf()

static ilUtil::yn2tf (   $a_yn)
static

convert "y"/"n" to true/false

Definition at line 3018 of file class.ilUtil.php.

Referenced by ilLMObject\_isPagePublic(), ilObjSAHSLearningModuleAccess\_lookupOfflineModeAvailable(), ilObjSAHSLearningModule\_lookupOnline(), ilObjGlossaryAccess\_lookupOnline(), ilObjFileBasedLMAccess\_lookupOnline(), ilObjFileBasedLM\_lookupOnline(), ilObjSAHSLearningModuleAccess\_lookupOnline(), ilObjContentObjectAccess\_lookupOnline(), ilObjGlossary\_lookupOnline(), ilObjContentObject\_lookupOnline(), ilObjFileBasedLMAccess\_preloadData(), ilObjContentObjectAccess\_preloadData(), ilSCORM2004Tracking\_syncReadEvent(), ilChatUserActionProvider\acceptsMessages(), ilLMMenuItemsTableGUI\fillRow(), ilMailSearchCoursesMembersTableGUI\fillRow(), ilObjSAHSLearningModule\getAutoReview(), ilBuddySystemLinkButton\getHtml(), ilOnScreenChatMenuGUI\getMainMenuHTML(), ilObjUserGUI\getValues(), ilOnScreenChatAppEventListener\handleEvent(), ilContObjParser\handlerBeginTag(), ilLearningModuleDataSet\importRecord(), ilRbacReview\isProtected(), ilObjSAHSLearningModule\read(), ilObjFileBasedLM\read(), ilObjGlossary\read(), ilObjContentObject\readProperties(), ilBuddySystemGUI\requestCommand(), ilObjFileBasedLMGUI\saveProperties(), ilObjSCORMLearningModuleGUI\saveProperties(), ilObjGlossaryGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilPersonalChatSettingsFormGUI\showChatOptions(), ilSCORMOfflineMode\sop2il(), ilBuddySystemGUI\transitionAsyncCommand(), and ilObjSCORM2004LearningModule\updateSequencingSettings().

3019  {
3020  if (strtolower($a_yn) == "y") {
3021  return true;
3022  } else {
3023  return false;
3024  }
3025  }
+ Here is the caller graph for this function:

◆ zip()

static ilUtil::zip (   $a_dir,
  $a_file,
  $compress_content = false 
)
static

zips given directory/file into given zip.file

Definition at line 1741 of file class.ilUtil.php.

References $file, $name, $source, escapeShellArg(), and execQuoted().

Referenced by ilPortfolioHTMLExport\buildExportFile(), ilWikiHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilScorm2004Export\buildExportFileHTML(), ilScorm2004Export\buildExportFileHTMLOne(), ilScorm2004Export\buildExportFileSCORM(), ilQuestionpoolExport\buildExportFileXLS(), ilSurveyQuestionpoolExport\buildExportFileXML(), ilSurveyExport\buildExportFileXML(), ilQuestionpoolExport\buildExportFileXML(), ilContObjectExport\buildExportFileXML(), ilGlossaryExport\buildExportFileXML(), ilTestExport\buildExportFileXML(), ilTestArchiver\compressTestArchive(), ilAssFileUploadUploadsExporter\createFileUploadCollectionZipFile(), ilSystemStyleSkinContainer\createTempZip(), ilFileDataForumDrafts\createZipFile(), ilFileDataForum\createZipFile(), ilCertificate\deliverExportFileXML(), ilObjFolder\downloadFolder(), ilContainerGUI\downloadMultipleObjects(), ilObjStyleSheet\export(), ilExport\exportEntity(), ilObjGlossary\exportHTML(), ilObjFileBasedLMGUI\exportHTML(), ilObjContentObject\exportHTML(), ilExportContainer\exportObject(), ilExport\exportObject(), ilObjContentObject\exportSCORM(), ilScormAiccDataSet\getExtendedXmlRepresentation(), ilZipBackgroundTaskHandler\process(), ilCalendarZipJob\run(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), ilExAssignment\sendMultiFeedbackStructureFile(), ilFSStorageCourse\zipArchive(), ilFileDataCourse\zipFile(), and ilObjSAHSLearningModule\zipLmForOfflineMode().

1742  {
1743  $cdir = getcwd();
1744 
1745  if ($compress_content) {
1746  $a_dir .="/*";
1747  $pathinfo = pathinfo($a_dir);
1748  chdir($pathinfo["dirname"]);
1749  }
1750 
1751  $pathinfo = pathinfo($a_file);
1752  $dir = $pathinfo["dirname"];
1753  $file = $pathinfo["basename"];
1754 
1755  if (!$compress_content) {
1756  chdir($dir);
1757  }
1758 
1759  $zip = PATH_TO_ZIP;
1760 
1761  if (!$zip) {
1762  chdir($cdir);
1763  return false;
1764  }
1765 
1766  if (is_array($a_dir)) {
1767  $source = "";
1768  foreach ($a_dir as $dir) {
1769  $name = basename($dir);
1771  }
1772  } else {
1773  $name = basename($a_dir);
1774  if (trim($name) != "*") {
1776  } else {
1777  $source = $name;
1778  }
1779  }
1780 
1781  $zipcmd = "-r " . ilUtil::escapeShellArg($a_file) . " " . $source;
1782  ilUtil::execQuoted($zip, $zipcmd);
1783  chdir($cdir);
1784  return true;
1785  }
if($format !==null) $name
Definition: metadata.php:146
static execQuoted($cmd, $args=null)
exec command and fix spaces on windows
static escapeShellArg($a_arg)
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
$source
Definition: linkback.php:22
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $db_supports_distinct_umlauts

ilUtil::$db_supports_distinct_umlauts
staticprotected

Definition at line 23 of file class.ilUtil.php.


The documentation for this class was generated from the following file: