ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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)
 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 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)
 http redirect to other script More...
 
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 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 moveUploadedFile ($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
 move uploaded file 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 dumpVar ($mixed=null)
 Dump var. More...
 

Static Protected Member Functions

static processConvertVersion ($a_version)
 Parse convert version string, e.g. More...
 
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...
 

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 17 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 4656 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().

4657  {
4658 
4659  $test_str = explode('_',$ilias_id);
4660 
4661  if ($test_str[0] == 'il' && $test_str[1] == $inst_id && count($test_str) == 4)
4662  {
4663  $test2 = (int) $test_str[3];
4664  return is_numeric ($test2) ? (int) $test2 : false;
4665  }
4666  return false;
4667  }
+ 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 4633 of file class.ilUtil.php.

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

4634  {
4635 
4636  $test_str = explode('_',$role_title);
4637 
4638  if ($test_str[0] == 'il')
4639  {
4640  $test2 = (int) $test_str[3];
4641  return is_numeric ($test2) ? (int) $test2 : false;
4642  }
4643  return false;
4644  }
+ Here is the caller graph for this function:

◆ _getHttpPath()

static ilUtil::_getHttpPath ( )
static

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

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

Referenced by ilMail\appendInstallationSignature(), ilMail\getEmailRecipients(), ilChatroomAdminViewGUI\getReadmePath(), ilSoapClient\init(), ilSendMailActivity\processPlaceholders(), ilCronManager\runActiveJobs(), ilMailSummaryNotification\send(), ilDiskQuotaSummaryNotification\send(), ilCronDeleteInactiveUserReminderMail\sendReminder(), and ilForumMailNotification\setIsCronjob().

4923  {
4924  global $ilIliasIniFile;
4925 
4926  if($_SERVER['SHELL'] || php_sapi_name() == 'cli' ||
4927  // fallback for windows systems, useful in crons
4928  (class_exists("ilContext") && !ilContext::usesHTTP()))
4929  {
4930  return $ilIliasIniFile->readVariable('server', 'http_path');
4931  }
4932  else
4933  {
4934  return ILIAS_HTTP_PATH;
4935  }
4936  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static usesHTTP()
Uses HTTP aka browser.
$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 4289 of file class.ilUtil.php.

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

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

4290  {
4291  global $ilDB,$rbacreview,$ilAccess,$ilUser,$ilias,$tree;
4292 
4293  if(!is_array($a_obj_type))
4294  {
4295  $where = "WHERE type = ".$ilDB->quote($a_obj_type, "text")." ";
4296  }
4297  else
4298  {
4299  $where = "WHERE ".$ilDB->in("type", $a_obj_type, false, "text")." ";
4300  }
4301 
4302  // limit number of results default is search result limit
4303  if(!$limit)
4304  {
4305  $limit = $ilias->getSetting('search_max_hits',100);
4306  }
4307  if($limit == -1)
4308  {
4309  $limit = 10000;
4310  }
4311 
4312  // default to logged in usr
4313  $a_usr_id = $a_usr_id ? $a_usr_id : $ilUser->getId();
4314  $a_roles = $rbacreview->assignedRoles($a_usr_id);
4315 
4316  // Since no rbac_pa entries are available for the system role. This function returns !all! ref_ids in the case the user
4317  // is assigned to the system role
4318  if($rbacreview->isAssigned($a_usr_id,SYSTEM_ROLE_ID))
4319  {
4320  $query = "SELECT ref_id FROM object_reference obr LEFT JOIN object_data obd ON obr.obj_id = obd.obj_id ".
4321  "LEFT JOIN tree ON obr.ref_id = tree.child ".
4322  $where.
4323  "AND tree = 1";
4324 
4325  $res = $ilDB->query($query);
4326  $counter = 0;
4327  while($row = $ilDB->fetchObject($res))
4328  {
4329  // Filter recovery folder
4330  if($tree->isGrandChild(RECOVERY_FOLDER_ID, $row->ref_id))
4331  {
4332  continue;
4333  }
4334 
4335  if($counter++ >= $limit)
4336  {
4337  break;
4338  }
4339 
4340  $ref_ids[] = $row->ref_id;
4341  }
4342  return $ref_ids ? $ref_ids : array();
4343  } // End Administrators
4344 
4345  // Check ownership if it is not asked for edit_permission or a create permission
4346  if($a_operation == 'edit_permissions' or strpos($a_operation,'create') !== false)
4347  {
4348  $check_owner = ") ";
4349  }
4350  else
4351  {
4352  $check_owner = "OR owner = ".$ilDB->quote($a_usr_id, "integer").") ";
4353  }
4354 
4355  $ops_ids = ilRbacReview::_getOperationIdsByName(array($a_operation));
4356  $ops_id = $ops_ids[0];
4357 
4358  $and = "AND ((".$ilDB->in("rol_id", $a_roles, false, "integer")." ";
4359 
4360  $query = "SELECT DISTINCT(obr.ref_id),obr.obj_id,type FROM object_reference obr ".
4361  "JOIN object_data obd ON obd.obj_id = obr.obj_id ".
4362  "LEFT JOIN rbac_pa ON obr.ref_id = rbac_pa.ref_id ".
4363  $where.
4364  $and.
4365  "AND (".$ilDB->like("ops_id", "text","%i:".$ops_id."%"). " ".
4366  "OR ".$ilDB->like("ops_id", "text", "%:\"".$ops_id."\";%").")) ".
4367  $check_owner;
4368 
4369  $res = $ilDB->query($query);
4370  $counter = 0;
4371  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
4372  {
4373  if($counter >= $limit)
4374  {
4375  break;
4376  }
4377 
4378  // Filter objects in recovery folder
4379  if($tree->isGrandChild(RECOVERY_FOLDER_ID, $row->ref_id))
4380  {
4381  continue;
4382  }
4383 
4384  // Check deleted, hierarchical access ...
4385  if($ilAccess->checkAccessOfUser($a_usr_id,$a_operation,'',$row->ref_id,$row->type,$row->obj_id))
4386  {
4387  $counter++;
4388  $ref_ids[] = $row->ref_id;
4389  }
4390  }
4391  return $ref_ids ? $ref_ids : array();
4392  }
static _getOperationIdsByName($operations)
get ops_id&#39;s by name.
$counter
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
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 5145 of file class.ilUtil.php.

5146  {
5147  return 1024;
5148  }

◆ _sanitizeFilemame()

static ilUtil::_sanitizeFilemame (   $a_filename)
static

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

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

4918  {
4919  return strip_tags(self::stripSlashes($a_filename));
4920  }
+ 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 4683 of file class.ilUtil.php.

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

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

4684  {
4685  global $ilDB;
4686 
4687  if(!$a_ids)
4688  {
4689  return array();
4690  }
4691 
4692  // use database to sort user array
4693  $where = "WHERE ".$a_id_name." IN (";
4694  $where .= implode(",", ilUtil::quoteArray($a_ids));
4695  $where .= ") ";
4696 
4697  $query = "SELECT ".$a_id_name." FROM ".$a_table." ".
4698  $where.
4699  "ORDER BY ".$a_field;
4700 
4701  $res = $ilDB->query($query);
4702  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
4703  {
4704  $ids[] = $row->$a_id_name;
4705  }
4706  return $ids ? $ids : array();
4707  }
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 2366 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().

2367  {
2368  $amp = $xml_style
2369  ? "&amp;"
2370  : "&";
2371 
2372  $url = (is_int(strpos($a_url, "?")))
2373  ? $a_url.$amp.$a_par
2374  : $a_url."?".$a_par;
2375 
2376  return $url;
2377  }
$url
Definition: shib_logout.php:72
+ 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 4024 of file class.ilUtil.php.

References $data, and array.

Referenced by ilObjRoleTemplateGUI\permObject().

4025  {
4026  if (empty($data))
4027  {
4028  $data = array();
4029  }
4030 
4031  foreach($data as $k=>$datum)
4032  {
4033  if(is_null($datum)) $data[$k] = 'null';
4034  if(is_string($datum)) $data[$k] = "'" . $datum . "'";
4035  if(is_array($datum)) $data[$k] = array_php2js($datum);
4036  }
4037 
4038  return "[" . implode(', ', $data) . "]";
4039  }
Create styles array
The data for the language used.
static array_php2js($data)
convert php arrays to javascript arrays
+ Here is the caller graph for this function:

◆ assembleParameterString()

static ilUtil::assembleParameterString (   $a_par_arr)
static

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

References $target_arr, and array.

Referenced by ilMediaItem\getParameterString().

3191  {
3192  if (is_array($a_par_arr))
3193  {
3194  $target_arr = array();
3195  foreach ($a_par_arr as $par => $val)
3196  {
3197  $target_arr[] = "$par=\"$val\"";
3198  }
3199  $target_str = implode(", ", $target_arr);
3200  }
3201 
3202  return $target_str;
3203  }
$target_arr
Definition: goto.php:49
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 1530 of file class.ilUtil.php.

References array.

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

1531  {
1532  $attribs = array();
1533  while (is_int(strpos($a_str, "=")))
1534  {
1535  $eq_pos = strpos($a_str, "=");
1536  $qu1_pos = strpos($a_str, "\"");
1537  $qu2_pos = strpos(substr($a_str, $qu1_pos + 1), "\"") + $qu1_pos + 1;
1538  if (is_int($eq_pos) && is_int($qu1_pos) && is_int($qu2_pos))
1539  {
1540  $var = trim(substr($a_str, 0, $eq_pos));
1541  $val = trim(substr($a_str, $qu1_pos + 1, ($qu2_pos - $qu1_pos) - 1));
1542  $attribs[$var] = $val;
1543  $a_str = substr($a_str, $qu2_pos + 1);
1544  }
1545  else
1546  {
1547  $a_str = "";
1548  }
1549  }
1550  return $attribs;
1551  }
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 4418 of file class.ilUtil.php.

References ilMathJax\getInstance().

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

◆ Bytes2MB()

static ilUtil::Bytes2MB (   $a_value)
static

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

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

5263  {
5264  return $a_value / (pow(self::_getSizeMagnitude(), 2));
5265  }
+ Here is the caller graph for this function:

◆ checkFormEmpty()

static ilUtil::checkFormEmpty (   $emptyFields)
static

??? public

Parameters
array
Returns
string

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

650  {
651 
652  $feedback = "";
653 
654  foreach ($emptyFields as $key => $val)
655  {
656  if ($val == "") {
657  if ($feedback != "") $feedback .= ", ";
658  $feedback .= $key;
659  }
660  }
661 
662  return $feedback;
663  }

◆ checkInput()

static ilUtil::checkInput (   $vars)
static

???

Parameters
string

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

594  {
595  // TO DO:
596  // Diese Funktion soll Formfeldeingaben berprfen (empty und required)
597  }

◆ 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 2023 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().

2025  {
2026  $format_str = ($a_target_format != "")
2027  ? strtoupper($a_target_format).":"
2028  : "";
2029  $geometry = "";
2030  if ($a_geometry != "")
2031  {
2032  if (is_int(strpos($a_geometry, "x")))
2033  {
2034  $geometry = " -geometry ".$a_geometry." ";
2035  }
2036  else
2037  {
2038  $geometry = " -geometry ".$a_geometry."x".$a_geometry." ";
2039  }
2040  }
2041 
2042  $bg_color = ($a_background_color != "")
2043  ? " -background color ".$a_background_color." "
2044  : "";
2045  $convert_cmd = ilUtil::escapeShellArg($a_from)." ".$bg_color.$geometry.ilUtil::escapeShellArg($format_str.$a_to);
2046 
2047  ilUtil::execConvert($convert_cmd);
2048  }
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 4597 of file class.ilUtil.php.

4598  {
4599  if( is_numeric($phpIniSizeValue) )
4600  {
4601  return $phpIniSizeValue;
4602  }
4603 
4604  $suffix = substr($phpIniSizeValue, -1);
4605  $value = substr($phpIniSizeValue, 0, -1);
4606 
4607  switch( strtoupper($suffix) )
4608  {
4609  case 'P':
4610  $value *= 1024;
4611  case 'T':
4612  $value *= 1024;
4613  case 'G':
4614  $value *= 1024;
4615  case 'M':
4616  $value *= 1024;
4617  case 'K':
4618  $value *= 1024;
4619  break;
4620  }
4621 
4622  return $value;
4623  }

◆ createDirectory()

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

create directory

deprecated use makeDir() instead!

Definition at line 1731 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().

1732  {
1733  ilUtil::makeDir($a_dir);
1734  //@mkdir($a_dir);
1735  //@chmod($a_dir, $a_mod);
1736  }
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 1926 of file class.ilUtil.php.

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

Referenced by ilScorm2004Export\buildExportFileISO().

1927  {
1928  $cdir = getcwd();
1929 
1930  $pathinfo = pathinfo($a_dir);
1931  chdir($pathinfo["dirname"]);
1932 
1933  $pathinfo = pathinfo($a_file);
1934  $dir = $pathinfo["dirname"];
1935  $file = $pathinfo["basename"]; $zipcmd = "-r ".ilUtil::escapeShellArg($a_file)." ".$source;
1936 
1937  $mkisofs = PATH_TO_MKISOFS;
1938  if(!$mkisofs)
1939  {
1940  chdir($cdir);
1941  return false;
1942  }
1943 
1944  $name = basename($a_dir);
1945  $source = ilUtil::escapeShellArg($name);
1946 
1947  $zipcmd = "-r -J -o ".$a_file." ".$source;
1948  ilUtil::execQuoted($mkisofs, $zipcmd);
1949  chdir($cdir);
1950  return true;
1951  }
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
+ 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 4164 of file class.ilUtil.php.

Referenced by ilFileXMLWriter\start().

4164  {
4165  list($datum, $uhrzeit) = explode (" ",$mysql_date_time);
4166  list($jahr, $monat, $tag) = explode("-", $datum);
4167  list($std, $min, $sec) = explode(":", $uhrzeit);
4168  return mktime ((int) $std, (int) $min, (int) $sec, (int) $monat, (int) $tag, (int) $jahr);
4169  }
+ 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 3544 of file class.ilUtil.php.

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

3545  {
3546  if (($a_mime == "image/gif") || ($a_mime == "image/jpeg") ||
3547  ($a_mime == "image/png") || ($a_mime == "application/x-shockwave-flash") ||
3548  ($a_mime == "image/tiff") || ($a_mime == "image/x-ms-bmp") ||
3549  ($a_mime == "image/psd") || ($a_mime == "image/iff"))
3550  {
3551  return true;
3552  }
3553  else
3554  {
3555  return false;
3556  }
3557  }
+ 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
stringdir to delete
Author
Unknown flexe.nosp@m.r@cu.nosp@m.tephp.nosp@m..com (source: http://www.php.net/rmdir)

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

References $file, $files, array, and file.

Referenced by ilFileDataMail\__deleteAttachmentDirectory(), ilObjTest\_createImportDirectory(), assSingleChoice\afterSyncWithOriginal(), assMatchingQuestion\afterSyncWithOriginal(), 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(), ilLMMultiSrt\clearMultiSrtDirectory(), ilObjMediaObject\clearMultiSrtDirectory(), ilSetup\cloneFromSource(), ilTestExportGUI\createTestArchiveExport(), ilUpdateUtils\delDir(), ilObjAICCLearningModule\delete(), ilObjMediaObject\delete(), ilFileDataForumDrafts\delete(), ilObjFileBasedLM\delete(), ilFileSystemStorage5069\delete(), ilFileSystemStorage\delete(), ilBadgeImageTemplate\delete(), ilObjSurvey\delete(), ilExportGUI\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\deliverFile(), ilFileDataForum\deliverFile(), ilObjFile\doDelete(), ilExSubmission\downloadAllAssignmentFiles(), ilObjWorkspaceFolder\downloadFolder(), 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(), ilTestExportGUI\listExportFiles(), ilZipBackgroundTaskHandler\process(), ilExSubmission\processUploadedZipFile(), ilFileUtils\processZipFile(), assKprimChoice\removeAnswerImage(), ilAssFileUploadUploadsExporter\removeFileUploadCollection(), ilObjTest\removeTestResultsByActiveIds(), assSingleChoice\savePreviewData(), ilObjFileGUI\saveUnzip(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), assSingleChoice\syncImages(), assMultipleChoice\syncImages(), assQuestion\syncSuggestedSolutionFiles(), ilFileDataImportMail\unlinkLast(), unzip(), ilSetup\updateNewClient(), ilObjHelpSettings\uploadHelpModule(), ilExAssignment\uploadMultiFeedbackFile(), ilLMMultiSrt\uploadMultipleSubtitleFile(), ilObjMediaObject\uploadMultipleSubtitleFile(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjTestGUI\uploadTstObject(), and assMultipleChoice\validateSolutionSubmit().

2502  {
2503  if (!is_dir($a_dir) || is_int(strpos($a_dir, "..")))
2504  {
2505  return;
2506  }
2507 
2508  $current_dir = opendir($a_dir);
2509 
2510  $files = array();
2511 
2512  // this extra loop has been necessary because of a strange bug
2513  // at least on MacOS X. A looped readdir() didn't work
2514  // correctly with larger directories
2515  // when an unlink happened inside the loop. Getting all files
2516  // into the memory first solved the problem.
2517  while($entryname = readdir($current_dir))
2518  {
2519  $files[] = $entryname;
2520  }
2521 
2522  foreach($files as $file)
2523  {
2524  if(is_dir($a_dir."/".$file) and ($file != "." and $file!=".."))
2525  {
2526  ilUtil::delDir(${a_dir}."/".${file});
2527  }
2528  elseif ($file != "." and $file != "..")
2529  {
2530  unlink(${a_dir}."/".${file});
2531  }
2532  }
2533 
2534  closedir($current_dir);
2535  if (!$a_clean_only)
2536  {
2537  @rmdir(${a_dir});
2538  }
2539  }
$files
Definition: add-vimline.php:18
Reload workbook from saved file
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 2115 of file class.ilUtil.php.

References 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(), ilForumExportGUI\executeCommand(), ilBookmarkAdministrationGUI\export(), ilSurveyParticipantsGUI\exportAllCodesObject(), ilAccountCodesGUI\exportCodes(), ilRegistrationSettingsGUI\exportCodes(), ilSurveyParticipantsGUI\exportCodesObject(), ilSessionOverviewGUI\exportCSV(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilSurveyEvaluationGUI\exportEvaluationUser(), ilObjLinkResourceGUI\exportHTML(), ilECSSettingsGUI\exportImported(), ilObjAssessmentFolderGUI\exportLogObject(), ilNoteGUI\exportNotesHTML(), ilECSSettingsGUI\exportReleased(), ilDidacticTemplateSettingsGUI\exportTemplate(), ilTestExport\exportToCSV(), ilCalendarRemoteAccessHandler\handleRequest(), ilCertificate\outCertificate(), and ilPageObject\send_paragraph().

2116  {
2117  $disposition = "attachment"; // "inline" to view file in browser or "attachment" to download to hard disk
2118  // $mime = "application/octet-stream"; // or whatever the mime type is
2119 
2120  include_once './Services/Http/classes/class.ilHTTPS.php';
2121 
2122  //if($_SERVER['HTTPS'])
2123  if( ilHTTPS::getInstance()->isDetected() )
2124  {
2125 
2126  // Added different handling for IE and HTTPS => send pragma after content informations
2130  #header("Pragma: ");
2131  #header("Cache-Control: ");
2132  #header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
2133  #header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
2134  #header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
2135  #header("Cache-Control: post-check=0, pre-check=0", false);
2136  }
2137  else if ($disposition == "attachment")
2138  {
2139  header("Cache-control: private");
2140  }
2141  else
2142  {
2143  header("Cache-Control: no-cache, must-revalidate");
2144  header("Pragma: no-cache");
2145  }
2146 
2147  $ascii_filename = ilUtil::getASCIIFilename($a_filename);
2148 
2149  if (strlen($charset))
2150  {
2151  $charset = "; charset=$charset";
2152  }
2153  header("Content-Type: $mime$charset");
2154  header("Content-Disposition:$disposition; filename=\"".$ascii_filename."\"");
2155  header("Content-Description: ".$ascii_filename);
2156  header("Content-Length: ".(string)(strlen($a_data)));
2157 
2158  //if($_SERVER['HTTPS'])
2159  if( ilHTTPS::getInstance()->isDetected() )
2160  {
2161  header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
2162  header('Pragma: public');
2163  }
2164 
2165  header("Connection: close");
2166  echo $a_data;
2167  exit;
2168  }
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
Add a drawing to the header
Definition: 04printing.php:69
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 2178 of file class.ilUtil.php.

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

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(), ilBookingObjectGUI\deliverPostFile(), ilExportGUI\download(), ilExSubmission\downloadAllAssignmentFiles(), ilCourseArchivesGUI\downloadArchives(), 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(), ilExSubmissionGUI\downloadFileObject(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilObjFolderGUI\downloadFolderObject(), ilExSubmissionGUI\downloadGlobalFeedbackFileObject(), ilExAssignmentEditorGUI\downloadGlobalFeedbackFileObject(), ilExSubmission\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilObjContentObjectGUI\downloadPDFFile(), ilExPeerReviewGUI\downloadPeerReviewObject(), ilSCORM2004ScoGUI\downloadResource(), ilExSubmission\downloadSingleFile(), ilSAHSEditGUI\executeCommand(), ilSCORMOfflineModeGUI\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().

2180  {
2181  // should we fail silently?
2182  if(!file_exists($a_file))
2183  {
2184  return false;
2185  }
2186 
2187  if ($isInline) {
2188  $disposition = "inline"; // "inline" to view file in browser
2189  } else {
2190  $disposition = "attachment"; // "attachment" to download to hard disk
2191  //$a_mime = "application/octet-stream"; // override mime type to ensure that no browser tries to show the file anyway.
2192  }
2193  // END WebDAV: Show file in browser or provide it as attachment
2194 
2195  if(strlen($a_mime))
2196  {
2197  $mime = $a_mime;
2198  }
2199  else
2200  {
2201  $mime = "application/octet-stream"; // or whatever the mime type is
2202  }
2203  // BEGIN WebDAV: Removed broken HTTPS code.
2204  // END WebDAV: Removed broken HTTPS code.
2205  if ($disposition == "attachment")
2206  {
2207  header("Cache-control: private");
2208  }
2209  else
2210  {
2211  header("Cache-Control: no-cache, must-revalidate");
2212  header("Pragma: no-cache");
2213  }
2214 
2215  $ascii_filename = ilUtil::getASCIIFilename($a_filename);
2216 
2217  header("Content-Type: $mime");
2218  header("Content-Disposition:$disposition; filename=\"".$ascii_filename."\"");
2219  header("Content-Description: ".$ascii_filename);
2220 
2221  // #7271: if notice gets thrown download will fail in IE
2222  $filesize = @filesize($a_file);
2223  if ($filesize)
2224  {
2225  header("Content-Length: ".(string)$filesize);
2226  }
2227 
2228  include_once './Services/Http/classes/class.ilHTTPS.php';
2229  #if($_SERVER['HTTPS'])
2230  if(ilHTTPS::getInstance()->isDetected())
2231  {
2232  header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
2233  header('Pragma: public');
2234  }
2235 
2236  header("Connection: close");
2237  ilUtil::readFile( $a_file );
2238  if ($removeAfterDelivery)
2239  {
2240  unlink ($a_file);
2241  }
2242  if ($a_exit_after)
2243  {
2244  exit;
2245  }
2246  }
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
Add a drawing to the header
Definition: 04printing.php:69
static getInstance()
Get https instance.
static readFile($a_file)
there are some known problems with the original readfile method, which sometimes truncates delivered ...
+ Here is the call graph for this function:
+ 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 4856 of file class.ilUtil.php.

References $size.

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

4857  {
4858  $size = 0;
4859  if (!is_dir($directory))
4860  {
4861  // BEGIN DiskQuota Suppress PHP warning when attempting to determine
4862  // dirsize of non-existing directory
4863  $size = @filesize($directory);
4864  // END DiskQuota Suppress PHP warning.
4865  return ($size === false) ? -1 : $size;
4866  }
4867  if ($DIR = opendir($directory))
4868  {
4869  while (($dirfile = readdir($DIR)) !== false)
4870  {
4871  if (is_link($directory . DIRECTORY_SEPARATOR . $dirfile) || $dirfile == '.' || $dirfile == '..')
4872  continue;
4873  if (is_file($directory . DIRECTORY_SEPARATOR . $dirfile))
4874  $size += filesize($directory . DIRECTORY_SEPARATOR . $dirfile);
4875  else if (is_dir($directory . DIRECTORY_SEPARATOR . $dirfile))
4876  {
4877  // BEGIN DiskQuota: dirsize is not a global function anymore
4878  $dirSize = ilUtil::dirsize($directory . DIRECTORY_SEPARATOR . $dirfile);
4879  // END DiskQuota: dirsize is not a global function anymore
4880  if ($dirSize >= 0)
4881  $size += $dirSize;
4882  else return -1;
4883  }
4884  }
4885  closedir($DIR);
4886  }
4887  return $size;
4888  }
$size
Definition: RandomTest.php:79
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 3211 of file class.ilUtil.php.

References $ret.

3212  {
3213  $ret = $a_str.": ";
3214  for($i=0; $i<strlen($a_str); $i++)
3215  {
3216  $ret.= ord(substr($a_str,$i,1))." ";
3217  }
3218  return $ret;
3219  }
$ret
Definition: parser.php:6

◆ dumpVar()

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

Dump var.

Parameters
null$mixed

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

5273  {
5274  echo '<pre>';
5275  var_dump($mixed);
5276  echo '</pre>';
5277  }

◆ escapeShellArg()

static ilUtil::escapeShellArg (   $a_arg)
static

◆ escapeShellCmd()

static ilUtil::escapeShellCmd (   $a_arg)
static

escape shell cmd

public

Parameters

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

Referenced by ilImagemapPreview\createPreview().

3714  {
3715  if(ini_get('safe_mode') == 1)
3716  {
3717  return $a_arg;
3718  }
3719  setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8"); // fix for PHP escapeshellcmd bug. See: http://bugs.php.net/bug.php?id=45132
3720  return escapeshellcmd($a_arg);
3721  }
+ 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 3789 of file class.ilUtil.php.

References time.

3790  {
3791  $starting_time = mktime(0, 0, 0, 1, 2, 1970);
3792  if (strcmp("$year$month$day$hour$minute$second", "") == 0)
3793  {
3794  $target_time = time();
3795  }
3796  else
3797  {
3798  if ($year < 1970)
3799  {
3800  return 0;
3801  }
3802  }
3803  $target_time = mktime($hour, $minute, $second, $month, $day, $year);
3804  $difference = $target_time - $starting_time;
3805  $days = (($difference - ($difference % 86400)) / 86400);
3806  $difference = $difference - ($days * 86400) + 3600;
3807 
3808  // #15343 - using a global locale leads to , instead of . for (implicit) floats
3809  return str_replace(",", ".", ($days + 25570 + ($difference / 86400)));
3810  }
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 1973 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().

1974  {
1975  ilUtil::execQuoted(PATH_TO_CONVERT, $args);
1976  }
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 3732 of file class.ilUtil.php.

References $cmd, $ilLog, and isWindows().

Referenced by CreateIsoFromFolder(), ilFFmpeg\exec(), execConvert(), isConvertVersionAtLeast(), ilGhostscriptRenderer\renderImages(), unzip(), and zip().

3733  {
3734  global $ilLog;
3735 
3736  if(ilUtil::isWindows() && strpos($cmd, " ") !== false && substr($cmd, 0, 1) !== '"')
3737  {
3738  // cmd won't work without quotes
3739  $cmd = '"'.$cmd.'"';
3740  if($args)
3741  {
3742  // args are also quoted, workaround is to quote the whole command AGAIN
3743  // was fixed in php 5.2 (see php bug #25361)
3744  if (version_compare(phpversion(), "5.2", "<") && strpos($args, '"') !== false)
3745  {
3746  $cmd = '"'.$cmd." ".$args.'"';
3747  }
3748  // args are not quoted or php is fixed, just append
3749  else
3750  {
3751  $cmd .= " ".$args;
3752  }
3753  }
3754  }
3755  // nothing todo, just append args
3756  else if($args)
3757  {
3758  $cmd .= " ".$args;
3759  }
3760 //ilUtil::printBacktrace(5);
3761 //echo "<br>".$cmd; exit;
3762  exec($cmd, $arr);
3763 // $ilLog->write("ilUtil::execQuoted: ".$cmd.".");
3764  return $arr;
3765  }
$cmd
Definition: sahs_server.php:35
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 3143 of file class.ilUtil.php.

References $ok, and array.

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

3144  {
3145  // parse parameters in array
3146  $par = array();
3147  $ok=true;
3148  while(($spos=strpos($a_parstr,"=")) && $ok)
3149  {
3150  // extract parameter
3151  $cpar = substr($a_parstr,0,$spos);
3152  $a_parstr = substr($a_parstr,$spos,strlen($a_parstr)-$spos);
3153  while(substr($cpar,0,1)=="," ||substr($cpar,0,1)==" " || substr($cpar,0,1)==chr(13) || substr($cpar,0,1)==chr(10))
3154  $cpar = substr($cpar,1,strlen($cpar)-1);
3155  while(substr($cpar,strlen($cpar)-1,1)==" " || substr($cpar,strlen($cpar)-1,1)==chr(13) || substr($cpar,strlen($cpar)-1,1)==chr(10))
3156  $cpar = substr($cpar,0,strlen($cpar)-1);
3157 
3158  // parameter name should only
3159  $cpar_old = "";
3160  while($cpar != $cpar_old)
3161  {
3162  $cpar_old = $cpar;
3163  $cpar = preg_replace("/[^a-zA-Z0-9_]/i", "", $cpar);
3164  }
3165 
3166  // extract value
3167  if ($cpar != "")
3168  {
3169  if($spos=strpos($a_parstr,"\""))
3170  {
3171  $a_parstr = substr($a_parstr,$spos+1,strlen($a_parstr)-$spos);
3172  $spos=strpos($a_parstr,"\"");
3173  if(is_int($spos))
3174  {
3175  $cval = substr($a_parstr,0,$spos);
3176  $par[$cpar]=$cval;
3177  $a_parstr = substr($a_parstr,$spos+1,strlen($a_parstr)-$spos-1);
3178  }
3179  else
3180  $ok=false;
3181  }
3182  else
3183  $ok=false;
3184  }
3185  }
3186 
3187  if($ok) return $par; else return false;
3188  }
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 5163 of file class.ilUtil.php.

References $lng, and $txt.

5164  {
5165  global $lng;
5166 
5167  if ($a_dec_point == null) {
5168  {
5169  $a_dec_point = ".";
5170  }
5171  }
5172  if ($a_dec_point == '-lang_sep_decimal-') {
5173  $a_dec_point = ".";
5174  }
5175 
5176  if ($a_thousands_sep == null) {
5177  $a_thousands_sep = $lng->txt('lang_sep_thousand');
5178  }
5179  if ($a_thousands_sep == '-lang_sep_thousand-') {
5180  $a_thousands_sep = ",";
5181  }
5182 
5183  $txt = number_format($a_float, $a_decimals, $a_dec_point, $a_thousands_sep);
5184 
5185  // remove trailing ".0"
5186  if (($a_suppress_dot_zero == 0 || $a_decimals == 0)
5187  && substr($txt, - 2) == $a_dec_point . '0'
5188  ) {
5189  $txt = substr($txt, 0, strlen($txt) - 2);
5190  }
5191  if ($a_float == 0 and $txt == "") {
5192  $txt = "0";
5193  }
5194 
5195  return $txt;
5196  }
$txt
Definition: error.php:12
global $lng
Definition: privfeed.php:17

◆ formatBytes()

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

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

References $size, and array.

4576  {
4577  $unit = array('', 'K', 'M', 'G', 'T', 'P');
4578 
4579  for($i = 0, $maxUnits = count($unit); $size >= 1024 && $i <= $maxUnits; $i++)
4580  {
4581  $size /= 1024;
4582  }
4583 
4584  return round($size, $decimals).$unit[$i];
4585  }
$size
Definition: RandomTest.php:79
Create styles array
The data for the language used.

◆ 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 5214 of file class.ilUtil.php.

References $lng, $result, and $size.

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

5215  {
5216  global $lng;
5217  if ($a_lng == null) {
5218  $a_lng = $lng;
5219  }
5220 
5221  $mag = self::_getSizeMagnitude();
5222 
5223  if ($size >= $mag * $mag * $mag) {
5224  $scaled_size = $size / $mag / $mag / $mag;
5225  $scaled_unit = 'lang_size_gb';
5226  } else {
5227  if ($size >= $mag * $mag) {
5228  $scaled_size = $size / $mag / $mag;
5229  $scaled_unit = 'lang_size_mb';
5230  } else {
5231  if ($size >= $mag) {
5232  $scaled_size = $size / $mag;
5233  $scaled_unit = 'lang_size_kb';
5234  } else {
5235  $scaled_size = $size;
5236  $scaled_unit = 'lang_size_bytes';
5237  }
5238  }
5239  }
5240 
5241  $result = self::fmtFloat($scaled_size, ($scaled_unit
5242  == 'lang_size_bytes') ? 0 : 1, $a_lng->txt('lang_sep_decimal'), $a_lng->txt('lang_sep_thousand'), true)
5243  . ' ' . $a_lng->txt($scaled_unit);
5244  if ($a_mode == 'long' && $size > $mag) {
5245  $result .= ' (' . self::fmtFloat($size, 0, $a_lng->txt('lang_sep_decimal'), $a_lng->txt('lang_sep_thousand')) . ' '
5246  . $a_lng->txt('lang_size_bytes') . ')';
5247  }
5248 
5249  return $result;
5250  }
$size
Definition: RandomTest.php:79
$result
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 451 of file class.ilUtil.php.

Referenced by ilObjCategoryGUI\_importCategoriesForm(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\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(), ilMailTemplateTableGUI\formatCellValue(), ilStartUpGUI\getAcceptance(), ilObjForumGUI\getUserNotificationTableData(), ilForumTopicTableGUI\initMergeThreadsTable(), ilObjRoleGUI\listUsersRoleObject(), ilNestedListInputGUI\render(), ilMailingListsGUI\showMailingLists(), ilMailingListsGUI\showMembersList(), ilMailSearchGUI\showResults(), and ilCourseArchivesGUI\view().

452  {
453  $str = "<input type=\"checkbox\" name=\"".$varname."\"";
454 
455  if ($checked == 1)
456  {
457  $str .= " checked=\"checked\"";
458  }
459 
460  if ($disabled)
461  {
462  $str .= " disabled=\"disabled\"";
463  }
464 
465  $array_var = false;
466 
467  if (substr($varname,-2) == "[]")
468  {
469  $array_var = true;
470  }
471 
472  // if varname ends with [], use varname[-2] + _ + value as id tag (e.g. "user_id[]" => "user_id_15")
473  if ($array_var)
474  {
475  $varname_id = substr($varname,0,-2)."_".$value;
476  }
477  else
478  {
479  $varname_id = $varname;
480  }
481 
482  // dirty removal of other "[]" in string
483  $varname_id = str_replace("[","_",$varname_id);
484  $varname_id = str_replace("]","",$varname_id);
485 
486  $str .= " value=\"".$value."\" id=\"".$varname_id."\" />\n";
487 
488  return $str;
489  }
+ Here is the caller graph for this function:

◆ formDisabledRadioButton()

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

???

Parameters
string

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

503  {
504  if ($disabled) {
505  $str = "<input disabled type=\"radio\" name=\"".$varname."\"";
506  }
507  else {
508  $str = "<input type=\"radio\" name=\"".$varname."\"";
509  }
510  if ($checked == 1)
511  {
512  $str .= " checked=\"checked\"";
513  }
514 
515  $str .= " value=\"".$value."\"";
516  $str .= " id=\"".$value."\" />\n";
517 
518  return $str;
519 
520  }

◆ 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 570 of file class.ilUtil.php.

Referenced by ilChatroomSmiliesTableGUI\fillRow().

571  {
572 
573  $str = "<input type=\"input\" name=\"".$varname."\"";
574  if ($disabled)
575  {
576  $str .= " disabled";
577  }
578 
579  $str .= " value=\"".$value."\"";
580 
581  $str .= " id=\"".$value."\" />\n";
582 
583  return $str;
584  }
+ 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 533 of file class.ilUtil.php.

Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilWorkspaceExplorer\buildFormItem(), ilForumTopicTableGUI\initMergeThreadsTable(), and ilObjRoleTemplateGUI\permObject().

534  {
535  $str = '<input ';
536 
537  if($onclick)
538  {
539  $str .= ('onclick="'.$onclick.'"');
540  }
541 
542  $str .= (" type=\"radio\" name=\"".$varname."\"");
543  if ($checked == 1)
544  {
545  $str .= " checked=\"checked\"";
546  }
547 
548  if ($disabled)
549  {
550  $str .= " disabled=\"disabled\"";
551  }
552 
553  $str .= " value=\"".$value."\"";
554 
555  $str .= " id=\"".$value."\" />\n";
556 
557  return $str;
558  }
+ 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 343 of file class.ilUtil.php.

References $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(), ilImportantPagesTableGUI\fillRow(), ilPCImageMapTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilPCIIMTriggerTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\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().

345  {
346  global $lng;
347 
348  if ($multiple == true)
349  {
350  $multiple = " multiple=\"multiple\"";
351  }
352  else
353  {
354  $multiple = "";
355  $size = 0;
356  }
357 
358  $class = " class=\" form-control ".$style_class."\"";
359 
360  // use form-inline!
361  // this is workaround the whole function should be set deprecated
362  // $attributes = " style='display:inline-block;' ";
363 
364  if (is_array($attribs))
365  {
366  foreach ($attribs as $key => $val)
367  {
368  $attributes .= " ".$key."=\"".$val."\"";
369  }
370  }
371  if($disabled)
372  {
373  $disabled = ' disabled=\"disabled\"';
374  }
375 
376  $str = "<select name=\"".$varname ."\"".$multiple." $class size=\"".$size."\" $attributes $disabled>\n";
377 
378  foreach ((array) $options as $key => $val)
379  {
380  $style = "";
381  if (is_array($val))
382  {
383  $style = $val["style"];
384  $val = $val["text"]; // mus be last line, since we overwrite
385  }
386 
387  $sty = ($style != "")
388  ? ' style="'.$style.'" '
389  : "";
390 
391  if ($direct_text)
392  {
393  $str .= " <option $sty value=\"".$key."\"";
394  }
395  else
396  {
397  $str .= " <option $sty value=\"".$val."\"";
398  }
399  if (is_array($selected) )
400  {
401  if (in_array($key,$selected))
402  {
403  $str .= " selected=\"selected\"";
404  }
405  }
406  else if ($selected == $key)
407  {
408  $str .= " selected=\"selected\"";
409  }
410 
411  if ($direct_text)
412  {
413  $str .= ">".$val."</option>\n";
414  }
415  else
416  {
417  $str .= ">".$lng->txt($val)."</option>\n";
418  }
419  }
420 
421  $str .= "</select>\n";
422 
423  return $str;
424  }
$style
Definition: example_012.php:70
$size
Definition: RandomTest.php:79
if(!is_array($argv)) $options
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
PHPExcel root directory.
Definition: Database.php:30
+ Here is the caller graph for this function:

◆ generatePasswords()

static ilUtil::generatePasswords (   $a_number)
static

Generate a number of passwords.

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

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

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

3926  {
3927  $ret = array();
3928  srand((double) microtime()*1000000);
3929 
3930  include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
3931  $security = ilSecuritySettings::_getInstance();
3932 
3933  for ($i=1; $i<=$a_number; $i++)
3934  {
3935  $min = ($security->getPasswordMinLength() > 0)
3936  ? $security->getPasswordMinLength()
3937  : 6;
3938  $max = ($security->getPasswordMaxLength() > 0)
3939  ? $security->getPasswordMaxLength()
3940  : 10;
3941  if ($min > $max)
3942  {
3943  $max = $max + 1;
3944  }
3945  $length = rand($min,$max);
3946  $next = rand(1,2);
3947  $vowels = "aeiou";
3948  $vowels_uc = strtoupper($vowels);
3949  $consonants = "bcdfghjklmnpqrstvwxyz";
3950  $consonants_uc = strtoupper($consonants);
3951  $numbers = "1234567890";
3952  $special = "_.+?#-*@!$%~";
3953  $pw = "";
3954 
3955  if($security->getPasswordNumberOfUppercaseChars() > 0)
3956  {
3957  for($j = 0; $j < $security->getPasswordNumberOfUppercaseChars(); $j++)
3958  {
3959  switch ($next)
3960  {
3961  case 1:
3962  $pw.= $consonants_uc[rand(0, strlen($consonants_uc) - 1)];
3963  $next = 2;
3964  break;
3965 
3966  case 2:
3967  $pw.= $vowels_uc[rand(0, strlen($vowels_uc) - 1)];
3968  $next = 1;
3969  break;
3970  }
3971  }
3972  }
3973 
3974  if($security->isPasswordCharsAndNumbersEnabled())
3975  {
3976  $pw.= $numbers[rand(0, strlen($numbers) - 1)];
3977  }
3978 
3979  if($security->isPasswordSpecialCharsEnabled())
3980  {
3981  $pw.= $special[rand(0, strlen($special) - 1)];
3982  }
3983 
3984  $num_lcase_chars = max($security->getPasswordNumberOfLowercaseChars(), $length - strlen($pw));
3985  for($j = 0; $j < $num_lcase_chars; $j++)
3986  {
3987  switch ($next)
3988  {
3989  case 1:
3990  $pw.= $consonants[rand(0, strlen($consonants) - 1)];
3991  $next = 2;
3992  break;
3993 
3994  case 2:
3995  $pw.= $vowels[rand(0, strlen($vowels) - 1)];
3996  $next = 1;
3997  break;
3998  }
3999  }
4000 
4001  $pw = str_shuffle($pw);
4002 
4003  $ret[] = $pw;
4004  }
4005  return $ret;
4006  }
Create styles array
The data for the language used.
$ret
Definition: parser.php:6
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 2282 of file class.ilUtil.php.

References array.

Referenced by ilTestExport\aggregatedResultsToCSV(), ilTestExport\aggregatedResultsToExcel(), ilWikiHTMLExport\buildExportFile(), ilFolderDownloadBackgroundTaskHandler\copyFile(), ilContainerGUI\copyFile(), deliverData(), deliverFile(), 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(), ilTestParticipantData\getFileSystemCompliantFullnameByActiveId(), ilVerificationObject\getOfflineFilename(), ilObjTest\getTitleFilenameCompliant(), assQuestion\getTitleFilenameCompliant(), ilAssFileUploadUploadsExporter\initFilenames(), ilDclMobRecordFieldModel\parseValue(), ilFolderDownloadBackgroundTaskHandler\recurseFolder(), ilContainerGUI\recurseFolder(), ilFileDelivery\returnASCIIFileName(), ilQtiMatImageSecurity\sanitizeLabel(), ilExAssignment\sendMultiFeedbackStructureFile(), and ilObjMediaCastGUI\updateMediaItem().

2283  {
2284  // The filename must be converted to ASCII, as of RFC 2183,
2285  // section 2.3.
2286 
2298 
2301 
2302  // #15914 - try to fix german umlauts
2303  $umlauts = array("Ä"=>"Ae", "Ö"=>"Oe", "Ãœ"=>"Ue",
2304  "ä"=>"ae", "ö"=>"oe", "ü"=>"ue", "ß"=>"ss");
2305  foreach($umlauts as $src => $tgt)
2306  {
2307  $a_filename = str_replace($src, $tgt, $a_filename);
2308  }
2309 
2310  $ascii_filename = htmlentities($a_filename, ENT_NOQUOTES, 'UTF-8');
2311  $ascii_filename = preg_replace('/\&(.)[^;]*;/', '\\1', $ascii_filename);
2312  $ascii_filename = preg_replace('/[\x7f-\xff]/', '_', $ascii_filename);
2313 
2314  // OS do not allow the following characters in filenames: \/:*?"<>|
2315  $ascii_filename = preg_replace('/[:\x5c\/\*\?\"<>\|]/', '_', $ascii_filename);
2316  return $ascii_filename;
2317  }
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 1683 of file class.ilUtil.php.

References ilObjUser\_getAssociatedUsersOnline().

Referenced by ilUsersOnlineBlockGUI\getUsers().

1684  {
1685  include_once("./Services/User/classes/class.ilObjUser.php");
1686  return ilObjUser::_getAssociatedUsersOnline($a_user_id);
1687  }
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:

◆ getConvertCmd()

static ilUtil::getConvertCmd ( )
static

get convert command

Deprecated:
See also
ilUtil::execConvert()

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

1962  {
1963  return PATH_TO_CONVERT;
1964  }

◆ getDataDir()

static ilUtil::getDataDir ( )
static

get data directory (outside webspace)

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

Referenced by ilAdvancedMDRecordExportFiles\__construct(), ilAdvancedMDRecordImportFiles\__construct(), ilObjQuestionPool\_createImportDirectory(), ilObjTest\_createImportDirectory(), ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), ilExport\_getExportDirectory(), ilObjCategoryGUI\_getImportDir(), ilFileDataMail\_lookupDiskUsageOfUser(), assLongMenu\buildFolderName(), ilObjStyleSheet\cleanExportDirectory(), ilDclPropertyFormGUI\cleanupTempFiles(), ilChatroomConfigFileHandler\createDataDirIfNotExists(), ilScorm2004Export\createExportDirectory(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjUserFolder\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(), ilSCORMOfflineModeGUI\executeCommand(), ilBcryptPasswordEncoder\getClientSaltLocation(), ilObjContentObject\getDataDirectory(), ilObjUserFolder\getExportDirectory(), ilObjSurveyQuestionPool\getExportDirectory(), ilObjContentObject\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilObjTest\getExportDirectory(), ilObjSurvey\getExportDirectory(), ilScorm2004Export\getExportDirectoryForType(), ilObjBibliographic\getFileDirectory(), ilPropertyFormGUI\getHTML(), ilMediaImageUtil\getImageSize(), ilObjUserFolderGUI\getImportDir(), ilObjContentObject\getImportDirectory(), ilObjSurveyQuestionPool\getImportDirectory(), ilObjGlossary\getImportDirectory(), ilObjSurvey\getImportDirectory(), ilLMMultiSrt\getMultiSrtUploadDir(), ilFSStorageMail\getRelativePathExMailDirectory(), ilZipBackgroundTaskHandler\getTempBasePath(), ilDclPropertyFormGUI\getTempFilename(), ilChatroomUploadFileGUI\getUploadPath(), ilMediaItem\getWorkDirectory(), ilTempnam(), ilBibliographicDataSet\importLibraryFile(), ilFileSystemStorage5069\init(), ilFileSystemStorage\init(), ilTestQuestionPoolExporter\lookupExportDirectory(), ilXmlExporter\lookupExportDirectory(), ilDclPropertyFormGUI\rebuildTempFileByHash(), ilPropertyFormGUI\rebuildUploadedFiles(), and ilObjSAHSLearningModule\zipLmForOfflineMode().

1651  {
1652  return CLIENT_DATA_DIR;
1653  //global $ilias;
1654 
1655  //return $ilias->ini->readVariable("server", "data_dir");
1656  }
+ Here is the caller graph for this function:

◆ getDir()

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

get directory

Definition at line 2548 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(), ilLMMultiSrt\getMultiSrtFiles(), ilObjMediaObject\getMultiSrtFiles(), ilObjUser\getPersonalDataExportFile(), ilObjMediaObject\getSrtFiles(), ilCertificate\importCertificate(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilFileDataForumDrafts\unlinkFilesByMD5Filenames(), ilFileDataForum\unlinkFilesByMD5Filenames(), ilFileSystemGUI\unzipFile(), ilObjHelpSettings\uploadHelpModule(), and ilExAssignment\uploadMultiFeedbackFile().

2549  {
2550  $current_dir = opendir($a_dir.$a_sub_dir);
2551 
2552  $dirs = array();
2553  $files = array();
2554  $subitems = array();
2555  while($entry = readdir($current_dir))
2556  {
2557  if(is_dir($a_dir."/".$entry))
2558  {
2559  $dirs[$entry] = array("type" => "dir", "entry" => $entry,
2560  "subdir" => $a_sub_dir);
2561  if ($a_rec && $entry != "." && $entry != "..")
2562  {
2563  $si = ilUtil::getDir($a_dir, true, $a_sub_dir."/".$entry);
2564  $subitems = array_merge($subitems, $si);
2565  }
2566  }
2567  else
2568  {
2569  if ($entry != "." && $entry != "..")
2570  {
2571  $size = filesize($a_dir.$a_sub_dir."/".$entry);
2572  $files[$entry] = array("type" => "file", "entry" => $entry,
2573  "size" => $size, "subdir" => $a_sub_dir);
2574  }
2575  }
2576  }
2577  ksort($dirs);
2578  ksort($files);
2579 
2580  return array_merge($dirs, $files, $subitems);
2581  }
$files
Definition: add-vimline.php:18
$size
Definition: RandomTest.php:79
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 4555 of file class.ilUtil.php.

References $lng.

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

4556  {
4557  $max_filesize = self::formatBytes(
4558  self::getUploadSizeLimitBytes()
4559  );
4560 
4561  global $lng;
4562  /*
4563  // get the value for the maximal uploadable filesize from the php.ini (if available)
4564  $umf=get_cfg_var("upload_max_filesize");
4565  // get the value for the maximal post data from the php.ini (if available)
4566  $pms=get_cfg_var("post_max_size");
4567 
4568  // use the smaller one as limit
4569  $max_filesize=min($umf, $pms);
4570  if (!$max_filesize) $max_filesize=max($umf, $pms);
4571  */
4572  return $lng->txt("file_notice")." $max_filesize.";
4573  }
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 3498 of file class.ilUtil.php.

Referenced by ilMediaItem\getMapWorkCopyType().

3499  {
3500  $a_desired_type = strtolower($a_desired_type);
3501  // get supported Image Types
3502  $im_types = ImageTypes();
3503 
3504  switch($a_desired_type)
3505  {
3506  case "jpg":
3507  case "jpeg":
3508  if ($im_types & IMG_JPG) return "jpg";
3509  if ($im_types & IMG_GIF) return "gif";
3510  if ($im_types & IMG_PNG) return "png";
3511  break;
3512 
3513  case "gif":
3514  if ($im_types & IMG_GIF) return "gif";
3515  if ($im_types & IMG_JPG) return "jpg";
3516  if ($im_types & IMG_PNG) return "png";
3517  break;
3518 
3519  case "png":
3520  if ($im_types & IMG_PNG) return "png";
3521  if ($im_types & IMG_JPG) return "jpg";
3522  if ($im_types & IMG_GIF) return "gif";
3523  break;
3524 
3525  case "svg":
3526  if ($im_types & IMG_PNG) return "png";
3527  if ($im_types & IMG_JPG) return "jpg";
3528  if ($im_types & IMG_GIF) return "gif";
3529  break;
3530  }
3531 
3532  return "";
3533  }
+ 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 148 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().

149  {
150  if (substr($relative_path, 0, 2) == './')
151  {
152  $relative_path = (substr($relative_path, 1));
153  }
154  if (substr($relative_path, 0, 1) != '/')
155  {
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 71 of file class.ilUtil.php.

References $_SERVER, $ilCtrl, $ilUser, and $img.

Referenced by ilPDMailBlockGUI\__construct(), ilMemcacheServerTableGUI\__construct(), ilBookmarkBlockGUI\__construct(), ilChatroomBlockGUI\__construct(), ilNoteGUI\__construct(), ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), ilLearningProgressBaseGUI\__getLegendHTML(), ilCourseContentGUI\__renderUserItem(), ilObjRoleGUI\__setHeader(), ilLocalUserGUI\__showRolesTable(), ilObject\_getIcon(), ilPlugin\_getImagePath(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilObjUser\_getPersonalPicturePath(), ilPCTableGUI\_renderTable(), ilObjForumGUI\addAutosave(), ilWikiPageGUI\addHeaderAction(), ilObjDataCollectionGUI\addHeaderAction(), ilContainerRenderer\addHeaderRow(), ilContainerGUI\addHeaderRow(), ilPDSelectedItemsBlockGUI\addHeaderRow(), ilLMChapterImportForm\addNode(), ilPDSelectedItemsBlockGUI\addParentRow(), ilContainerGUI\addStandardRow(), ilPDSelectedItemsBlockGUI\addStandardRow(), ilSystemStyleDeleteGUI\addStyle(), ilConditionHandlerGUI\askDelete(), ilCourseObjectivesGUI\askDeleteObjective(), ilPersonalSkillsGUI\assignMaterials(), ilDclRecordListTableGUI\buildData(), ilMailFolderGUI\cancelDeleteMails(), ilObjContentObjectGUI\chapters(), ilContainerGUI\cloneWizardPageObject(), ilObjForumGUI\cloneWizardPageObject(), ilMembershipGUI\confirmAssignFromWaitingList(), ilObjSessionGUI\confirmAssignFromWaitingListObject(), ilMembershipGUI\confirmAssignSubscribers(), ilObjSessionGUI\confirmAssignSubscribersObject(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilPDExternalFeedBlockGUI\confirmDeleteFeedBlock(), ilMembershipGUI\confirmDeleteParticipants(), ilObjRoleGUI\confirmDeleteRoleObject(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilMembershipGUI\confirmRefuseFromList(), ilObjSessionGUI\confirmRefuseFromListObject(), ilMembershipGUI\confirmRefuseSubscribers(), ilObjSessionGUI\confirmRefuseSubscribersObject(), ilStartUpGUI\confirmRegistration(), 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(), ilBadgeProfileGUI\executeCommand(), ilPCInteractiveImageGUI\executeCommand(), ilPortfolioRepositoryGUI\executeCommand(), ilObjSAHSLearningModuleGUI\executeCommand(), ilSCORM2004PageNodeGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilBlogPostingGUI\executeCommand(), ilPCMediaObjectGUI\executeCommand(), ilPersonalSkillsGUI\executeCommand(), ilObjContentObjectGUI\explorer(), ilSystemStyleHTMLExport\export(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilObjUserFolderGUI\exportObject(), ilTable2GUI\fillActionRow(), ilLuceneAdvancedSearchGUI\fillAdminPanel(), ilLuceneSearchGUI\fillAdminPanel(), ilTemplate\fillAdminPanel(), ilCalendarSelectionBlockGUI\fillDataSection(), ilBlockGUI\fillDetailRow(), ilTable2GUI\fillHeader(), ilBlockGUI\fillHeaderCommands(), ilCopyWizardPage\fillMainBlock(), ilConditionHandlerTableGUI\fillRow(), ilAccessPermissionsStatusTableGUI\fillRow(), ilLDAPServerTableGUI\fillRow(), ilAvailableRolesStatusTableGUI\fillRow(), ilECSServerTableGUI\fillRow(), ilBookmarkAdministrationTableGUI\fillRow(), ilAuthLoginPageEditorTableGUI\fillRow(), ilHistoryTableGUI\fillRow(), ilPollUserTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilShibbolethRoleAssignmentTableGUI\fillRow(), ilClipboardTableGUI\fillRow(), ilLDAPRoleAssignmentTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilCourseObjectiveQuestionsTableGUI\fillRow(), ilSessionMaterialsTableGUI\fillRow(), ilCalendarInboxSharedTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilCalendarSharedListTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilDclFieldListTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilSessionOverviewTableGUI\fillRow(), ilPDMailBlockGUI\fillRow(), ilFileSystemTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilTemplate\fillSideIcons(), ilClassificationBlockGUI\filterContainer(), ilSAHSPresentationGUI\finishSahs(), ilSCORMPresentationGUI\finishSahs(), assQuestion\fixUnavailableSkinImageSources(), ilAdministrationExplorer\formatHeader(), ilGlossarySelectorGUI\formatHeader(), ilFileSelectorGUI\formatHeader(), ilWorkspaceFolderExplorer\formatHeader(), ilAICCExplorer\formatObject(), ilContainerGUI\forwardToPageObject(), ilForumAuthorInformation\getAnonymousImagePath(), ilSecurImageUtil\getAudioScript(), ilChapterHierarchyFormGUI\getChildIcon(), ilHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilHierarchyFormGUI\getContent(), ilAsyncPropertyFormGUI\getErrorMessageTemplate(), ilStudyProgrammeExpandableProgressListGUI\getExpandedImageURL(), ilCloudPluginItemCreationListGUI\getGroupedListItems(), ilDclBooleanRecordRepresentation\getHTML(), ilDclFileuploadRecordRepresentation\getHTML(), ilMainMenuSearchGUI\getHTML(), ilChecklistGUI\getHTML(), ilDclTreePickInputGUI\getHtml(), ilChatroomBlockGUI\getHTML(), ilLMChapterImportForm\getHTML(), ilRatingGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), 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(), ilAwarenessGUI\getMainMenuHTML(), ilOnScreenChatMenuGUI\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(), 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(), assFileUploadGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), ilDclBaseRecordModel\getStandardFieldHTML(), ilPersonalDesktopGUI\getStandardTemplates(), ilObjGlossaryGUI\getTemplate(), assKprimChoiceGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assLongMenuGUI\getTextGapTemplate(), ilLMPresentationGUI\ilLMHead(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilMedia(), ilSCORM2004ScoGUI\import(), ilCloudPluginDeleteGUI\initDeleteItem(), ilLMPageObjectGUI\initEditLayoutForm(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilObjGroupGUI\initForm(), ilConditionHandlerGUI\initFormCondition(), ilObjForumGUI\initForumCreateForm(), ilObjGroupGUI\initHeaderAction(), ilObjBlogGUI\initHeaderAction(), ilObjCourseGUI\initHeaderAction(), ilOnScreenChatGUI\initializeFrontend(), SurveyConstraintsTableGUI\initItems(), ilObjFileGUI\initMultiUploadForm(), ilObjUserFolderGUI\initNewAccountMailForm(), ilWikiPageGUI\initPrintViewSelectionForm(), ilLMPresentationGUI\initScreenHead(), ilObjWikiGUI\initSettingsForm(), ilObjFileGUI\initSingleUploadForm(), ilCloudPluginUploadGUI\initUploadForm(), ilObjFileGUI\initZipUploadForm(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilObjectListGUI\insertIconsAndCheckboxes(), ilObjOrgUnitListGUI\insertInfoScreenCommand(), ilObjectListGUI\insertInfoScreenCommand(), ilPropertyFormGUI\insertItem(), ilCourseObjectiveListGUI\insertProgressInfo(), ilObjectListGUI\insertTitle(), ilMailFolderTableGUI\isLuceneSearchEnabled(), ilObjForumGUI\isWritingWithPseudonymAllowed(), ilAICCPresentationGUI\launchSahs(), ilSAHSPresentationGUI\launchSahs(), ilSCORMPresentationGUI\launchSahs(), ilGlossaryPresentationGUI\listDefinitions(), ilGlossaryTermGUI\listDefinitions(), ilGlossaryTermGUI\listUsages(), ilPDSelectedItemsBlockGUI\manageObject(), ilObjForumGUI\markPostReadObject(), ilGlossaryPresentationGUI\media(), ilObjSessionGUI\membersObject(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ilObjMediaPoolSubItemListGUI\parseImage(), ilObjRoleTemplateGUI\permObject(), ilObjWorkflowEngineGUI\prepareAdminOutput(), ilPersonalDesktopGUI\prepareContentView(), ilGlossaryPresentationGUI\prepareOutput(), ilObjSystemFolderGUI\printProxyStatus(), ilGlossaryPresentationGUI\printViewSelection(), ilProgressBar\render(), ilTableGUI\render(), ilTable2GUI\render(), ilHierarchyFormGUI\renderChild(), ilRatingGUI\renderDetails(), ilCalendarSelectionBlockGUI\renderItem(), ilTestQuestionSideListGUI\renderList(), ilSCORM2004Asset\renderNavigation(), ilSurveyPageGUI\renderPage(), ilPersonalSkillsGUI\selfEvaluation(), ilImageLinkButton\setImage(), ilSAHSPresentationGUI\setInfoTabs(), ilSkillTreeNodeGUI\setLocator(), ilSCORM2004NodeGUI\setLocator(), ilSCORMOfflineModeGUI\setOfflineModeTabs(), ilSCORM2004SeqChapterGUI\setTabs(), ilSkillTemplateGUI\setTabs(), ilSCORM2004AssetGUI\setTabs(), ilSCORM2004ChapterGUI\setTabs(), ilSCORM2004PageNodeGUI\setTabs(), ilPageLayoutGUI\setTabs(), ilSCORM2004ScoGUI\setTabs(), ilObjFileBasedLMGUI\setTabs(), ilStructureObjectGUI\setTabs(), ilObjSAHSLearningModuleGUI\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(), ilCalendarDayGUI\showFulldayAppointment(), ilCalendarWeekGUI\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(), ilSCORMOfflineModeGUI\view(), and ilCourseArchivesGUI\view().

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

References $a_type, $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().

30  {
31  global $lng;
32 
33  $size = ($a_big)
34  ? "big"
35  : "small";
36 
37  include_once("./Services/Object/classes/class.ilObject.php");
39 
40  return "<img src=\"".$filename."\" alt=\"".$lng->txt("obj_".$a_type)."\" title=\"".$lng->txt("obj_".$a_type)."\" border=\"0\" vspace=\"0\"/>";
41  }
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
$size
Definition: RandomTest.php:79
$a_type
Definition: workflow.php:93
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 2351 of file class.ilUtil.php.

2352  {
2353  return PATH_TO_JAVA;
2354  //global $ilias;
2355 
2356  //return $ilias->getSetting("java_path");
2357  }

◆ 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 222 of file class.ilUtil.php.

References $filename.

223  {
224  global $ilias;
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)) $a_js_location = $a_js_location . "/";
229 
230  $filename = "";
231  // use ilStyleDefinition instead of account to get the current skin
232  require_once("./Services/Style/System/classes/class.ilStyleDefinition.php");
233  if (ilStyleDefinition::getCurrentSkin() != "default")
234  {
235  $filename = "./Customizing/global/skin/".ilStyleDefinition::getCurrentSkin()."/".$a_js_location.$js_name;
236  }
237  if (strlen($filename) == 0 || !file_exists($filename))
238  {
239  $filename = "./" . $a_js_location . "templates/default/".$js_name;
240  }
241  $vers = "";
242  if ($add_version)
243  {
244  $vers = str_replace(" ", "-", $ilias->getSetting("ilias_version"));
245  $vers = "?vers=".str_replace(".", "-", $vers);
246  }
247  return $filename . $vers;
248  }

◆ getMemString()

static ilUtil::getMemString ( )
static

get current memory usage as string

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

3676  {
3677  $my_pid = getmypid();
3678  return ("MEMORY USAGE (% KB PID ): ".`ps -eo%mem,rss,pid | grep $my_pid`);
3679  }

◆ 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 4718 of file class.ilUtil.php.

References $ilDB.

Referenced by ilExSubmission\getLastSubmission().

4719  {
4720  global $ilDB;
4721 
4722  return $a_ts;
4723  }
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 291 of file class.ilUtil.php.

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

292  {
293  global $ilias;
294 
295  // add version as parameter to force reload for new releases
296  if ($mode != "filesystem")
297  {
298  $vers = str_replace(" ", "-", $ilias->getSetting("ilias_version"));
299  $vers = "?vers=".str_replace(".", "-", $vers);
300  }
301 
302  // use ilStyleDefinition instead of account to get the current skin and style
303  require_once("./Services/Style/System/classes/class.ilStyleDefinition.php");
304  if (ilStyleDefinition::getCurrentSkin() == "default")
305  {
306  $in_style = "./templates/".ilStyleDefinition::getCurrentSkin()."/"
307  .ilStyleDefinition::getCurrentStyle()."_cont.css";
308  }
309  else
310  {
311  $in_style = "./Customizing/global/skin/".ilStyleDefinition::getCurrentSkin()."/"
312  .ilStyleDefinition::getCurrentStyle()."_cont.css";
313  }
314 
315  if (is_file("./".$in_style))
316  {
317  return $in_style.$vers;
318  }
319  else
320  {
321  return "templates/default/delos_cont.css".$vers;
322  }
323  }
+ 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 257 of file class.ilUtil.php.

References defined, and ILIAS_MODULE.

258  {
259  global $ilias;
260 
261  if (defined("ILIAS_MODULE"))
262  {
263  $base = '';
264  for($i = 0;$i < count(explode('/',ILIAS_MODULE));$i++)
265  {
266  $base .= "../Services/Privacy/";
267  }
268  }
269  else
270  {
271  $base = "./Services/Privacy/";
272  }
273 
274  if (is_file($base."w3c/p3p.xml"))
275  {
276  return ILIAS_HTTP_PATH."w3c/p3p.xml";
277  }
278  else
279  {
280  return ILIAS_HTTP_PATH."/w3c/p3p_template.xml";
281  }
282  }
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 1356 of file class.ilUtil.php.

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

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

1357  {
1358  global $lng;
1359 
1360  include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1361  $security = ilSecuritySettings::_getInstance();
1362 
1363  $infos = array(sprintf($lng->txt('password_allow_chars'), self::getPasswordValidChars(false)));
1364 
1365  // check if password to short
1366  if( $security->getPasswordMinLength() > 0 )
1367  {
1368  $infos[] = sprintf( $lng->txt('password_to_short'), $security->getPasswordMinLength() );
1369  }
1370 
1371  // check if password not to long
1372  if( $security->getPasswordMaxLength() > 0 )
1373  {
1374  $infos[] = sprintf( $lng->txt('password_to_long'), $security->getPasswordMaxLength() );
1375  }
1376 
1377  // if password must contains Chars and Numbers
1378  if( $security->isPasswordCharsAndNumbersEnabled() )
1379  {
1380  $infos[] = $lng->txt('password_must_chars_and_numbers');
1381  }
1382 
1383  // if password must contains Special-Chars
1384  if( $security->isPasswordSpecialCharsEnabled() )
1385  {
1386  $infos[] = $lng->txt('password_must_special_chars');
1387  }
1388 
1389  if($security->getPasswordNumberOfUppercaseChars() > 0)
1390  {
1391  $infos[] = sprintf($lng->txt('password_must_contain_ucase_chars'), $security->getPasswordNumberOfUppercaseChars());
1392  }
1393 
1394  if($security->getPasswordNumberOfLowercaseChars() > 0)
1395  {
1396  $infos[] = sprintf($lng->txt('password_must_contain_lcase_chars'), $security->getPasswordNumberOfLowercaseChars());
1397  }
1398 
1399  return implode('<br />', $infos);
1400  }
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 1330 of file class.ilUtil.php.

1331  {
1332  if( $a_as_regex )
1333  {
1334  if( $a_only_special_chars )
1335  {
1336  return '/[_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+/';
1337  }
1338  else
1339  {
1340  return '/^[A-Za-z0-9_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+$/';
1341  }
1342  }
1343  else
1344  {
1345  return 'A-Z a-z 0-9 _.+?#-*@!$%~/:;';
1346  }
1347  }

◆ getSecureTags()

static ilUtil::getSecureTags ( )
static

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

References array.

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

2730  {
2731  return array("strong", "em", "u", "strike", "ol", "li", "ul", "p", "div",
2732  "i", "b", "code", "sup", "sub", "pre", "gap", "a", "img", "bdo");
2733  }
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 435 of file class.ilUtil.php.

436  {
437  return($values[$selected]);
438  }

◆ 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 $filename, and ilStyleDefinition\getSkins().

Referenced by ilExport\_generateIndexFile(), ilTinyMCE\addRTESupport(), ilCharSelectorGUI\addToPage(), ilTinyMCE\addUserTextEditor(), ilSCORMPresentationGUI\contentSelect(), ilObjTest\deliverPDFfromHTML(), ilTestEvaluationGUI\detailedEvaluation(), ilPageObjectGUI\displayMedia(), ilPCDataTableGUI\editData(), ilObjSurveyGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilForumExportGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilAICCPresentationGUI\explorer(), ilSAHSPresentationGUI\explorer(), ilSCORMPresentationGUI\explorer(), ilObjContentObjectGUI\explorer(), ilSystemStyleHTMLExport\export(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilSAHSPresentationGUI\finishSahs(), ilSCORMPresentationGUI\finishSahs(), ilObjTest\getCustomStyles(), ilAttendanceList\getFullscreenHTML(), ilExplorer\getOutput(), ilSCORM13Player\getPlayer(), assMatchingQuestionGUI\getPreview(), 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(), ilPortfolioPageGUI\renderConsultationHours(), ilTestEvaluationGUI\resetfilterEvaluation(), ilObjTestGUI\reviewobject(), ilSCORM2004ScoGUI\sco_preview(), ilMainMenuGUI\setTemplateVars(), ilContainerLinkListGUI\show(), ilFramesetGUI\show(), ilCalendarPresentationGUI\show(), ilStartUpGUI\showClientList(), ilLMPresentationGUI\showDownloadList(), ilInternalLinkGUI\showLinkHelp(), ilContainerGUI\showLinkListObject(), ilTestPlayerAbstractGUI\showListOfAnswers(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilObjMediaPoolGUI\showPage(), ilLMPresentationGUI\showPrintViewSelection(), ilTestPlayerAbstractGUI\showSideList(), ilLMPresentationGUI\showTableOfContents(), ilRepositoryGUI\showTree(), ilObjSCORM2004LearningModuleGUI\showTree(), ilObjTestGUI\showUserResults(), ilSCORM13Player\specialPage(), ilSAHSPresentationGUI\unloadSahs(), ilSCORMPresentationGUI\unloadSahs(), ilAICCPresentationGUI\view(), ilSAHSPresentationGUI\view(), and ilSCORMPresentationGUI\view().

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

References $a_type, and ilObject\_getIcon().

Referenced by ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilCalendarCategoryGUI\addReferenceLinks(), 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().

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

◆ getUploadSizeLimitBytes()

static ilUtil::getUploadSizeLimitBytes ( )
static

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

4588  {
4589  $uploadSizeLimitBytes = min(
4590  self::convertPhpIniSizeValueToBytes(ini_get('post_max_size')),
4591  self::convertPhpIniSizeValueToBytes(ini_get('upload_max_filesize'))
4592  );
4593 
4594  return $uploadSizeLimitBytes;
4595  }

◆ 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 1667 of file class.ilUtil.php.

1668  {
1669  include_once("./Services/User/classes/class.ilObjUser.php");
1670  return ilObjUser::_getUsersOnline($a_user_id);
1671  }

◆ 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

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

References defined.

Referenced by ilMathJax\__construct(), ilExternalFeed\_createCacheDirectory(), ilObjStyleSheet\_createImagesDirectory(), ilObjMediaObject\_createThumbnailDirectory(), ilChatroomSmilies\_deleteMultipleSmilies(), ilObjFileBasedLMAccess\_determineStartUrl(), ilContainer\_getContainerDirectory(), ilObjMediaObject\_getDirectory(), ilObjStyleSheet\_getImagesDirectory(), ilObjUser\_getPersonalPicturePath(), ilChatroomAdminSmileyGUI\_getSmileyDir(), ilChatroomSmilies\_getSmileyDir(), ilChatroomSmilies\_getSmiliesBasePath(), ilObjMediaObject\_getThumbnailDirectory(), ilObjMediaObject\_getURL(), ilObjFileBasedLMAccess\_lookupDiskUsage(), ilObjSAHSLearningModuleAccess\_lookupDiskUsage(), ilPCTableGUI\_renderTable(), ilChatroomSmilies\_setupFolder(), 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(), ilBadgeHandler\getBasePath(), ilObjStyleSheet\getContentStylePath(), ilObjFileBasedLM\getDataDirectory(), ilObjSAHSLearningModule\getDataDirectory(), ilObjMediaObject\getDataDirectory(), ilPublicUserProfileGUI\getEmbeddable(), ilScormAiccDataSet\getExtendedXmlRepresentation(), ilStudyProgrammeType\getIconPath(), ilOrgUnitType\getIconPath(), ilStudyProgrammeType\getIconPathByStudyProgrammObjId(), ilImageMapEditorGUI\getImageMapOutput(), ilFileDataCourse\getOnlineLink(), ilFSStorageCourse\getOnlineLink(), ilUserXMLWriter\getPictureValue(), ilFSStorageMail\getRelativePathExMailDirectory(), ilLMPresentationGUI\ilMedia(), ilFileSystemStorage5069\init(), ilFileSystemStorage\init(), 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().

1622  {
1623  global $ilias;
1624 
1625  if ($mode == "filesystem")
1626  {
1627  return "./".ILIAS_WEB_DIR."/".$ilias->client_id;
1628  }
1629  else
1630  {
1631  if (defined("ILIAS_MODULE"))
1632  {
1633  return "../".ILIAS_WEB_DIR."/".$ilias->client_id;
1634  }
1635  else
1636  {
1637  return "./".ILIAS_WEB_DIR."/".$ilias->client_id;
1638  }
1639  }
1640 
1641  //return $ilias->ini->readVariable("server","webspace_dir");
1642  }
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 3640 of file class.ilUtil.php.

References $ilDB, $ilErr, and $r.

Referenced by ilMailAddressTypeFactory\getByPrefix(), ilSoapGroupAdministration\groupExists(), and ilMailGroupAddressType\isValid().

3641  {
3642  global $ilDB,$ilErr;
3643 
3644  if (empty($a_group_name))
3645  {
3646  $message = __METHOD__.": No groupname given!";
3647  $ilErr->raiseError($message,$ilErr->WARNING);
3648  }
3649 
3650  $clause = ($a_id) ? " AND obj_id != ".$ilDB->quote($a_id)." " : "";
3651 
3652  $q = "SELECT obj_id FROM object_data ".
3653  "WHERE title = ".$ilDB->quote($a_group_name, "text")." ".
3654  "AND type = ".$ilDB->quote("grp", "text").
3655  $clause;
3656 
3657  $r = $ilDB->query($q);
3658 
3659  if ($r->numRows())
3660  {
3661  return true;
3662  }
3663  else
3664  {
3665  return false;
3666  }
3667  }
global $ilErr
Definition: raiseError.php:16
$r
Definition: example_031.php:79
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 2835 of file class.ilUtil.php.

References array, and makeClickable().

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

2836  {
2837  $encoded = "";
2838 
2839  if ($a_make_links_clickable)
2840  {
2841  // Find text sequences in the plain text string which match
2842  // the URI syntax rules, and pass them to ilUtil::makeClickable.
2843  // Encode all other text sequences in the plain text string using
2844  // htmlspecialchars and nl2br.
2845  // The following expressions matches URI's as specified in RFC 2396.
2846  //
2847  // The expression matches URI's, which start with some well known
2848  // schemes, like "http:", or with "www.". This must be followed
2849  // by at least one of the following RFC 2396 expressions:
2850  // - alphanum: [a-zA-Z0-9]
2851  // - reserved: [;\/?:|&=+$,]
2852  // - mark: [\\-_.!~*\'()]
2853  // - escaped: %[0-9a-fA-F]{2}
2854  // - fragment delimiter: #
2855  // - uric_no_slash: [;?:@&=+$,]
2856  $matches = array();
2857  $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);
2858  $pos1 = 0;
2859  $encoded = "";
2860  foreach ($matches as $match)
2861  {
2862  }
2863  foreach ($matches[0] as $match)
2864  {
2865  $matched_text = $match[0];
2866  $pos2 = $match[1];
2867  if ($matched_offset != previous_offset)
2868  {
2869  // encode plain text
2870  $encoded .= nl2br(htmlspecialchars(substr($a_str, $pos1, $pos2 - $pos1)));
2871  }
2872  // encode URI
2873  $encoded .= ilUtil::makeClickable($matched_text, $a_detect_goto_links);
2874 
2875 
2876  $pos1 = $pos2 + strlen($matched_text);
2877  }
2878  if ($pos1 < strlen($a_str))
2879  {
2880  $encoded .= nl2br(htmlspecialchars(substr($a_str, $pos1)));
2881  }
2882  }
2883  else
2884  {
2885  $encoded = nl2br(htmlspecialchars($a_str));
2886  }
2887  return $encoded;
2888  }
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 2325 of file class.ilUtil.php.

2326  {
2327  $matches = Array();
2328  $sep = '###HTMLTAG###';
2329 
2330  preg_match_all("@<[^>]*>@", $htmlText, $matches);
2331  $tmp = preg_replace("@(<[^>]*>)@", $sep, $htmlText);
2332  $tmp = explode($sep, $tmp);
2333 
2334  for ($i=0; $i<count($tmp); $i++)
2335  $tmp[$i] = htmlentities($tmp[$i], ENT_COMPAT, "UTF-8");
2336 
2337  $tmp = join($sep, $tmp);
2338 
2339  for ($i=0; $i<count($matches[0]); $i++)
2340  $tmp = preg_replace("@$sep@", $matches[0][$i], $tmp, 1);
2341 
2342  return $tmp;
2343  }

◆ 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 1696 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(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilExSubmission\downloadAllAssignmentFiles(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilExSubmission\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilPageLayoutAdministrationGUI\exportLayout(), ilTestExport\exportToExcel(), 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(), ilRestFileStorage\storeFileForRest(), unzip(), ilECSConnector\updateResource(), ilCalendarCategoryGUI\uploadAppointments(), and ilExcel\writeToTmpFile().

1697  {
1698  if($a_temp_path === null )
1699  {
1700  $temp_path = ilUtil::getDataDir() . "/temp";
1701  }
1702  else
1703  {
1704  $temp_path = $a_temp_path;
1705  }
1706 
1707  if (!is_dir($temp_path))
1708  {
1709  ilUtil::createDirectory($temp_path);
1710  }
1711  $temp_name = tempnam($temp_path, "tmp");
1712  // --->
1713  // added the following line because tempnam creates a backslash on some
1714  // Windows systems which leads to problems, because the "...\tmp..." can be
1715  // interpreted as "...{TAB-CHARACTER}...". The normal slash works fine
1716  // even under windows (Helmut Schottmüller, 2005-08-31)
1717  $temp_name = str_replace("\\", "/", $temp_name);
1718  // --->
1719  unlink($temp_name);
1720  return $temp_name;
1721  }
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 2081 of file class.ilUtil.php.

References $img.

Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilLPObjectStatisticsLPTableGUI\__construct(), ilLMChapterImportForm\addNode(), ilDclRecordListTableGUI\buildData(), ilMailFolderGUI\cancelDeleteMails(), ilTable2GUI\fillHeader(), ilObjClipboardTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilTrashTableGUI\fillRow(), ilPCIIMOverlaysTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilSkillCatTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilListOfQuestionsTableGUI\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(), ilNoteGUI\getNoteListHTML(), ilLearningProgressGUI\initCollectionManualForm(), ilLMPageObjectGUI\initEditLayoutForm(), ilOnScreenChatGUI\initializeFrontend(), ilChatroomAdminSmileyGUI\initSmiliesEditForm(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilObjMediaPoolSubItemListGUI\parseImage(), ilSCORM2004TrackingItemsTableGUI\parseValue(), ilSCORMTrackingItemsTableGUI\parseValue(), ilLPTableBaseGUI\parseValue(), ilLPStatus\preloadListGUIData(), ilNestedListInputGUI\render(), ilMainMenuGUI\renderEntry(), ilExplorerBaseGUI\renderNode(), ilMainMenuGUI\setTemplateVars(), ilObjMediaCastGUI\showGallery(), ilLearningProgressGUI\showtlt(), and ilChatroomAdminSmileyGUI\updateSmiliesObject().

2082  {
2083  $img = '<img src="'.$a_src.'"';
2084  if ($a_alt != "")
2085  {
2086  $img.= ' alt="'.htmlspecialchars($a_alt).'" title="'.htmlspecialchars($a_alt).'"';
2087  }
2088  if ($a_width != "")
2089  {
2090  $img.= ' width="'.htmlspecialchars($a_width).'"';
2091  }
2092  if ($a_height != "")
2093  {
2094  $img.= ' height="'.htmlspecialchars($a_height).'"';
2095  }
2096  if ($a_class != "")
2097  {
2098  $img.= ' class="'.$a_class.'"';
2099  }
2100  if ($a_id != "")
2101  {
2102  $img.= ' id="'.$a_id.'"';
2103  }
2104  $img.= ' border="'.(int) $a_border.'"/>';
2105 
2106  return $img;
2107  }
+ Here is the caller graph for this function:

◆ includeMathjax()

ilUtil::includeMathjax (   $a_tpl = null)

Include Mathjax.

Deprecated:

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

References ilMathJax\getInstance().

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

◆ infoPanel()

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

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

References $_SESSION, $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().

4808  {
4809  global $tpl,$ilias,$lng;
4810 
4811  if (!empty($_SESSION["infopanel"]) and is_array($_SESSION["infopanel"]))
4812  {
4813  $tpl->addBlockFile("INFOPANEL", "infopanel", "tpl.infopanel.html",
4814  "Services/Utilities");
4815  $tpl->setCurrentBlock("infopanel");
4816 
4817  if (!empty($_SESSION["infopanel"]["text"]))
4818  {
4819  $link = "<a href=\"".$dir.$_SESSION["infopanel"]["link"]."\" target=\"".
4820  ilFrameTargetInfo::_getFrame("MainContent").
4821  "\">";
4822  $link .= $lng->txt($_SESSION["infopanel"]["text"]);
4823  $link .= "</a>";
4824  }
4825 
4826  // deactivated
4827  if (!empty($_SESSION["infopanel"]["img"]))
4828  {
4829  $link .= "<td><a href=\"".$_SESSION["infopanel"]["link"]."\" target=\"".
4830  ilFrameTargetInfo::_getFrame("MainContent").
4831  "\">";
4832  $link .= "<img src=\"".$ilias->tplPath.$ilias->account->prefs["skin"]."/images/".
4833  $_SESSION["infopanel"]["img"]."\" border=\"0\" vspace=\"0\"/>";
4834  $link .= "</a></td>";
4835  }
4836 
4837  $tpl->setVariable("INFO_ICONS",$link);
4838  $tpl->parseCurrentBlock();
4839  }
4840 
4841  //if (!$a_keep)
4842  //{
4843  ilSession::clear("infopanel");
4844  //}
4845  }
$_SESSION["AccountId"]
global $tpl
Definition: ilias.php:8
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 3620 of file class.ilUtil.php.

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

3621  {
3622  if (substr($a_value, 0, 4) == "il__")
3623  {
3624  $a_value = "il_".IL_INST_ID."_".substr($a_value, 4, strlen($a_value) - 4);
3625  }
3626 
3627  return $a_value;
3628  }
+ 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 4408 of file class.ilUtil.php.

References ilMathJax\getInstance().

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

◆ is_email()

static ilUtil::is_email (   $a_email)
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
Returns
boolean true if valid

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

References $ilErr, $parser, ilMailRfc822AddressParserFactory\getParser(), and ilMail\ILIAS_HOST.

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

1130  {
1131  global $ilErr;
1132 
1133  // additional check for ilias object is needed,
1134  // otherwise setup will fail with this if branch
1135  if(is_object($ilErr)) // seems to work in Setup now
1136  {
1137  try
1138  {
1139  require_once 'Services/Mail/classes/Address/Parser/class.ilMailRfc822AddressParserFactory.php';
1141  $addresses = $parser->parse();
1142  return count($addresses) == 1 && $addresses[0]->getHost() != ilMail::ILIAS_HOST;
1143  }
1144  catch(ilException $e)
1145  {
1146  return false;
1147  }
1148  }
1149  else
1150  {
1151  $tlds = strtolower(
1152  "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|".
1153  "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|".
1154  "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|".
1155  "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|".
1156  "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|".
1157  "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|".
1158  "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|".
1159  "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|".
1160  "WF|WS|XN|YE|YT|YU|ZA|ZM|ZW");
1161 
1162  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));
1163  }
1164  }
global $ilErr
Definition: raiseError.php:16
Base class for ILIAS Exception handling.
const ILIAS_HOST
$parser
Definition: BPMN2Parser.php:24
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAPICall()

static ilUtil::isAPICall ( )
static

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

References $_SERVER.

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

3898  {
3899  return strpos($_SERVER["SCRIPT_FILENAME"],"api") !== false ||
3900  strpos($_SERVER["SCRIPT_FILENAME"],"dummy") !== false;
3901  }
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 1984 of file class.ilUtil.php.

References $version, and execQuoted().

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

1985  {
1986  $current_version = ilUtil::execQuoted(PATH_TO_CONVERT, "--version");
1987  $current_version = self::processConvertVersion($current_version[0]);
1988  $version = self::processConvertVersion($a_version);
1989  if($current_version >= $version)
1990  {
1991  return true;
1992  }
1993  return false;
1994  }
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 4248 of file class.ilUtil.php.

Referenced by ilRadiusSettings\validateServers().

4249  {
4250  return(preg_match("/^[a-z]+([a-z0-9-]*[a-z0-9]+)?(\.([a-z]+([a-z0-9-]*[a-z0-9]+)?)+)*$/",$a_str));
4251  }
+ 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 4490 of file class.ilUtil.php.

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

4491  {
4492  if( strlen(strip_tags($a_text)) < strlen($a_text) )
4493  {
4494  return true;
4495  }
4496 
4497  return false;
4498  }
+ Here is the caller graph for this function:

◆ isIPv4()

static ilUtil::isIPv4 (   $a_str)
static

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

Referenced by ilRadiusSettings\validateServers().

4255  {
4256  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])\.".
4257  "(\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));
4258  }
+ Here is the caller graph for this function:

◆ isLogin()

static ilUtil::isLogin (   $a_login)
static

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

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

1409  {
1410  if (empty($a_login))
1411  {
1412  return false;
1413  }
1414 
1415  if (strlen($a_login) < 3)
1416  {
1417  return false;
1418  }
1419 
1420  // FIXME - If ILIAS is configured to use RFC 822
1421  // compliant mail addresses we should not
1422  // allow the @ character.
1423  if (!preg_match("/^[A-Za-z0-9_\.\+\*\@!\$\%\~\-]+$/", $a_login))
1424  {
1425  return false;
1426  }
1427 
1428  return true;
1429  }
+ 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 1174 of file class.ilUtil.php.

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

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

1175  {
1176  global $lng;
1177 
1178  include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
1179  $security = ilSecuritySettings::_getInstance();
1180 
1181  // check if password is empty
1182  if( empty($a_passwd) )
1183  {
1184  $customError = $lng->txt('password_empty');
1185  return false;
1186  }
1187 
1188  $isPassword = true;
1189  $errors = array();
1190 
1191  // check if password to short
1192  if( $security->getPasswordMinLength() > 0 && strlen($a_passwd) < $security->getPasswordMinLength() )
1193  {
1194  $errors[] = sprintf( $lng->txt('password_to_short'), $security->getPasswordMinLength() );
1195  $isPassword = false;
1196  }
1197 
1198  // check if password not to long
1199  // 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).
1200  if( $security->getPasswordMaxLength() > 0 && strlen($a_passwd) > $security->getPasswordMaxLength() )
1201  {
1202  $errors[] = sprintf( $lng->txt('password_to_long'), $security->getPasswordMaxLength() );
1203  $isPassword = false;
1204  }
1205 
1206  // if password must contains Chars and Numbers
1207  if( $security->isPasswordCharsAndNumbersEnabled() )
1208  {
1209  $hasCharsAndNumbers = true;
1210 
1211  // check password for existing chars
1212  if( !preg_match('/[A-Za-z]+/',$a_passwd) )
1213  {
1214  $hasCharsAndNumbers = false;
1215  }
1216 
1217  // check password for existing numbers
1218  if( !preg_match('/[0-9]+/',$a_passwd) )
1219  {
1220  $hasCharsAndNumbers = false;
1221  }
1222 
1223  if( !$hasCharsAndNumbers )
1224  {
1225  $errors[] = $lng->txt('password_must_chars_and_numbers');
1226  $isPassword = false;
1227  }
1228  }
1229 
1230  require_once 'Services/Utilities/classes/class.ilStr.php';
1231  if($security->getPasswordNumberOfUppercaseChars() > 0)
1232  {
1233  if(ilStr::strLen($a_passwd) - ilStr::strLen(preg_replace('/[A-Z]/', '', $a_passwd)) < $security->getPasswordNumberOfUppercaseChars())
1234  {
1235  $errors[] = sprintf($lng->txt('password_must_contain_ucase_chars'), $security->getPasswordNumberOfUppercaseChars());
1236  $isPassword = false;
1237  }
1238  }
1239 
1240  if($security->getPasswordNumberOfLowercaseChars() > 0)
1241  {
1242  if(ilStr::strLen($a_passwd) - ilStr::strLen(preg_replace('/[a-z]/', '', $a_passwd)) < $security->getPasswordNumberOfLowercaseChars())
1243  {
1244  $errors[] = sprintf($lng->txt('password_must_contain_lcase_chars'), $security->getPasswordNumberOfLowercaseChars());
1245  $isPassword = false;
1246  }
1247  }
1248 
1249  // if password must contains Special-Chars
1250  if( $security->isPasswordSpecialCharsEnabled() )
1251  {
1252  // check password for existing special-chars
1253  if( !preg_match( self::getPasswordValidChars(true, true) , $a_passwd) )
1254  {
1255  $errors[] = $lng->txt('password_must_special_chars');
1256  $isPassword = false;
1257  }
1258  }
1259 
1260  // ensure password matches the positive list of chars/special-chars
1261  if( !preg_match( self::getPasswordValidChars() , $a_passwd) )
1262  {
1263  $errors[] = $lng->txt('password_contains_invalid_chars');
1264  $isPassword = false;
1265  }
1266 
1267  // build custom error message
1268  if( count($errors) == 1 )
1269  {
1270  $customError = $errors[0];
1271  }
1272  elseif( count($errors) > 1 )
1273  {
1274  $customError = $lng->txt('password_multiple_errors');
1275  $customError .= '<br />'.implode('<br />', $errors);
1276  }
1277 
1278  return $isPassword;
1279  }
static strLen($a_string)
Definition: class.ilStr.php:91
Create styles array
The data for the language used.
$errors
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 1287 of file class.ilUtil.php.

References ilSecuritySettings\_getInstance().

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

1288  {
1289  include_once 'Services/PrivacySecurity/classes/class.ilSecuritySettings.php';
1290  $security = ilSecuritySettings::_getInstance();
1291 
1292  $login = null;
1293 
1294  if(is_string($user))
1295  {
1296  $login = $user;
1297  }
1298  else if(is_array($user))
1299  {
1300  // Try to get loginname and user_id from array
1301  $login = $user['login'];
1302  $userId = $user['id'];
1303  }
1304  else if($user instanceof ilObjUser)
1305  {
1306  $login = $user->getLogin();
1307  $userId = $user->getId();
1308  }
1309 
1310  // 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.
1311 
1312  if($login && (int)$security->getPasswordMustNotContainLoginnameStatus() &&
1313  strpos(strtolower($clear_text_password), strtolower($login)) !== false
1314  )
1315  {
1316  $error_language_variable = 'password_contains_parts_of_login_err';
1317  return false;
1318  }
1319 
1320  return true;
1321  }
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 3687 of file class.ilUtil.php.

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

3688  {
3689  if (strtolower(substr(php_uname(), 0, 3)) == "win")
3690  {
3691  return true;
3692  }
3693  return false;
3694  }
+ Here is the caller graph for this function:

◆ KT_replaceParam()

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

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

Referenced by replaceUrlParameterString().

3903  {
3904  if (preg_match("/&" . $paramName . "=/", $qstring)) {
3905  return preg_replace("/&" . $paramName . "=[^&]+/", "&" . $paramName . "=" . urlencode($paramValue), $qstring);
3906  } else {
3907  return $qstring . "&" . $paramName . "=" . urlencode($paramValue);
3908  }
3909  }
+ 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 689 of file class.ilUtil.php.

References $params.

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

690  {
691  $LinkBar = "";
692 
693  $layout_link = "";
694  $layout_prev = "&lt;&lt;";
695  $layout_next = "&gt;&gt;";
696 
697  // layout options
698  if (count($ALayout > 0))
699  {
700  if ($ALayout["link"])
701  {
702  $layout_link = " class=\"".$ALayout["link"]."\"";
703  }
704 
705  if ($ALayout["prev"])
706  {
707  $layout_prev = $ALayout["prev"];
708  }
709 
710  if ($ALayout["next"])
711  {
712  $layout_next = $ALayout["next"];
713  }
714  }
715 
716  // show links, if hits greater limit
717  // or offset > 0 (can be > 0 due to former setting)
718  if ($AHits > $ALimit || $AOffset > 0)
719  {
720  if (!empty($AParams))
721  {
722  foreach ($AParams as $key => $value)
723  {
724  $params.= $key."=".$value."&";
725  }
726  }
727  // if ($params) $params = substr($params,0,-1);
728  if(strpos($AScript,'&'))
729  {
730  $link = $AScript."&".$params.$prefix."offset=";
731  }
732  else
733  {
734  $link = $AScript."?".$params.$prefix."offset=";
735  }
736 
737  // ?bergehe "zurck"-link, wenn offset 0 ist.
738  if ($AOffset >= 1)
739  {
740  $prevoffset = $AOffset - $ALimit;
741  if ($prevoffset < 0) $prevoffset = 0;
742  $LinkBar .= "<a".$layout_link." href=\"".$link.$prevoffset."\">".$layout_prev."&nbsp;</a>";
743  }
744 
745  // Ben?tigte Seitenzahl kalkulieren
746  $pages=intval($AHits/$ALimit);
747 
748  // Wenn ein Rest bleibt, addiere eine Seite
749  if (($AHits % $ALimit))
750  $pages++;
751 
752  // Bei Offset = 0 keine Seitenzahlen anzeigen : DEAKTIVIERT
753  // if ($AOffset != 0) {
754 
755  // ansonsten zeige Links zu den anderen Seiten an
756  for ($i = 1 ;$i <= $pages ; $i++)
757  {
758  $newoffset=$ALimit*($i-1);
759 
760  if ($newoffset == $AOffset)
761  {
762  $LinkBar .= "[".$i."] ";
763  }
764  else
765  {
766  $LinkBar .= '<a '.$layout_link.' href="'.
767  $link.$newoffset.'">['.$i.']</a> ';
768  }
769  }
770  // }
771 
772  // Checken, ob letze Seite erreicht ist
773  // Wenn nicht, gebe einen "Weiter"-Link aus
774  if (! ( ($AOffset/$ALimit)==($pages-1) ) && ($pages!=1) )
775  {
776  $newoffset=$AOffset+$ALimit;
777  $LinkBar .= "<a".$layout_link." href=\"".$link.$newoffset."\">&nbsp;".$layout_next."</a>";
778  }
779 
780  return $LinkBar;
781  }
782  else
783  {
784  return false;
785  }
786  }
$params
Definition: example_049.php:96
+ 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 799 of file class.ilUtil.php.

References $parser, $ret, and array.

Referenced by ilExAssignmentGUI\addInstructions(), ilMimeMail\Attach(), ilCourseRegistrationGUI\fillInformations(), ilGroupRegistrationGUI\fillInformations(), ilPDNewsTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), htmlencodePlainString(), ilObjCourseGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilNewsDefaultRendererGUI\makeClickable(), ilPDNewsTableGUI\makeClickable(), ilNewsForContextBlockGUI\makeClickable(), and ilCalendarAppointmentGUI\showInfoScreen().

800  {
801  // New code, uses MediaWiki Sanitizer
802  $ret = $a_text;
803 
804  // www-URL ohne ://-Angabe
805  $ret = preg_replace("/(^|[\s]+)(www\.)([A-Za-z0-9#&=?.\/\-]+)/i",
806  "$1http://$2$3", $ret);
807 
808  // ftp-URL ohne ://-Angabe
809  $ret = preg_replace("/(^|[\s]+)(ftp\.)([A-Za-z0-9#&=?.\/\-]+)/i",
810  "$1ftp://$2$3", $ret);
811 
812  // E-Mail (this does not work as expected, users must add mailto: manually)
813  //$ret = preg_replace("/(([a-z0-9_]|\-|\.)+@([^[\s]*)([A-Za-z0-9\-]))/i",
814  // "mailto:$1", $ret);
815 
816  // mask existing image tags
817  $ret = str_replace('src="http://', '"***masked_im_start***', $ret);
818 
819  include_once("./Services/Utilities/classes/class.ilMWParserAdapter.php");
820  $parser = new ilMWParserAdapter();
821  $ret = $parser->replaceFreeExternalLinks($ret);
822 
823  // unmask existing image tags
824  $ret = str_replace('"***masked_im_start***', 'src="http://', $ret);
825 
826  // Should be Safe
827 
828  if ($detectGotoLinks)
829  // replace target blank with self and text with object title.
830  {
831  $regExp = "<a[^>]*href=\"(".str_replace("/","\/",ILIAS_HTTP_PATH)."\/goto.php\?target=\w+_(\d+)[^\"]*)\"[^>]*>[^<]*<\/a>";
832 // echo htmlentities($regExp);
833  $ret = preg_replace_callback(
834  "/".$regExp."/i",
835  array("ilUtil", "replaceLinkProperties"),
836  $ret);
837 
838  // Static links
839  $regExp = "<a[^>]*href=\"(".str_replace("/","\/",ILIAS_HTTP_PATH)."\/goto_.*[a-z0-9]+_([0-9]+)\.html)\"[^>]*>[^<]*<\/a>";
840 // echo htmlentities($regExp);
841  $ret = preg_replace_callback(
842  "/".$regExp."/i",
843  array("ilUtil", "replaceLinkProperties"),
844  $ret);
845  }
846 
847  return($ret);
848  }
Create styles array
The data for the language used.
$parser
Definition: BPMN2Parser.php:24
$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 898 of file class.ilUtil.php.

References $lng, date, and time.

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

899  {
900  global $lng;
901 
902  $disabled = '';
903  if(isset($a_further_options['disabled']) and $a_further_options['disabled'])
904  {
905  $disabled = 'disabled="disabled" ';
906  }
907 
908  $now = getdate();
909  if (!$emptyoption)
910  {
911  if (!strlen($year)) $year = $now["year"];
912  if (!strlen($month)) $month = $now["mon"];
913  if (!strlen($day)) $day = $now["mday"];
914  }
915 
916  $year = (int) $year;
917  $month = (int) $month;
918  $day = (int) $day;
919 
920  // build day select
921 
922  $sel_day .= '<select class="form-control" ';
923  if(isset($a_further_options['select_attributes']))
924  {
925  foreach($a_further_options['select_attributes'] as $name => $value)
926  {
927  $sel_day .= ($name.'="'.$value.'" ');
928  }
929  }
930 
931  $sel_day .= $disabled."name=\"".$prefix."[d]\" id=\"".$prefix."_d\">\n";
932 
933  if ($emptyoption) $sel_day .= "<option value=\"0\">--</option>\n";
934  for ($i = 1; $i <= 31; $i++)
935  {
936  $sel_day .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
937  }
938  $sel_day .= "</select>\n";
939  $sel_day = preg_replace("/(value\=\"$day\")/", "$1 selected=\"selected\"", $sel_day);
940 
941  // build month select
942  $sel_month = '<select class="form-control" ';
943  if(isset($a_further_options['select_attributes']))
944  {
945  foreach($a_further_options['select_attributes'] as $name => $value)
946  {
947  $sel_month .= ($name.'="'.$value.'" ');
948  }
949  }
950  $sel_month .= $disabled."name=\"".$prefix."[m]\" id=\"".$prefix."_m\">\n";
951 
952  if ($emptyoption) $sel_month .= "<option value=\"0\">--</option>\n";
953  for ($i = 1; $i <= 12; $i++)
954  {
955  if($a_long_month)
956  {
957  $sel_month .= "<option value=\"$i\">" . $lng->txt("month_" . sprintf("%02d", $i) . "_long") . "</option>\n";
958  }
959  else
960  {
961  $sel_month .= "<option value=\"$i\">" . $i . "</option>\n";
962  }
963  }
964  $sel_month .= "</select>\n";
965  $sel_month = preg_replace("/(value\=\"$month\")/", "$1 selected=\"selected\"", $sel_month);
966 
967  // build year select
968  $sel_year = '<select class="form-control" ';
969  if(isset($a_further_options['select_attributes']))
970  {
971  foreach($a_further_options['select_attributes'] as $name => $value)
972  {
973  $sel_year .= ($name.'="'.$value.'" ');
974  }
975  }
976  $sel_year .= $disabled."name=\"".$prefix."[y]\" id=\"".$prefix."_y\">\n";
977  if ((strlen($startyear) == 0) || ($startyear > $year))
978  {
979  if (!$emptyoption || $year != 0) $startyear = $year - 5;
980  }
981 
982  if(($year + 5) < (date('Y',time()) + 5))
983  {
984  $end_year = date('Y',time()) + 5;
985  }
986  else
987  {
988  $end_year = $year + 5;
989  }
990 
991  if ($emptyoption) $sel_year .= "<option value=\"0\">----</option>\n";
992  for ($i = $startyear; $i <= $end_year; $i++)
993  {
994  $sel_year .= "<option value=\"$i\">" . sprintf("%04d", $i) . "</option>\n";
995  }
996  $sel_year .= "</select>\n";
997  $sel_year = preg_replace("/(value\=\"$year\")/", "$1 selected=\"selected\"", $sel_year);
998 
999  //$dateformat = $lng->text["lang_dateformat"];
1000  $dateformat = "d-m-Y";
1001  $dateformat = strtolower(preg_replace("/\W/", "", $dateformat));
1002  $dateformat = strtolower(preg_replace("/(\w)/", "%%$1", $dateformat));
1003  $dateformat = preg_replace("/%%d/", $sel_day, $dateformat);
1004  $dateformat = preg_replace("/%%m/", $sel_month, $dateformat);
1005  $dateformat = preg_replace("/%%y/", $sel_year, $dateformat);
1006  return $dateformat;
1007  }
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
global $lng
Definition: privfeed.php:17
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

Definition at line 2394 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(), ilGlossaryExport\buildExportFileXML(), ilQuestionpoolExport\buildExportFileXML(), ilContObjectExport\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(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjUserFolder\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(), ilObjWorkspaceFolder\downloadFolder(), 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(), ilUserDataSet\getXmlRecord(), ilCloudPluginUploadGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilImport\importObject(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilSCORM13Player\logDirectory(), ilObjSCORM2004LearningModule\prepareHTMLExporter(), ilExSubmission\processUploadedZipFile(), rCopy(), ilObjWorkspaceFolder\recurseFolder(), ilObjFolder\recurseFolder(), ilFolderDownloadBackgroundTaskHandler\recurseFolder(), ilContainerGUI\recurseFolder(), ilObjFile\rollback(), ilSetup\saveMasterSetup(), ilObjFileGUI\saveUnzip(), ilExAssignment\sendMultiFeedbackStructureFile(), ilFileXMLParser\setFileContents(), ilForumXMLWriter\start(), ilObjFile\storeUnzipedFile(), unzip(), ilFSStorageExercise5069\uploadFile(), and ilFSStorageExercise\uploadFile().

2395  {
2396  $a_dir = trim($a_dir);
2397 
2398  // remove trailing slash (bugfix for php 4.2.x)
2399  if (substr($a_dir,-1) == "/")
2400  {
2401  $a_dir = substr($a_dir,0,-1);
2402  }
2403 
2404  // check if a_dir comes with a path
2405  if (!($path = substr($a_dir,0, strrpos($a_dir,"/") - strlen($a_dir))))
2406  {
2407  $path = ".";
2408  }
2409 
2410  // create directory with file permissions of parent directory
2411  umask(0000);
2412  return @mkdir($a_dir,fileperms($path));
2413  }
$path
Definition: aliased.php:25
+ 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

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

References 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(), assImagemapQuestion\copyImage(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assQuestion\copySuggestedSolutionFiles(), ilTestProcessLockFileStorage\create(), ilAssQuestionProcessLockFileStorage\create(), ilFileSystemStorage5069\create(), ilFileSystemStorage\create(), ilFSStorageExercise5069\create(), ilFSStorageExercise\create(), ilTestArchiver\createArchiveForTest(), ilFSStorageCourse\createArchiveOnlineVersion(), ilLoggingErrorFileStorage\createDir(), ilFSStorageSession\createDirectory(), ilFSStorageEvent\createDirectory(), ilObjFile\createDirectory(), ilExplorerBaseGUI\createHTMLExportDirs(), ilTestExportGUI\createTestArchiveExport(), 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(), assMultipleChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assJavaAppletImport\fromXML(), assOrderingQuestionImport\fromXML(), 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(), ilObjFile\getUploadFile(), ilindividualAssessmentExporter\getXmlRepresentation(), ilStyleExporter\getXmlRepresentation(), ilForumExporter\getXmlRepresentation(), ilDataCollectionExporter\getXmlRepresentation(), ilBibliographicExporter\getXmlRepresentation(), ilFileExporter\getXmlRepresentation(), ilMediaObjectsExporter\getXmlRepresentation(), ilLMPresentationGUI\handleCodeParagraph(), assKprimChoice\handleFileUpload(), ilWorkflowEngineDefinitionsGUI\handleUploadSubmit(), ilStyleImporter\importXmlRepresentation(), ilAdvancedMDRecordImportFiles\init(), ilAdvancedMDRecordExportFiles\init(), ilFSStorageCourse\initArchiveDirectory(), ilFSStorageCourse\initInfoDirectory(), ilFSStorageGroup\initMemberExportDirectory(), ilFSStorageCourse\initMemberExportDirectory(), assFlashQuestion\moveAppletIfExists(), ilObjBibliographic\moveFile(), assFlashQuestion\moveUploadedFile(), ilObjQuestionPool\pasteFromClipboard(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilZipBackgroundTaskHandler\process(), ilStudyProgrammeType\processAndStoreIconFile(), ilOrgUnitType\processAndStoreIconFile(), ilExport\processExporter(), 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(), ilLMMultiSrt\uploadMultipleSubtitleFile(), and ilObjMediaObject\uploadMultipleSubtitleFile().

2431  {
2432  $dirs = array($a_dir);
2433  $a_dir = dirname($a_dir);
2434  $last_dirname = '';
2435 
2436  while($last_dirname != $a_dir)
2437  {
2438  array_unshift($dirs, $a_dir);
2439  $last_dirname = $a_dir;
2440  $a_dir = dirname($a_dir);
2441  }
2442 
2443  // find the first existing dir
2444  $reverse_paths = array_reverse($dirs, TRUE);
2445  $found_index = -1;
2446  foreach ($reverse_paths as $key => $value)
2447  {
2448  if ($found_index == -1)
2449  {
2450  if (is_dir($value))
2451  {
2452  $found_index = $key;
2453  }
2454  }
2455  }
2456 
2457  umask(0000);
2458  foreach ($dirs as $dirindex => $dir)
2459  {
2460  // starting with the longest existing path
2461  if ($dirindex >= $found_index)
2462  {
2463  if (! file_exists($dir))
2464  {
2465  if (strcmp(substr($dir,strlen($dir)-1,1),"/") == 0)
2466  {
2467  // on some systems there is an error when there is a slash
2468  // at the end of a directory in mkdir, see Mantis #2554
2469  $dir = substr($dir,0,strlen($dir)-1);
2470  }
2471  if (! mkdir($dir, $umask))
2472  {
2473  error_log("Can't make directory: $dir");
2474  return false;
2475  }
2476  }
2477  elseif (! is_dir($dir))
2478  {
2479  error_log("$dir is not a directory");
2480  return false;
2481  }
2482  else
2483  {
2484  // get umask of the last existing parent directory
2485  $umask = fileperms($dir);
2486  }
2487  }
2488  }
2489  return true;
2490  }
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:

◆ 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 1027 of file class.ilUtil.php.

References $ilUser, $lng, date, and ilCalendarSettings\TIME_FORMAT_24.

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

1028  {
1029  global $lng, $ilUser;
1030 
1031  $minute_steps = 1;
1032  $disabled = '';
1033  if(count($a_further_options))
1034  {
1035  if(isset($a_further_options['minute_steps']))
1036  {
1037  $minute_steps = $a_further_options['minute_steps'];
1038  }
1039  if(isset($a_further_options['disabled']) and $a_further_options['disabled'])
1040  {
1041  $disabled = 'disabled="disabled" ';
1042  }
1043  }
1044 
1045  if ($a_use_default and !strlen("$hour$minute$second")) {
1046  $now = localtime();
1047  $hour = $now[2];
1048  $minute = $now[1];
1049  $second = $now[0];
1050  } else {
1051  $hour = (int)$hour;
1052  $minute = (int)$minute;
1053  $second = (int)$second;
1054  }
1055  // build hour select
1056  $sel_hour = '<select ';
1057  if(isset($a_further_options['select_attributes']))
1058  {
1059  foreach($a_further_options['select_attributes'] as $name => $value)
1060  {
1061  $sel_hour .= $name.'='.$value.' ';
1062  }
1063  }
1064  $sel_hour .= " ".$disabled."name=\"".$prefix."[h]\" id=\"".$prefix."_h\" class=\"form-control\">\n";
1065 
1066  $format = $ilUser->getTimeFormat();
1067  for ($i = 0; $i <= 23; $i++)
1068  {
1069  if($format == ilCalendarSettings::TIME_FORMAT_24)
1070  {
1071  $sel_hour .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
1072  }
1073  else
1074  {
1075  $sel_hour .= "<option value=\"$i\">" . date("ga", mktime($i, 0, 0)) . "</option>\n";
1076  }
1077  }
1078  $sel_hour .= "</select>\n";
1079  $sel_hour = preg_replace("/(value\=\"$hour\")/", "$1 selected=\"selected\"", $sel_hour);
1080 
1081  // build minutes select
1082  $sel_minute .= "<select ".$disabled."name=\"".$prefix."[m]\" id=\"".$prefix."_m\" class=\"form-control\">\n";
1083 
1084  for ($i = 0; $i <= 59; $i = $i + $minute_steps)
1085  {
1086  $sel_minute .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
1087  }
1088  $sel_minute .= "</select>\n";
1089  $sel_minute = preg_replace("/(value\=\"$minute\")/", "$1 selected=\"selected\"", $sel_minute);
1090 
1091  if (!$short) {
1092  // build seconds select
1093  $sel_second .= "<select ".$disabled."name=\"".$prefix."[s]\" id=\"".$prefix."_s\" class=\"form-control\">\n";
1094 
1095  for ($i = 0; $i <= 59; $i++)
1096  {
1097  $sel_second .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
1098  }
1099  $sel_second .= "</select>\n";
1100  $sel_second = preg_replace("/(value\=\"$second\")/", "$1 selected=\"selected\"", $sel_second);
1101  }
1102  $timeformat = $lng->text["lang_timeformat"];
1103  if (strlen($timeformat) == 0) $timeformat = "H:i:s";
1104  $timeformat = strtolower(preg_replace("/\W/", "", $timeformat));
1105  $timeformat = preg_replace("/(\w)/", "%%$1", $timeformat);
1106  $timeformat = preg_replace("/%%h/", $sel_hour, $timeformat);
1107  $timeformat = preg_replace("/%%i/", $sel_minute, $timeformat);
1108  if ($short) {
1109  $timeformat = preg_replace("/%%s/", "", $timeformat);
1110  } else {
1111  $timeformat = preg_replace("/%%s/", $sel_second, $timeformat);
1112  }
1113  return $timeformat;
1114  }
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
$ilUser
Definition: imgupload.php:18
global $lng
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ maskAttributeTag()

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

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

References $ilLog.

Referenced by maskSecureTags().

2892  {
2893  global $ilLog;
2894 
2895  $ws = "[\s]*";
2896  $att = $ws."[^>]*".$ws;
2897 
2898  while (preg_match('/<('.$tag.$att.'('.$tag_att.$ws.'="'.$ws.'(([$@!*()~;,_0-9A-z\/:=%.&#?+\-])*)")'.$att.')>/i',
2899  $a_str, $found))
2900  {
2901  $old_str = $a_str;
2902  $a_str = preg_replace("/<".preg_quote($found[1], "/").">/i",
2903  '&lt;'.$tag.' '.$tag_att.$tag_att.'="'.$found[3].'"&gt;', $a_str);
2904  if ($old_str == $a_str)
2905  {
2906  $ilLog->write("ilUtil::maskA-".htmlentities($old_str)." == ".
2907  htmlentities($a_str));
2908  return $a_str;
2909  }
2910  }
2911  $a_str = str_ireplace("</$tag>",
2912  "&lt;/$tag&gt;", $a_str);
2913  return $a_str;
2914  }
+ Here is the caller graph for this function:

◆ maskSecureTags()

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

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

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

Referenced by secureString().

2736  {
2737  foreach ($allow_array as $t)
2738  {
2739  switch($t)
2740  {
2741  case "a":
2742  $a_str = ilUtil::maskAttributeTag($a_str, "a", "href");
2743  break;
2744 
2745  case "img":
2746  $a_str = ilUtil::maskAttributeTag($a_str, "img", "src");
2747  break;
2748 
2749  case "p":
2750  case "div":
2751  $a_str = ilUtil::maskTag($a_str, $t, array(
2752  array("param" => "align", "value" => "left"),
2753  array("param" => "align", "value" => "center"),
2754  array("param" => "align", "value" => "justify"),
2755  array("param" => "align", "value" => "right")
2756  ));
2757  break;
2758 
2759  default:
2760  $a_str = ilUtil::maskTag($a_str, $t);
2761  break;
2762  }
2763  }
2764 
2765  return $a_str;
2766  }
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 2937 of file class.ilUtil.php.

References $t, and array.

Referenced by maskSecureTags().

2938  {
2939  $a_str = str_replace(array("<$t>", "<".strtoupper($t).">"),
2940  "&lt;".$t."&gt;", $a_str);
2941  $a_str = str_replace(array("</$t>", "</".strtoupper($t).">"),
2942  "&lt;/".$t."&gt;", $a_str);
2943 
2944  if (is_array($fix_param))
2945  {
2946  foreach ($fix_param as $p)
2947  {
2948  $k = $p["param"];
2949  $v = $p["value"];
2950  $a_str = str_replace("<$t $k=\"$v\">",
2951  "&lt;"."$t $k=\"$v\""."&gt;", $a_str);
2952  }
2953  }
2954 
2955  return $a_str;
2956  }
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 5257 of file class.ilUtil.php.

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

5258  {
5259  return $a_value * pow(self::_getSizeMagnitude(), 2);
5260  }
+ Here is the caller graph for this function:

◆ mergesort()

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

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

References array.

Referenced by stableSortArray().

3421  {
3422  // Arrays of size < 2 require no action.
3423  if (count($array) < 2) return;
3424 
3425  // Split the array in half
3426  $halfway = count($array) / 2;
3427  $array1 = array_slice($array, 0, $halfway);
3428  $array2 = array_slice($array, $halfway);
3429 
3430  // Recurse to sort the two halves
3431  ilUtil::mergesort($array1, $cmp_function);
3432  ilUtil::mergesort($array2, $cmp_function);
3433 
3434  // If all of $array1 is <= all of $array2, just append them.
3435  if (call_user_func($cmp_function, end($array1), $array2[0]) < 1) {
3436  $array = array_merge($array1, $array2);
3437  return;
3438  }
3439 
3440  // Merge the two sorted arrays into a single sorted array
3441  $array = array();
3442  $ptr1 = $ptr2 = 0;
3443  while ($ptr1 < count($array1) && $ptr2 < count($array2)) {
3444  if (call_user_func($cmp_function, $array1[$ptr1], $array2[$ptr2]) < 1) {
3445  $array[] = $array1[$ptr1++];
3446  }
3447  else {
3448  $array[] = $array2[$ptr2++];
3449  }
3450  }
3451 
3452  // Merge the remainder
3453  while ($ptr1 < count($array1)) $array[] = $array1[$ptr1++];
3454  while ($ptr2 < count($array2)) $array[] = $array2[$ptr2++];
3455 
3456  return;
3457  }
static mergesort(&$array, $cmp_function='strcmp')
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ moveUploadedFile()

static ilUtil::moveUploadedFile (   $a_file,
  $a_name,
  $a_target,
  $a_raise_errors = true,
  $a_mode = "move_uploaded" 
)
static

move uploaded file

Returns
bool
Exceptions
ilFileUtilsException

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

References $lng, ilFileUtils\getValidFilename(), sendFailure(), sendInfo(), and virusHandling().

Referenced by ilObjCategoryGUI\_importCategories(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjUserFolder\_updateAccountMailAttachment(), ilSessionFile\create(), ilCourseFile\create(), ilPCInteractiveImageGUI\create(), ilFileDataCourse\createImportFile(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilPropertyFormGUI\getHTML(), ilObjFile\getUploadFile(), assKprimChoice\handleFileUpload(), ilExAssignment\handleGlobalFeedbackFileUpload(), ilWorkflowEngineDefinitionsGUI\handleUploadSubmit(), ilObjStyleSheet\import(), ilCertificate\importCertificate(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilExcCriteriaFile\importFromPeerReviewForm(), ilObjContentObject\importFromZipFile(), ilImport\importObject(), ilObjSurvey\importObject(), ilSCORM2004ScoGUI\importSave(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjBibliographic\moveFile(), ilPropertyFormGUI\moveFileUpload(), ilAdvancedMDRecordImportFiles\moveUploadedFile(), assFlashQuestion\moveUploadedFile(), assQuestion\moveUploadedMediaFile(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilDclMobRecordFieldModel\parseValue(), ilStudyProgrammeType\processAndStoreIconFile(), ilOrgUnitType\processAndStoreIconFile(), ilFileUtils\processZipFile(), ilContainer\saveIcons(), ilObjStudyProgramme\saveIcons(), assFileUpload\savePreviewData(), ilObjMediaObjectGUI\savePropertiesObject(), assFileUpload\saveWorkingData(), assSingleChoice\setImageFile(), assMultipleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assJavaApplet\setJavaAppletFilename(), SurveyQuestion\setMaterialsfile(), ilObjMediaObjectGUI\setObjectPerCreationForm(), assOrderingQuestion\storeImageFile(), ilFileDataImportMail\storeUploadedFile(), ilFileDataForumDrafts\storeUploadedFile(), ilFileDataForum\storeUploadedFile(), ilFileDataMail\storeUploadedFile(), assQuestionGUI\suggestedsolution(), ilPCInteractiveImageGUI\update(), ilObjMediaCastGUI\updateMediaItem(), ilChatroomAdminSmileyGUI\updateSmiliesObject(), ilObjMediaObject\uploadAdditionalFile(), ilCalendarCategoryGUI\uploadAppointments(), ilFSStorageExercise5069\uploadAssignmentFiles(), ilFSStorageExercise\uploadAssignmentFiles(), ilObjCertificateSettings\uploadBackgroundImage(), ilCertificate\uploadBackgroundImage(), ilChatroomUploadFileGUI\uploadFile(), ilBookingObject\uploadFile(), ilFSStorageExercise5069\uploadFile(), ilFSStorageExercise\uploadFile(), ilFileSystemGUI\uploadFile(), ilObjMediaObjectGUI\uploadFileObject(), ilBadgeImageTemplate\uploadImage(), ilBadge\uploadImage(), ilObjPortfolioBase\uploadImage(), ilObjBlog\uploadImage(), ilObjPoll\uploadImage(), ilObjStyleSheet\uploadImage(), ilExAssignment\uploadMultiFeedbackFile(), ilLMMultiSrt\uploadMultipleSubtitleFile(), ilObjMediaObject\uploadMultipleSubtitleFile(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjLanguageExtGUI\uploadObject(), ilBookingObject\uploadPostFile(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjSurveyQuestionPoolGUI\uploadQuestionsObject(), ilChatroomAdminSmileyGUI\uploadSmileyObject(), ilObjTestGUI\uploadTstObject(), and ilObjUserGUI\uploadUserPictureObject().

4098  {
4099  global $lng, $ilias;
4100 
4101  if (!is_file($a_file))
4102  {
4103  if ($a_raise_errors)
4104  {
4105  $ilias->raiseError($lng->txt("upload_error_file_not_found"), $ilias->error_obj->MESSAGE);
4106  }
4107  else
4108  {
4109  ilUtil::sendFailure($lng->txt("upload_error_file_not_found"), true);
4110  }
4111  return false;
4112  }
4113 
4114  // virus handling
4115  $vir = ilUtil::virusHandling($a_file, $a_name);
4116  if (!$vir[0])
4117  {
4118  unlink($a_file);
4119  if ($a_raise_errors)
4120  {
4121  $ilias->raiseError($lng->txt("file_is_infected")."<br />".
4122  $vir[1],
4123  $ilias->error_obj->MESSAGE);
4124  }
4125  else
4126  {
4127  ilUtil::sendFailure($lng->txt("file_is_infected")."<br />".
4128  $vir[1], true);
4129  }
4130  return false;
4131  }
4132  else
4133  {
4134  if ($vir[1] != "")
4135  {
4136  ilUtil::sendInfo($vir[1], true);
4137  }
4138  include_once("./Services/Utilities/classes/class.ilFileUtils.php");
4139  $a_target = ilFileUtils::getValidFilename($a_target);
4140  switch ($a_mode)
4141  {
4142  case "rename":
4143  return rename($a_file, $a_target);
4144  break;
4145 
4146  case "copy":
4147  return copy($a_file, $a_target);
4148  break;
4149 
4150  default:
4151  return move_uploaded_file($a_file, $a_target);
4152  break;
4153  }
4154  }
4155  }
static virusHandling($a_file, $a_orig_name="", $a_clean=true)
scan file for viruses and clean files if possible
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $lng
Definition: privfeed.php:17
static getValidFilename($a_filename)
Get valid filename.
+ Here is the call graph for this function:
+ 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 4177 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(), ilObjForum\createSettings(), ilNewsItem\getLastNewsIdForContext(), ilWikiUserHTMLExport\getProcess(), ilLMPresentationGUI\getSuccessorPage(), ilBasicSkill\hasRecentSelfEvaluation(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilPage(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilPreviewRenderer\render(), ilBasicSkill\resetUserSkillLevelStatus(), 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().

4178  {
4179  return date("Y-m-d H:i:s");
4180  }
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 4972 of file class.ilUtil.php.

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

4973  {
4974  $exploded = explode('_',$a_import_id);
4975 
4976  $parsed['orig'] = $a_import_id;
4977  if($exploded[0] == 'il')
4978  {
4979  $parsed['prefix'] = $exploded[0];
4980  }
4981  if(is_numeric($exploded[1]))
4982  {
4983  $parsed['inst_id'] = (int) $exploded[1];
4984  }
4985  $parsed['type'] = $exploded[2];
4986 
4987  if(is_numeric($exploded[3]))
4988  {
4989  $parsed['id'] = (int) $exploded[3];
4990  }
4991  return $parsed;
4992  }
+ 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 4509 of file class.ilUtil.php.

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

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

4510  {
4511  global $lng;
4512 
4513  if (!$a_to)
4514  {
4515  $a_to = new ilDateTime(time(), IL_CAL_UNIX);
4516  }
4517 
4518  $from = new DateTime($a_from->get(IL_CAL_DATETIME));
4519  $to = new DateTime($a_to->get(IL_CAL_DATETIME));
4520  $diff = $to->diff($from);
4521 
4522  $periods = array();
4523  $periods["years"] = $diff->format("%y");
4524  $periods["months"] = $diff->format("%m");
4525  $periods["days"] = $diff->format("%d");
4526  $periods["hours"] = $diff->format("%h");
4527  $periods["minutes"] = $diff->format("%i");
4528  $periods["seconds"] = $diff->format("%s");
4529 
4530  if (!array_sum($periods))
4531  {
4532  return;
4533  }
4534 
4535  foreach ($periods as $key => $value)
4536  {
4537  if($value)
4538  {
4539  $segment_name = ($value > 1)
4540  ? $key
4541  : substr($key, 0, -1);
4542  $array[] = $value . ' ' . $lng->txt($segment_name);
4543  }
4544  }
4545 
4546  $len = sizeof($array);
4547  if ($len > 3)
4548  {
4549  $array = array_slice($array, 0, (3-$len));
4550  }
4551 
4552  return implode(', ', $array);
4553  }
const IL_CAL_DATETIME
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.
+ 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 3060 of file class.ilUtil.php.

References stripSlashes().

Referenced by ilBookmarkImportExport\__parseExport(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilInfoScreenGUI\addPropertyTextinput(), assFileUploadFileTableGUI\buildFileItemContent(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilMailQuickFilterInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), assErrorText\createErrorTextExport(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilTable2GUI\deleteTemplate(), ilObjTest\deliverPDFfromHTML(), ilContainerGUI\editPageContentObject(), ilCertificate\exchangeCertificateVariables(), ilRepositoryObjectSearchBlockGUI\fillDataSection(), ilWikiSearchBlockGUI\fillDataSection(), ilPCIIMPopupTableGUI\fillRow(), ilPCTabsTableGUI\fillRow(), ilMultiSrtConfirmationTable2GUI\fillRow(), ilHelpTooltipTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), ilAccessKeyTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilMultilingualismTableGUI\fillRow(), ilPortfolioTableGUI\fillRow(), ilAssessmentFolderLogAdministrationTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilTaxonomyTableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilTestFixedParticipantsTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilTestParticipantsTableGUI\fillRow(), ilSCORM2004ExportTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\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(), 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(), SurveyTextQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveyMatrixQuestionGUI\getWorkingForm(), ilNoteGUI\initNoteForm(), ilPreviewGUI\initPreview(), ilMailSearchGUI\initSearchForm(), ilRandomTestROInputGUI\insert(), ilHiddenInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilCopyrightInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTextWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\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(), ilGloAdvColSortInputGUI\render(), ilMultipleTextsInputGUI\render(), ilNonEditableValueGUI\render(), ilSelectInputGUI\render(), ilTagInputGUI\render(), ilMultiSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilMultipleImagesInputGUI\render(), ilPasswordInputGUI\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(), ilStartUpGUI\showUserMappingSelection(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), assFormulaQuestion\substituteVariables(), assQuestionGUI\suggestedsolution(), and assErrorText\toJSON().

3061  {
3062  if($a_strip)
3063  {
3064  $a_str = ilUtil::stripSlashes($a_str);
3065  }
3066  $a_str = htmlspecialchars($a_str);
3067  // Added replacement of curly brackets to prevent
3068  // problems with PEAR templates, because {xyz} will
3069  // be removed as unused template variable
3070  $a_str = str_replace("{", "&#123;", $a_str);
3071  $a_str = str_replace("}", "&#125;", $a_str);
3072  // needed for LaTeX conversion \\ in LaTeX is a line break
3073  // but without this replacement, php changes \\ to \
3074  $a_str = str_replace("\\", "&#92;", $a_str);
3075  return $a_str;
3076  }
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 4432 of file class.ilUtil.php.

References $result, and ilMathJax\getInstance().

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

4433  {
4434  $result = $txt_output;
4435  $is_html = self::isHTML($result);
4436 
4437  if ($prepare_for_latex_output)
4438  {
4439  include_once './Services/MathJax/classes/class.ilMathJax.php';
4440  $result = ilMathJax::getInstance()->insertLatexImages($result, "<span class\=\"latex\">", "<\/span>");
4441  $result = ilMathJax::getInstance()->insertLatexImages($result, "\[tex\]", "\[\/tex\]");
4442  }
4443 
4444  // removed: did not work with magic_quotes_gpc = On
4445  if (!$is_html )
4446  {
4447  if(!$omitNl2BrWhenTextArea)
4448  {
4449  // if the string does not contain HTML code, replace the newlines with HTML line breaks
4450  $result = preg_replace("/[\n]/", "<br />", $result);
4451  }
4452  }
4453  else
4454  {
4455  // patch for problems with the <pre> tags in tinyMCE
4456  if (preg_match_all("/(<pre>.*?<\/pre>)/ims", $result, $matches))
4457  {
4458  foreach ($matches[0] as $found)
4459  {
4460  $replacement = "";
4461  if (strpos("\n", $found) === FALSE)
4462  {
4463  $replacement = "\n";
4464  }
4465  $removed = preg_replace("/<br\s*?\/>/ims", $replacement, $found);
4466  $result = str_replace($found, $removed, $result);
4467  }
4468  }
4469  }
4470  if ($prepare_for_latex_output)
4471  {
4472  // replace special characters to prevent problems with the ILIAS template system
4473  // eg. if someone uses {1} as an answer, nothing will be shown without the replacement
4474  $result = str_replace("{", "&#123;", $result);
4475  $result = str_replace("}", "&#125;", $result);
4476  $result = str_replace("\\", "&#92;", $result);
4477  }
4478 
4479  return $result;
4480  }
$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 4943 of file class.ilUtil.php.

References $t.

4944  {
4945  $bt = debug_backtrace();
4946  $cnt = 0;
4947  foreach ($bt as $t)
4948  {
4949  if ($cnt != 0 && ($a_limit == 0 || $cnt <= $a_limit))
4950  {
4951  echo "<br>".$t["file"].", ".$t["function"]." [".$t["line"]."]";
4952  }
4953  $cnt++;
4954  }
4955  echo "<br>";
4956  }

◆ 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 2002 of file class.ilUtil.php.

References $version.

2003  {
2004  if(preg_match("/([0-9]+)\.([0-9]+)\.([0-9]+)([\.|\-]([0-9]+))?/", $a_version, $match))
2005  {
2006  $version = str_pad($match[1], 2, 0, STR_PAD_LEFT).
2007  str_pad($match[2], 2, 0, STR_PAD_LEFT).
2008  str_pad($match[3], 2, 0, STR_PAD_LEFT).
2009  str_pad($match[5], 2, 0, STR_PAD_LEFT);
2010  return (int)$version;
2011  }
2012  }

◆ 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 4197 of file class.ilUtil.php.

References $row, and array.

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

4198  {
4199  $resultarray = array();
4200  foreach ($row as $rowindex => $entry)
4201  {
4202  $surround = FALSE;
4203  if ($quoteAll)
4204  {
4205  $surround = TRUE;
4206  }
4207  if (strpos($entry, "\"") !== FALSE)
4208  {
4209  $entry = str_replace("\"", "\"\"", $entry);
4210  $surround = TRUE;
4211  }
4212  if (strpos($entry, $separator) !== FALSE)
4213  {
4214  $surround = TRUE;
4215  }
4216  if ($compatibleWithMSExcel)
4217  {
4218  // replace all CR LF with LF (for Excel for Windows compatibility
4219  $entry = str_replace(chr(13).chr(10), chr(10), $entry);
4220  }
4221  if ($surround)
4222  {
4223  if ($outUTF8)
4224  {
4225  $resultarray[$rowindex] = "\"" . $entry . "\"";
4226  }
4227  else
4228  {
4229  $resultarray[$rowindex] = utf8_decode("\"" . $entry . "\"");
4230  }
4231  }
4232  else
4233  {
4234  if ($outUTF8)
4235  {
4236  $resultarray[$rowindex] = $entry;
4237  }
4238  else
4239  {
4240  $resultarray[$rowindex] = utf8_decode($entry);
4241  }
4242  }
4243  }
4244  return $resultarray;
4245  }
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 4731 of file class.ilUtil.php.

References $ilDB, and array.

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

4732  {
4733  global $ilDB;
4734 
4735 
4736  if(!is_array($a_array) or !count($a_array))
4737  {
4738  return array("''");
4739  }
4740 
4741  foreach($a_array as $k => $item)
4742  {
4743  $a_array[$k] = $ilDB->quote($item);
4744  }
4745 
4746  return $a_array;
4747  }
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 4890 of file class.ilUtil.php.

4891  {
4892  return md5(rand(1,9999999) + str_replace(" ", "", (string) microtime()));
4893  }

◆ 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 5032 of file class.ilUtil.php.

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

5032  {
5033 
5034  $fp = @fopen($file, 'rb');
5035 
5036  $size = filesize($file); // File size
5037  $length = $size; // Content length
5038  $start = 0; // Start byte
5039  $end = $size - 1; // End byte
5040  // Now that we've gotten so far without errors we send the accept range header
5041  /* At the moment we only support single ranges.
5042  * Multiple ranges requires some more work to ensure it works correctly
5043  * and comply with the spesifications: http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.2
5044  *
5045  * Multirange support annouces itself with:
5046  * header('Accept-Ranges: bytes');
5047  *
5048  * Multirange content must be sent with multipart/byteranges mediatype,
5049  * (mediatype = mimetype)
5050  * as well as a boundry header to indicate the various chunks of data.
5051  */
5052  header("Accept-Ranges: 0-$length");
5053  // header('Accept-Ranges: bytes');
5054  // multipart/byteranges
5055  // http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.2
5056  if (isset($_SERVER['HTTP_RANGE'])) {
5057 
5058  $c_start = $start;
5059  $c_end = $end;
5060  // Extract the range string
5061  list(, $range) = explode('=', $_SERVER['HTTP_RANGE'], 2);
5062  // Make sure the client hasn't sent us a multibyte range
5063  if (strpos($range, ',') !== false) {
5064 
5065  // (?) Shoud this be issued here, or should the first
5066  // range be used? Or should the header be ignored and
5067  // we output the whole content?
5068  header('HTTP/1.1 416 Requested Range Not Satisfiable');
5069  header("Content-Range: bytes $start-$end/$size");
5070  // (?) Echo some info to the client?
5071  exit;
5072  }
5073  // If the range starts with an '-' we start from the beginning
5074  // If not, we forward the file pointer
5075  // And make sure to get the end byte if spesified
5076  if ($range == '-') {
5077 
5078  // The n-number of the last bytes is requested
5079  $c_start = $size - substr($range, 1);
5080  }
5081  else {
5082 
5083  $range = explode('-', $range);
5084  $c_start = $range[0];
5085  $c_end = (isset($range[1]) && is_numeric($range[1])) ? $range[1] : $size;
5086  }
5087  /* Check the range and make sure it's treated according to the specs.
5088  * http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
5089  */
5090  // End bytes can not be larger than $end.
5091  $c_end = ($c_end > $end) ? $end : $c_end;
5092  // Validate the requested range and return an error if it's not correct.
5093  if ($c_start > $c_end || $c_start > $size - 1 || $c_end >= $size) {
5094 
5095  header('HTTP/1.1 416 Requested Range Not Satisfiable');
5096  header("Content-Range: bytes $start-$end/$size");
5097  // (?) Echo some info to the client?
5098  exit;
5099  }
5100  $start = $c_start;
5101  $end = $c_end;
5102  $length = $end - $start + 1; // Calculate new content length
5103  fseek($fp, $start);
5104  header('HTTP/1.1 206 Partial Content');
5105  }
5106  // Notify the client the byte range we'll be outputting
5107  header("Content-Range: bytes $start-$end/$size");
5108  header("Content-Length: $length");
5109 
5110  // Start buffered download
5111  $buffer = 1024 * 8;
5112  while(!feof($fp) && ($p = ftell($fp)) <= $end) {
5113 
5114  if ($p + $buffer > $end) {
5115 
5116  // In case we're only outputtin a chunk, make sure we don't
5117  // read past the length
5118  $buffer = $end - $p + 1;
5119  }
5120  set_time_limit(0); // Reset time limit for big files
5121  echo fread($fp, $buffer);
5122  flush(); // Free up memory. Otherwise large files will trigger PHP's memory limit.
5123  }
5124 
5125  fclose($fp);
5126  }
$size
Definition: RandomTest.php:79
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
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 public

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

References $file, and makeDir().

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(), ilExerciseDataSet\importRecord(), ilStyleDataSet\importRecord(), ilStyleImporter\importXmlRepresentation(), ilObjFileBasedLM\populateByDirectoy(), ilObjSAHSLearningModule\populateByDirectoy(), and ilFileDataCourse\rCopy().

1565  {
1566  // check if arguments are directories
1567  if (!@is_dir($a_sdir) or
1568  !@is_dir($a_tdir))
1569  {
1570  return FALSE;
1571  }
1572 
1573  // read a_sdir, copy files and copy directories recursively
1574  $dir = opendir($a_sdir);
1575 
1576  while($file = readdir($dir))
1577  {
1578  if ($file != "." and
1579  $file != "..")
1580  {
1581  // directories
1582  if (@is_dir($a_sdir."/".$file))
1583  {
1584  if (!@is_dir($a_tdir."/".$file))
1585  {
1586  if (!ilUtil::makeDir($a_tdir."/".$file))
1587  return FALSE;
1588 
1589  //chmod($a_tdir."/".$file, 0775);
1590  }
1591 
1592  if (!ilUtil::rCopy($a_sdir."/".$file,$a_tdir."/".$file))
1593  {
1594  return FALSE;
1595  }
1596  }
1597 
1598  // files
1599  if (@is_file($a_sdir."/".$file))
1600  {
1601  if (!copy($a_sdir."/".$file,$a_tdir."/".$file))
1602  {
1603  return FALSE;
1604  }
1605  if ($preserveTimeAttributes)
1606  touch($a_tdir."/".$file, filectime($a_sdir."/".$file));
1607  }
1608  }
1609  }
1610  return TRUE;
1611  }
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
+ Here is the call graph for this function:
+ 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 2258 of file class.ilUtil.php.

Referenced by deliverFile().

2259  {
2260  $chunksize = 1*(1024*1024); // how many bytes per chunk
2261  $buffer = '';
2262  $handle = fopen($a_file, 'rb');
2263  if ($handle === false)
2264  {
2265  return false;
2266  }
2267  while (!feof($handle))
2268  {
2269  $buffer = fread($handle, $chunksize);
2270  print $buffer;
2271  }
2272  return fclose($handle);
2273  }
+ Here is the caller graph for this function:

◆ redirect()

static ilUtil::redirect (   $a_script)
static

http redirect to other script

Parameters
string$a_scripttarget script

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

References $_SERVER, $log, array, defined, exit, ilPluginAdmin\getPluginObject(), header, IL_COMP_SERVICE, and ilUIHookPluginGUI\KEEP.

Referenced by ilWorkflowEngineSettingsGUI\__construct(), ilLearningProgressGUI\__getNextClass(), ilStartUpGUI\_checkGoto(), ilObjExternalFeedGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjMailGUI\_goto(), ilObjPollGUI\_goto(), ilObjGroupGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilUserProfileIncompleteRequestTargetAdjustmentCase\adjust(), ilTermsOfServiceRequestTargetAdjustmentCase\adjust(), ilUserPasswordResetRequestTargetAdjustmentCase\adjust(), ilObjMediaCastGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjIndividualAssessmentGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjStudyProgrammeGUI\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(), ilStartUpGUI\confirmRegistration(), 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(), ilObjMediaPoolGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), ilSetupGUI\flushCache(), ilAuthContainerApache\forceCreation(), ilAdministrationGUI\forward(), ilStartUpGUI\getAcceptance(), ilPublicUserProfileGUI\getHTML(), ilCtrl\getPathNew(), ilObjWorkflowEngineGUI\getType(), ilObjWikiGUI\gotoPageObject(), ilObjItemGroupGUI\gotoParent(), ilObjWikiGUI\gotoStartPageObject(), ilMembershipRegistrationCodeUtils\handleCode(), ilAuthContainerCAS\handleLDAPDataSource(), ilAuthContainerRadius\handleLDAPDataSource(), ilAuthContainerApache\handleLDAPDataSource(), ilNavigationHistoryGUI\handleNavigationRequest(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilWorkflowEngineDefinitionsGUI\handleUploadSubmit(), ilSharedResourceGUI\hasAccess(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObjectGUI\importFileObject(), ilObjSurveyGUI\importSurveyObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilEditClipboardGUI\insert(), ilSetupGUI\installDatabase(), ilPersonalDesktopGUI\jumpToBookmarks(), ilPersonalDesktopGUI\jumpToComments(), ilPersonalDesktopGUI\jumpToNotes(), ShibAuth\login(), ilAuthApache\login(), ilSetupGUI\loginClient(), ilAuthContainerRadius\loginObserver(), ilAuthContainerLDAP\loginObserver(), 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(), ilPersonalDesktopGUI\redirect(), ilCtrl\redirect(), ilInitialisation\redirect(), SurveyQuestionGUI\redirectAfterSaving(), ilCtrl\redirectByClass(), ilExerciseManagementGUI\redirectFeedbackMailObject(), ilObjCourseGUI\redirectLocToTestConfirmedObject(), ilObjCourseGUI\redirectLocToTestObject(), ilObjLinkResourceGUI\redirectToLink(), ilMailMemberSearchGUI\redirectToParentReferer(), ilTestExpressPageObjectGUI\redirectToQuestionPoolSelectionPage(), ilImprintGUI\renderFullscreen(), ilCtrl\returnToParent(), ilLMPageObjectGUI\save(), ilObjFileGUI\save(), assQuestionGUI\save(), ilContentStyleSettingsGUI\saveActiveStyles(), ilSetupGUI\saveBasicSettings(), ilSetupGUI\saveClientIni(), ilSetupGUI\saveContact(), ilSetupGUI\saveDbSlave(), ilMailFormGUI\saveDraft(), assQuestionGUI\saveEdit(), ilSetupGUI\saveLanguages(), ilSetupGUI\saveMasterPassword(), ilObjGlossaryGUI\saveObject(), ilObjSAHSLearningModuleGUI\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(), ilRemoteObjectBaseGUI\showObject(), ilObjForumGUI\showStatisticsObject(), ilWorkflowEngineDefinitionsGUI\stopListening(), ilTestPlayerDynamicQuestionSetGUI\submitSolutionCmd(), ilTestOutputGUI\submitSolutionCmd(), ilObjPollGUI\subscribe(), assQuestionGUI\sync(), ilSetupGUI\toggleClientList(), ilContentStyleSettingsGUI\toggleGlobalDefault(), ilContentStyleSettingsGUI\toggleGlobalFixed(), ilObjPortfolioGUI\toRepository(), ilAuthFrontendCredentialsApache\tryAuthenticationOnLoginPage(), ilObjPollGUI\unsubscribe(), ilObjFileGUI\update(), ilSetupGUI\updateBasicSettings(), ilSetupGUI\updateDatabase(), ilSetupGUI\updateMemcacheServer(), ilObjComponentSettingsGUI\updatePlugin(), ilObjSAHSLearningModuleGUI\uploadObject(), ilPublicUserProfileGUI\validateUser(), and ilObjPollGUI\vote().

3568  {
3569  global $log, $PHP_SELF;
3570 
3571 //echo "<br>".$a_script;
3572  if (!is_int(strpos($a_script, "://")))
3573  {
3574  if (substr($a_script, 0, 1) != "/" && defined("ILIAS_HTTP_PATH"))
3575  {
3576  if (is_int(strpos($_SERVER["PHP_SELF"], "/setup/")))
3577  {
3578  $a_script = "setup/".$a_script;
3579  }
3580  $a_script = ILIAS_HTTP_PATH."/".$a_script;
3581  }
3582  }
3583 //echo "<br>".$a_script; exit;
3584 
3585  // include the user interface hook
3586  global $ilPluginAdmin;
3587  if (is_object($ilPluginAdmin))
3588  {
3589  $pl_names = $ilPluginAdmin->getActivePluginsForSlot(IL_COMP_SERVICE, "UIComponent", "uihk");
3590  foreach ($pl_names as $pl)
3591  {
3592  $ui_plugin = ilPluginAdmin::getPluginObject(IL_COMP_SERVICE, "UIComponent", "uihk", $pl);
3593  $gui_class = $ui_plugin->getUIClassInstance();
3594  $resp = $gui_class->getHTML("Services/Utilities", "redirect", array("html" => $a_script));
3595  if ($resp["mode"] != ilUIHookPluginGUI::KEEP)
3596  {
3597  $a_script = $gui_class->modifyHTML($a_script, $resp);
3598  }
3599  }
3600  }
3601 
3602  // Manually trigger to write and close the session. This has the advantage that if an exception is thrown
3603  // during the writing of the session (ILIAS writes the session into the database by default) we get an exception
3604  // if the session_write_close() is triggered by exit() then the exception will be dismissed but the session
3605  // is never written, which is a nightmare to develop with.
3606  session_write_close();
3607 
3608  header("Location: ".$a_script);
3609  exit();
3610  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get Plugin Object.
Add a drawing to the header
Definition: 04printing.php:69
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
const IL_COMP_SERVICE
+ Here is the call graph for this function:
+ 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 3128 of file class.ilUtil.php.

References ilObjUser\_removeItemFromDesktops().

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

3129  {
3130  return ilObjUser::_removeItemFromDesktops($a_id);
3131  }
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 3818 of file class.ilUtil.php.

References rRenameSuffix().

Referenced by ilPCInteractiveImageGUI\create(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilSCORM13Package\dbImportSco(), ilSCORM2004ScoGUI\importSave(), 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().

3819  {
3820  $def_arr = explode(",", SUFFIX_REPL_DEFAULT);
3821  foreach ($def_arr as $def)
3822  {
3823  ilUtil::rRenameSuffix($a_dir, trim($def), "sec");
3824  }
3825 
3826  $def_arr = explode(",", SUFFIX_REPL_ADDITIONAL);
3827  foreach ($def_arr as $def)
3828  {
3829  ilUtil::rRenameSuffix($a_dir, trim($def), "sec");
3830  }
3831  }
static rRenameSuffix($a_dir, $a_old_suffix, $a_new_suffix)
Renames all files with certain suffix and gives them a new suffix.
+ 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 863 of file class.ilUtil.php.

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

864  {
865  $link = $matches[0];
866  $ref_id = $matches[2];
867 
868  if ($ref_id > 0)
869  {
870  $obj_id = ilObject::_lookupObjId($ref_id);
871  if ($obj_id > 0)
872  {
873  $title = ilObject::_lookupTitle($obj_id);
874  $link = "<a href=".$matches[1]." target=\"_self\">".$title."</a>";
875  }
876  }
877  return $link;
878  }
static _lookupTitle($a_id)
lookup object title
static _lookupObjId($a_id)
$ref_id
Definition: sahs_server.php:39
+ Here is the call graph for this function:

◆ replaceUrlParameterString()

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

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

References $url, and KT_replaceParam().

3911  {
3912 
3913  foreach ($parametersArray as $paramName => $paramValue ) {
3914  $url = ilUtil::KT_replaceParam($url, $paramName, $paramValue);
3915  }
3916  return $url;
3917  }
$url
Definition: shib_logout.php:72
static KT_replaceParam($qstring, $paramName, $paramValue)
+ 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 2060 of file class.ilUtil.php.

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

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

2061  {
2062  if ($a_constrain_prop)
2063  {
2064  $size = " -geometry ".$a_width."x".$a_height." ";
2065  }
2066  else
2067  {
2068  $size = " -resize ".$a_width."x".$a_height."! ";
2069  }
2070  $convert_cmd = ilUtil::escapeShellArg($a_from)." ".$size.ilUtil::escapeShellArg($a_to);
2071 
2072  ilUtil::execConvert($convert_cmd);
2073  }
$size
Definition: RandomTest.php:79
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 3845 of file class.ilUtil.php.

References $file.

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

3846  {
3847  if ($a_dir == "/" || $a_dir == "" || is_int(strpos($a_dir, ".."))
3848  || trim($a_old_suffix) == "")
3849  {
3850  return false;
3851  }
3852 
3853  // check if argument is directory
3854  if (!@is_dir($a_dir))
3855  {
3856  return false;
3857  }
3858 
3859  // read a_dir
3860  $dir = opendir($a_dir);
3861 
3862  while($file = readdir($dir))
3863  {
3864  if ($file != "." and
3865  $file != "..")
3866  {
3867  // directories
3868  if (@is_dir($a_dir."/".$file))
3869  {
3870  ilUtil::rRenameSuffix($a_dir."/".$file, $a_old_suffix, $a_new_suffix);
3871  }
3872 
3873  // files
3874  if (@is_file($a_dir."/".$file))
3875  {
3876  // first check for files with trailing dot
3877  if(strrpos($file,'.') == (strlen($file) - 1))
3878  {
3879  rename($a_dir.'/'.$file,substr($a_dir.'/'.$file,0,-1));
3880  $file = substr($file,0,-1);
3881  }
3882 
3883  $path_info = pathinfo($a_dir."/".$file);
3884 
3885  if (strtolower($path_info["extension"]) ==
3886  strtolower($a_old_suffix))
3887  {
3888  $pos = strrpos($a_dir."/".$file, ".");
3889  $new_name = substr($a_dir."/".$file, 0, $pos).".".$a_new_suffix;
3890  rename($a_dir."/".$file, $new_name);
3891  }
3892  }
3893  }
3894  }
3895  return true;
3896  }
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:

◆ secureLink()

static ilUtil::secureLink (   $a_str)
static

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

References array.

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

2977  {
2978  $a_str = str_ireplace("javascript", "jvscrpt", $a_str);
2979  $a_str = str_ireplace(array("%00", "%0a", "%0d", "%1a", "&#00;", "&#x00;",
2980  "&#0;", "&#x0;", "&#x0a;", "&#x0d;", "&#10;", "&#13;"), "-", $a_str);
2981  return $a_str;
2982  }
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 2808 of file class.ilUtil.php.

Referenced by ilMailFormGUI\cancelMail(), ilMailFormGUI\editAttachments(), ilMailFormGUI\getTemplateDataById(), ilMailFormGUI\saveDraft(), ilMailFormGUI\searchUsers(), and ilMailFormGUI\sendMessage().

2809  {
2810  if (ini_get("magic_quotes_gpc"))
2811  {
2812  return stripslashes($a_str);
2813  }
2814  else
2815  {
2816  return $a_str;
2817  }
2818  }
+ 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 2673 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().

2674  {
2675  // check whether all allowed tags can be made secure
2676  $only_secure = true;
2677  $allow_tags = explode(">", $a_allow);
2678  $sec_tags = ilUtil::getSecureTags();
2679  $allow_array = array();
2680  foreach($allow_tags as $allow)
2681  {
2682  if ($allow != "")
2683  {
2684  $allow = str_replace("<", "", $allow);
2685 
2686  if (!in_array($allow, $sec_tags))
2687  {
2688  $only_secure = false;
2689  }
2690  $allow_array[] = $allow;
2691  }
2692  }
2693 
2694  // default behaviour: allow only secure tags 1:1
2695  if (($only_secure || $a_allow == "") && $a_strip_html)
2696  {
2697  if ($a_allow == "")
2698  {
2699  $allow_array = array ("b", "i", "strong", "em", "code", "cite",
2700  "gap", "sub", "sup", "pre", "strike", "bdo");
2701  }
2702 
2703  // this currently removes parts of strings like "a <= b"
2704  // because "a <= b" is treated like "<spam onclick='hurt()'>ss</spam>"
2705  $a_str = ilUtil::maskSecureTags($a_str, $allow_array);
2706  $a_str = strip_tags($a_str); // strip all other tags
2707  $a_str = ilUtil::unmaskSecureTags($a_str, $allow_array);
2708 
2709  // a possible solution could be something like:
2710  // $a_str = str_replace("<", "&lt;", $a_str);
2711  // $a_str = str_replace(">", "&gt;", $a_str);
2712  // $a_str = ilUtil::unmaskSecureTags($a_str, $allow_array);
2713  //
2714  // output would be ok then, but input fields would show
2715  // "a &lt;= b" for input "a <= b" if data is brought back to a form
2716  }
2717  else
2718  {
2719  // only for scripts, that need to allow more/other tags and parameters
2720  if ($a_strip_html)
2721  {
2722  $a_str = ilUtil::stripScriptHTML($a_str, $a_allow);
2723  }
2724  }
2725 
2726  return $a_str;
2727  }
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 3084 of file class.ilUtil.php.

References $url.

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

3085  {
3086  // check if url is valid (absolute or relative)
3087  if (filter_var($url, FILTER_VALIDATE_URL) === false &&
3088  filter_var("http://".$url, FILTER_VALIDATE_URL) === false &&
3089  filter_var("http:".$url, FILTER_VALIDATE_URL) === false &&
3090  filter_var("http://de.de".$url, FILTER_VALIDATE_URL) === false &&
3091  filter_var("http://de.de/".$url, FILTER_VALIDATE_URL) === false)
3092  {
3093  return "";
3094  }
3095  if (trim(strtolower(parse_url($url, PHP_URL_SCHEME))) == "javascript")
3096  {
3097  return "";
3098  }
3099  $url = htmlspecialchars($url, ENT_QUOTES);
3100  return $url;
3101  }
$url
Definition: shib_logout.php:72
+ 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 4771 of file class.ilUtil.php.

References $tpl.

Referenced by ilLocalUserGUI\__checkGlobalRoles(), ilTestScoringByQuestionsGUI\__construct(), ilAssQuestionFeedbackPageObjectCommandForwarder\__construct(), ilTestToplistGUI\__construct(), ilDclTableListGUI\__construct(), ilOrgUnitSimpleImportGUI\__construct(), ilOrgUnitSimpleUserImportGUI\__construct(), ilExtIdGUI\__construct(), ilSystemStyleIconsGUI\__construct(), ilDclTableViewGUI\__construct(), ilLocalUserGUI\__construct(), ilDclTableEditGUI\__construct(), ilAssQuestionHintPageObjectCommandForwarder\__construct(), ilDclFieldListGUI\__construct(), ilDclDetailedViewGUI\__construct(), ilStyleDefinition\__construct(), ilCourseArchivesGUI\__showArchivesMenu(), ilLocalUserGUI\__showRolesTable(), ilLPListOfObjectsGUI\__showUsersList(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilUploadFiles\_copyUploadFile(), ilObjItemGroupGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilLMPageObjectGUI\_goto(), ilObjMailGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjExerciseGUI\_goto(), ilStructureObjectGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilGlossaryTermGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjFileGUI\_goto(), ilObjWikiGUI\_goto(), ilObjGroupGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjCategoryGUI\_importCategories(), ilCalendarInboxGUI\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(), ilOrgUnitStaffGUI\addStaff(), ilContainerStartObjectsGUI\addStarterObject(), ilMailFolderGUI\addSubfolderCommands(), 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(), ilObjSessionGUI\assignFromWaitingListObject(), ilGroupMembershipGUI\assignMembers(), ilCourseMembershipGUI\assignMembers(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilLocalUserGUI\assignSave(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilMembershipGUI\assignSubscribers(), ilObjSessionGUI\assignSubscribersObject(), 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(), ilSurveyExecutionGUI\checkAuth(), ilSurveyEvaluationGUI\checkEvaluationAccess(), ilAssQuestionHintsGUI\checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), ilAssQuestionHintsGUI\checkForSingleHintIdAndRedirectOnFailure(), ilDclFieldEditGUI\checkInput(), ilDclTableEditGUI\checkInput(), ilPropertyFormGUI\checkInput(), ilSharedResourceGUI\checkPassword(), ilObjWorkspaceFolderGUI\checkPassword(), ilContainerStartObjectsGUI\checkPermission(), ilSystemStyleMainGUI\checkPermission(), ilLocalUserGUI\checkPermission(), 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(), ilObjSessionGUI\confirmAssignFromWaitingListObject(), ilExAssignmentEditorGUI\confirmAssignmentsDeletionObject(), ilMembershipGUI\confirmAssignSubscribers(), ilObjSessionGUI\confirmAssignSubscribersObject(), 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(), 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(), ilObjSessionGUI\confirmRefuseFromListObject(), ilMembershipGUI\confirmRefuseSubscribers(), ilObjSessionGUI\confirmRefuseSubscribersObject(), 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(), ilObjExerciseVerificationGUI\create(), ilObjCourseVerificationGUI\create(), ilObjSCORMVerificationGUI\create(), ilBookmarkAdministrationGUI\createBookmark(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilFileSystemGUI\createDirectory(), ilDclExportGUI\createExportFile(), ilPCFileListGUI\createFileItem(), 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(), ilCalendarInboxGUI\declineShared(), ilErrorHandling\defaultHandler(), ilOrgUnitTypeGUI\delete(), ilStudyProgrammeTypeGUI\delete(), ilCourseArchivesGUI\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(), ilMembershipGUI\deleteParticipants(), ilPageLayoutAdministrationGUI\deletePgl(), ilAdvancedMDSettingsGUI\deleteRecords(), ilLDAPSettingsGUI\deleteRoleMapping(), ilLDAPSettingsGUI\deleteRules(), ilAuthShibbolethSettingsGUI\deleteRules(), ilSurveyParticipantsGUI\deleteSavedMessageObject(), ilLDAPSettingsGUI\deleteServerSettings(), ilContainerStartObjectsGUI\deleteStarterObject(), 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(), 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\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilDclStandardField\doRead(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilCourseArchivesGUI\downloadArchives(), ilExSubmissionGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilExSubmissionGUI\downloadFileObject(), 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(), ilObjLinkResourceGUI\editLink(), ilMembershipGUI\editParticipants(), ilExPeerReviewGUI\editPeerReviewObject(), ilSurveyPhrasesGUI\editPhrase(), assNumericGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), ilLDAPSettingsGUI\editRoleAssignment(), ilCloudPluginSettingsGUI\editSettings(), ilObjOrgUnitGUI\editSettings(), ilObjCategoryGUI\editTaxonomySettingsObject(), ilDidacticTemplateSettingsGUI\editTemplate(), ilLPListOfObjectsGUI\editUser(), ilMarkSchemaGUI\ensureEctsGradesCanBeEdited(), ilMarkSchemaGUI\ensureMarkSchemaCanBeEdited(), ilSurveyEvaluationGUI\evaluation(), ilSurveyEvaluationGUI\evaluationuser(), ilUIPluginRouterGUI\executeCommand(), ilLPTableBaseGUI\executeCommand(), ilObjectActivationGUI\executeCommand(), ilRadiusSettingsGUI\executeCommand(), ilSurveyPageGUI\executeCommand(), ilMailAttachmentGUI\executeCommand(), ilObjCloudGUI\executeCommand(), ilLDAPSettingsGUI\executeCommand(), ilRepositoryObjectSearchGUI\executeCommand(), ilCASSettingsGUI\executeCommand(), ilAuthShibbolethSettingsGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilSystemStyleMainGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilMemberExportGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilTestScoringGUI\executeCommand(), ilDclRecordListGUI\executeCommand(), ilAdministrationGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilDclDetailedViewGUI\executeCommand(), ilTestRandomQuestionSetConfigGUI\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(), ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilStudyProgrammeTypeFormGUI\fillObject(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationType(), ilCourseRegistrationGUI\fillRegistrationType(), ilIndividualAssessmentMemberGUI\finalize(), ilIndividualAssessmentMemberGUI\finalizeConfirmation(), ilCourseObjectivesGUI\finalSeparatedTestAssignment(), ilCourseObjectivesGUI\finalTestAssignment(), ilCourseObjectivesGUI\finalTestLimits(), ilSCTreeTasksGUI\findMissing(), ilSCTreeTasksGUI\findMissingTreeEntries(), ilOrgUnitStaffGUI\fromEmployeeToSuperior(), ilOrgUnitStaffGUI\fromSuperiorToEmployee(), ilUnitConfigurationGUI\getCategoryById(), ilMembershipGUI\getDefaultRole(), ilObjCloudGUI\getFile(), ilTestExportPlugin\getFormat(), ilCronManagerGUI\getMultiActionData(), ilExerciseManagementGUI\getMultiActionUserIds(), ilBadgeProfileGUI\getMultiSelection(), ilMailTemplateGUI\getTemplateForm(), ilTestSkillLevelThresholdsGUI\getTestId(), ilMailAttachmentGUI\getToolbarForm(), ilObjectPermissionStatusGUI\getUser(), ilObjWikiGUI\gotoPageObject(), ilLPListOfSettingsGUI\groupMaterials(), ilTestRandomQuestionSetConfigStateMessageHandler\handle(), ilWebAccessCheckerDelivery\handleAccessErrors(), ilMembershipRegistrationCodeUtils\handleCode(), ilObjBibliographicGUI\handleNonAccess(), ilECSObjectSettings\handleSettingsUpdate(), ilTestOutputGUI\handleTearsAndAngerNoObjectiveOrientedQuestion(), ilObjSystemCheckGUI\handleTrashAction(), ilCalendarCategoryGUI\importAppointments(), ilSurveyParticipantsGUI\importExternalRecipientsFromFileObject(), ilSurveyParticipantsGUI\importExternalRecipientsFromTextObject(), ilBookmarkAdministrationGUI\importFile(), ilObjectGUI\importFileObject(), ilAdvancedMDSettingsGUI\importRecord(), ilObjSurveyGUI\importSurveyObject(), ilDidacticTemplateSettingsGUI\importTemplate(), ilMediaPoolImportGUI\importTranslation(), ilLMImportGUI\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(), 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(), moveUploadedFile(), 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(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilMailFolderGUI\performRenameSubFolder(), ilRepositoryObjectSearchGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilObjWikiGUI\performSearchObject(), ilDclTableViewEditGUI\permissionDenied(), ilObjRoleTemplateGUI\permObject(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilSystemStyleIconsGUI\preview(), ilObjSystemFolderGUI\printProxyStatus(), ilSetup\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(), ilObjSessionGUI\refuseFromListObject(), ilMembershipGUI\refuseSubscribers(), ilObjSessionGUI\refuseSubscribersObject(), 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(), ilRepUtilGUI\restoreObjects(), ilObjRoleFolderGUI\roleSearchFormObject(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjTestVerificationGUI\save(), ilObjExerciseVerificationGUI\save(), ilObjCourseVerificationGUI\save(), ilObjSCORMVerificationGUI\save(), ilCalendarUserSettingsGUI\save(), ilCalendarCategoryGUI\save(), ilObjLinkResourceGUI\save(), ilSystemStyleSettingsGUI\save(), ilObjCalendarSettingsGUI\save(), ilRadiusSettingsGUI\save(), ilRegistrationSettingsGUI\save(), ilCASSettingsGUI\save(), ilMemberAgreementGUI\save(), SurveyQuestionGUI\save(), ilCalendarAppointmentGUI\save(), ilLDAPSettingsGUI\save(), ilObjPrivacySecurityGUI\save_privacy(), ilObjLinkResourceGUI\saveAddLink(), ilSubStyleAssignmentGUI\saveAssignment(), ilRegistrationSettingsGUI\saveAssignment(), ilSetupGUI\saveBasicSettings(), ilExSubmissionObjectGUI\saveBlogObject(), ilObjMediaCastGUI\saveCastItemObject(), ilUnitConfigurationGUI\saveCategory(), ilSetupGUI\saveClientIni(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilObjContentObjectGUI\saveExportIds(), ilAssQuestionFeedbackEditingGUI\saveFeedbackFormCmd(), 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(), ilInfoScreenGUI\saveProgress(), ilObjSurveyGUI\savePropertiesObject(), ilSetupGUI\saveProxy(), ilObjSystemFolderGUI\saveProxyObject(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilAdvancedMDSettingsGUI\saveRecord(), ilSetupGUI\saveRegistration(), ilRegistrationSettingsGUI\saveRoleAccessLimitations(), ilLDAPSettingsGUI\saveRoleSelection(), ilConsultationHoursGUI\saveSequence(), ilLPListOfSettingsGUI\saveSettings(), ilECSParticipantSettingsGUI\saveSettings(), ilObjTermsOfServiceGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilLOEditorGUI\saveSettings(), ilSingleUserShareGUI\saveShare(), ilAssQuestionSkillAssignmentsGUI\saveSkillPointsCmd(), ilAssQuestionSkillAssignmentsGUI\saveSkillQuestionAssignmentPropertiesFormCmd(), ilObjectCopyGUI\saveSource(), ilObjectCopyGUI\saveSourceMembership(), ilObjectCopyGUI\saveTarget(), ilLOEditorGUI\saveTest(), ilTranslationGUI\saveTranslations(), ilMultilingualismGUI\saveTranslations(), ilObjectTranslationGUI\saveTranslations(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilObjFileGUI\saveUnzip(), ilSurveyExecutionGUI\saveUserInput(), 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(), ilAssQuestionHintGUI\showFormCmd(), ilObjTestDynamicQuestionSetConfigGUI\showFormCmd(), ilExPeerReviewGUI\showGivenPeerReviewObject(), ilObjectCopyGUI\showItemSelection(), ilLPObjectStatisticsGUI\showLearningProgressGraph(), ilStartUpGUI\showLogin(), ilStartUpGUI\showLoginPage(), ilOrgUnitStaffGUI\showOtherRoles(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintView(), ilExPeerReviewGUI\showReceivedPeerReviewObject(), ilOrgUnitStaffGUI\showStaff(), ilOrgUnitStaffGUI\showStaffRec(), ilMailTemplateGUI\showTemplates(), ilLPObjectStatisticsGUI\showTypesGraph(), ilStartUpGUI\showUserMappingSelection(), ilLPListOfObjectsGUI\showUserObjectMatrix(), ilCourseContentGUI\showUserTimings(), ilStyleDefinition\skinExists(), ilOrgUnitSimpleUserImportGUI\startImport(), ilOrgUnitSimpleImportGUI\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(), ilObjectActivationGUI\update(), ilSystemStyleLessGUI\update(), ilCalendarCategoryGUI\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(), ilObjectCustomUserFieldsGUI\updateField(), ilCustomUserFieldsGUI\updateFields(), ilAdvancedMDSettingsGUI\updateFields(), ilCourseObjectivesGUI\updateFinalTestAssignment(), ilCourseObjectivesGUI\updateFinalTestLimits(), ilMDEditorGUI\updateGeneral(), ilConsultationHoursGUI\updateGroup(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilObjLinkResourceGUI\updateLinks(), ilCourseObjectivesGUI\updateMaterialAssignment(), ilConsultationHoursGUI\updateMulti(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjRoleGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjSessionGUI\updateObject(), ilMembershipGUI\updateParticipants(), ilExPeerReviewGUI\updatePeerReviewObject(), ilObjComponentSettingsGUI\updatePlugin(), 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(), ilChatroomAdminSmileyGUI\updateSmiliesObject(), ilMailTemplateGUI\updateTemplate(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilCourseContentGUI\updateTimings(), ilECSSettingsGUI\updateTitle(), ilObjectServiceSettingsGUI\updateToolSettings(), ilLPListOfObjectsGUI\updateUser(), ilCourseContentGUI\updateUserTimings(), ilCalendarCategoryGUI\uploadAppointments(), assOrderingQuestionGUI\uploadElementImage(), ilFileSystemGUI\uploadFile(), ilExSubmissionFileGUI\uploadFileObject(), ilExerciseManagementGUI\uploadMultiFeedbackObject(), ilLMMultiSrtUploadGUI\uploadMultipleSubtitleFile(), ilObjMediaObjectGUI\uploadMultipleSubtitleFileObject(), 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(), assLongMenuGUI\writePostData(), assKprimChoiceGUI\writePostData(), and assFormulaQuestionGUI\writePostData().

4772  {
4773  global $tpl;
4774 
4775  if(is_object($tpl))
4776  {
4777  $tpl->setMessage("failure", $a_info, $a_keep);
4778  }
4779  }
global $tpl
Definition: ilias.php:8
+ 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 4757 of file class.ilUtil.php.

References $tpl.

Referenced by ilChatroomSettingsGUI\__construct(), ilSurveySkillThresholdsTableGUI\__construct(), ilTestScoringByQuestionsGUI\__construct(), ilObjChatroomGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), FormMailCodesGUI\__construct(), ilRepositorySearchGUI\__performCourseSearch(), ilRepositorySearchGUI\__performGroupSearch(), ilRepositorySearchGUI\__performRoleSearch(), ilRepositorySearchGUI\__performUserSearch(), ilObjRoleGUI\__prepareOutput(), ilObjLinkResourceGUI\__prepareOutput(), ilUserSearchFilter\__searchObjects(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilUploadFiles\_copyUploadFile(), ilObjSAHSLearningModuleGUI\_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(), ilObjSCORMLearningModuleGUI\cancel(), ilObjStyleSheetGUI\cancelCharacteristicDeletionObject(), ilContentStyleSettingsGUI\cancelDelete(), ilPageLayoutAdministrationGUI\cancelDeletePg(), ilSurveyParticipantsGUI\cancelDeleteSelectedUserDataObject(), ilObjSCORMLearningModuleGUI\cancelDeleteTracking(), SurveyQuestionGUI\cancelExplorer(), ilObjForumGUI\cancelMoveThreadsObject(), 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(), ilMailingListsGUI\confirmDelete(), ilConsultationHoursGUI\confirmDelete(), ilObjPollGUI\confirmDeleteAllVotes(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilObjMDSettingsGUI\confirmDeleteEntries(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilMailFolderGUI\confirmDeleteMails(), ilMailingListsGUI\confirmDeleteMembers(), ilSkillProfileGUI\confirmDeleteProfiles(), ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjForumGUI\confirmDeleteThreads(), ilExcCriteriaCatalogueGUI\confirmDeletion(), ilExcCriteriaGUI\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(), 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(), ilObjForumGUI\createThreadObject(), ilSkillTreeNodeGUI\cutItems(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilContainerGUI\cutObject(), ilObjSCORMLearningModuleGUI\decreaseAttempts(), 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(), ilObjStyleSheetGUI\deleteTemplateConfirmationObject(), ilObjForumGUI\deleteThreadDraftsObject(), ilMailFolderGUI\deliverFile(), ilTestEvaluationGUI\detailedEvaluation(), ilExSubmissionObjectGUI\directSubmitObject(), ilScoringAdjustmentGUI\dispatchCommand(), ilSetupGUI\displayClientList(), ilObjForumGUI\displayConfirmPostActivation(), ilSetupGUI\displayDatabase(), ilSetupGUI\displayDatabaseSlave(), ilSetupGUI\displayDeleteConfirmation(), ilBookmarkAdministrationGUI\displayHeader(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilSetupGUI\displaySessions(), ilSetupGUI\displayTools(), ilDclDetailedViewGUI\doExtReplace(), ilObjSurveyQuestionPoolGUI\downloadExportFileObject(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilContainerGUI\downloadMultipleObjects(), ilBasicSkillGUI\edit(), ilBasicSkillTemplateGUI\edit(), ilPageObjectGUI\edit(), ilExSubmissionTextGUI\editAssignmentTextObject(), ilBadgeManagementGUI\editBadge(), ilECSSettingsGUI\editCategoryMapping(), ilAdvancedMDSettingsGUI\editFields(), ilMailFolderGUI\editFolder(), ilObjWikiGUI\editImportantPagesObject(), ilBasicSkillGUI\editLevel(), ilImageMapEditorGUI\editMapArea(), ilObjBookingPoolGUI\editObject(), ilExPeerReviewGUI\editPeerReviewObject(), ilObjFileAccessSettingsGUI\editPreviewSettings(), ilSkillTreeNodeGUI\editProperties(), ilObjContentObjectGUI\editPublicSection(), ilObjHelpSettingsGUI\editSettings(), ilObjBlogAdministrationGUI\editSettings(), ilObjDataCollectionGUI\emptyInfo(), ilTestPlayerAbstractGUI\endingTimeReached(), ilObjContentObjectGUI\executeCommand(), ilObjPortfolioGUI\executeCommand(), ilExerciseManagementGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilMailGUI\executeCommand(), ilDclTableListGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilObjQuestionPoolSettingsGeneralGUI\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(), ilMailFormGUI\getTemplateDataById(), assFormulaQuestionGUI\getTestOutput(), ilObjectPermissionStatusGUI\getUser(), ilObjForumGUI\getUserNotificationTableData(), ilTestRandomQuestionSetConfigStateMessageHandler\handle(), ilAssQuestionSkillAssignmentsGUI\handleAssignmentConfigurationHintMessage(), ilObjSCORMLearningModuleGUI\import(), ilECSSettingsGUI\importMappings(), ilObjUserFolderGUI\importUsersObject(), ilLocalUserGUI\index(), ilObjSurveyGUI\infoScreen(), ilObjPortfolioGUI\initBlogForm(), 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(), ilSkillRootGUI\listSkills(), ilPersonalSkillsGUI\listSkillsForAdd(), ilObjTaxonomyGUI\listTaxonomies(), ilSkillRootGUI\listTemplates(), ilObjectTranslationGUI\listTranslations(), ilObjCategoryGUI\listUsersObject(), ilContainerGUI\lockObject(), ilMailSearchGroupsGUI\mail(), ilMailSearchCoursesGUI\mail(), ilMailingListsGUI\mailToList(), ilContactGUI\mailToUsers(), ilExerciseManagementGUI\membersObject(), ilObjForumGUI\mergeThreadsObject(), ilPermissionGUI\modifyBlockRoles(), ilBookmarkAdministrationGUI\move(), ilObjContentObjectGUI\moveChapter(), ilObjTaxonomyGUI\moveItems(), ilObjSurveyQuestionPoolGUI\moveObject(), ilObjQuestionPoolGUI\moveObject(), ilObjContentObjectGUI\movePage(), ilObjTestGUI\movePageObject(), ilSurveyEditorGUI\moveQuestionsObject(), moveUploadedFile(), 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(), ilObjMailGUI\performImportObject(), ilObjForumGUI\performMoveThreadsObject(), ilObjForumGUI\performPostActivationObject(), ilMailFolderGUI\performRenameSubFolder(), ilAdvancedSearchGUI\performSearch(), ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilSurveyPhrasesGUI\phrases(), ilTestPlayerAbstractGUI\populateKioskHead(), ilTestPlayerFixedQuestionSetGUI\populateQuestionOptionalMessage(), ilTestPlayerRandomQuestionSetGUI\populateQuestionOptionalMessage(), ilImprintGUI\postOutputProcessing(), ilWikiPageGUI\preview(), ilObjBlogGUI\preview(), ilSurveyEvaluationGUI\printEvaluation(), ilObjTestGUI\printobject(), ilWorkflowEngineDefinitionsGUI\processUploadFormCancellation(), 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(), 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(), ilObjTestDynamicQuestionSetConfigGUI\showFormCmd(), ilGlossaryForeignTermCollectorGUI\showGlossarySelector(), ilObjectCopyGUI\showItemSelection(), ilObjSessionGUI\showJoinRequestButton(), ilMarkSchemaGUI\showMarkSchema(), ilMailSearchGroupsGUI\showMembers(), ilMailSearchCoursesGUI\showMembers(), ilObjTermsOfServiceGUI\showMissingDocuments(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), ilExerciseManagementGUI\showMultiFeedbackObject(), ilExerciseManagementGUI\showParticipantObject(), ilObjPollGUI\showParticipants(), ilObjPollGUI\showParticipantVotes(), ilPersonalSettingsGUI\showPassword(), ilContainerGUI\showPasswordInstructionObject(), ilPersonalProfileGUI\showPersonalData(), ilObjPrivacySecurityGUI\showPrivacy(), ilRepositorySelectorInputGUI\showRepositorySelection(), ilMailSearchGUI\showResults(), ilLuceneAdvancedSearchGUI\showSavedResults(), ilLuceneSearchGUI\showSavedResults(), ilObjectCopyGUI\showSourceSelectionMembership(), ilObjectCopyGUI\showSourceSelectionTree(), ilObjForumGUI\showStatisticsObject(), ilMailFormGUI\showSubmissionErrors(), ilObjectCopyGUI\showTargetSelectionTree(), ilObjWikiGUI\showTemplateSelectionObject(), ilMediaPoolImportGUI\showTranslationImportForm(), ilLMImportGUI\showTranslationImportForm(), ilRepUtilGUI\showTrashTable(), ilObjForumGUI\showUserObject(), ilObjTestGUI\showUserResults(), ilObjSystemFolderGUI\showVcsInformationObject(), ilTestEvaluationGUI\singleResults(), ilSkillSelfEvaluationGUI\startSelfEvaluation(), ilWorkflowEngineDefinitionsGUI\stopListening(), ilExSubmissionFileGUI\submissionScreenObject(), ilExSubmissionTeamGUI\submissionScreenTeamObject(), ilContactGUI\submitInvitation(), assQuestionGUI\suggestedsolution(), assFlashQuestionGUI\suggestRange(), assFormulaQuestionGUI\suggestRange(), ilSetupGUI\switchTree(), ilOrgUnitSimpleUserImportGUI\testImport(), ilObjTestGUI\timingObject(), ilSetupGUI\toggleClientList(), ilBuddySystemGUI\transitionCommand(), ilSurveyEditorGUI\unfoldQuestionblockObject(), ilSkillProfileGUI\update(), ilECSSettingsGUI\update(), ilECSSettingsGUI\updateCategoryMapping(), ilSetupGUI\updateDatabase(), ilObjMDSettingsGUI\updateEntry(), ilAdvancedMDSettingsGUI\updateField(), ilObjStyleSheetGUI\updateObject(), ilObjComponentSettingsGUI\updatePluginDB(), ilPageLayoutGUI\updateProperties(), ilSCORM2004ScoGUI\updateProperties(), ilSkillSelfEvaluationGUI\updateSelfEvaluation(), ilObjSearchSettingsGUI\updateSettingsObject(), ilChatroomAdminSmileyGUI\updateSmiliesObject(), ilObjTaxonomyGUI\updateTaxNode(), ilObjForumGUI\updateThreadObject(), ilExSubmissionFileGUI\uploadFileObject(), ilLMMultiSrtUploadGUI\uploadMultipleSubtitleFileForm(), ilObjMediaObjectGUI\uploadMultipleSubtitleFileFormObject(), ilObjMailGUI\uploadObject(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjTestGUI\uploadTstObject(), ilExSubmissionFileGUI\uploadZipObject(), ilObjContentObject\validatePages(), ilPDNotesGUI\view(), ilObjStudyProgrammeMembersGUI\view(), ilObjPortfolioBaseGUI\view(), ilObjLanguageExtGUI\viewObject(), ilObjWikiGUI\viewPageObject(), assSingleChoiceGUI\writeQuestionSpecificPostData(), and assMultipleChoiceGUI\writeQuestionSpecificPostData().

4758  {
4759  global $tpl;
4760  $tpl->setMessage("info", $a_info, $a_keep);
4761  }
global $tpl
Definition: ilias.php:8
+ Here is the caller graph for this function:

◆ sendQuestion()

◆ 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 4801 of file class.ilUtil.php.

References $tpl.

Referenced by ilChatroomSettingsGUI\__construct(), ilTestScoringByQuestionsGUI\__construct(), ilWorkflowEngineSettingsGUI\__construct(), ilObjStudyProgrammeMembersGUI\_addUsers(), ilChatroomAdminSmileyGUI\_checkSetup(), ilChatroomSmilies\_checkSetup(), ilObjCategoryGUI\_importCategories(), ilCalendarInboxGUI\acceptShared(), ilECSSettingsGUI\activate(), ilPageLayoutAdministrationGUI\activate(), ilBadgeProfileGUI\activate(), ilAuthLoginPageEditorGUI\activate(), ilObjSCORM2004LearningModuleGUI\activateExpertMode(), 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(), 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(), ilOrgUnitStaffGUI\addStaff(), ilContainerStartObjectsGUI\addStarterObject(), ilPCTabsGUI\addTab(), ilExSubmissionTeamGUI\addTeamMemberActionObject(), ilLPTableBaseGUI\addToClipboard(), ilMembershipGUI\addToClipboard(), ilObjRoleGUI\addToClipboardObject(), ilObjUserFolderGUI\addToClipboardObject(), ilPDSelectedItemsBlockGUI\addToDeskObject(), ilObjBibliographicGUI\addToDeskObject(), ilContainerGUI\addToDeskObject(), ilObjBlogGUI\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(), ilObjItemGroupGUI\afterSave(), ilObjMediaCastGUI\afterSave(), ilObjBookingPoolGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjExerciseGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjPortfolioTemplateGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjIndividualAssessmentGUI\afterSave(), ilObjTaxonomyGUI\afterSave(), ilObjectPluginGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjDataCollectionGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjPortfolioGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjGroupGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjTestGUI\afterSave(), ilObjectGUI\afterSave(), ilObjForumGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjCloudGUI\afterServiceAuth(), ilObjectGUI\afterUpdate(), ilSCTreeTasksGUI\analyzeStructure(), ilObjTestGUI\applyDefaultsObject(), ilSurveyParticipantsGUI\appraiseeCloseObject(), ilObjBlogGUI\approve(), ilLPListOfSettingsGUI\assign(), ilConditionHandlerGUI\assign(), ilBadgeManagementGUI\assignBadge(), ilObjCourseGroupingGUI\assignCourse(), ilObjRoleGUI\assignDesktopItemObject(), ilMembershipGUI\assignFromWaitingList(), ilObjSessionGUI\assignFromWaitingListObject(), ilSkillProfileGUI\assignLevelToProfile(), ilGroupMembershipGUI\assignMembers(), ilCourseMembershipGUI\assignMembers(), ilLocalUserGUI\assignSave(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilMembershipGUI\assignSubscribers(), ilObjSessionGUI\assignSubscribersObject(), 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(), 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(), ilObjForumGUI\confirmMergeThreadsObject(), ilSurveyEditorGUI\confirmRemoveQuestionsObject(), ilObjTestGUI\confirmRemoveQuestionsObject(), SurveyQuestionGUI\confirmSavePhrase(), ilWikiPageGUI\confirmWikiPageDeletion(), ilPageContentGUI\copy(), 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(), ilObjBibliographicAdminLibrariesGUI\create(), ilDclTableViewEditGUI\create(), ilPCInteractiveImageGUI\create(), ilOrgUnitTypeGUI\create(), ilStudyProgrammeTypeGUI\create(), ilCustomUserFieldsGUI\create(), ilPCMediaObjectGUI\create(), ilExSubmissionTeamGUI\createAdoptedTeamObject(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilAccountCodesGUI\createCodes(), ilRegistrationSettingsGUI\createCodes(), ilFileSystemGUI\createDirectory(), ilExportGUI\createExportFile(), ilObjWikiGUI\createPageUsingTemplateObject(), ilObjPortfolioGUI\createPortfolioFromTemplateProcess(), ilExSubmissionObjectGUI\createPortfolioObject(), ilChatroomAdminViewGUI\createPublicRoom(), ilLDAPSettingsGUI\createRoleMapping(), ilExSubmissionTeamGUI\createSingleMemberTeamObject(), ilSurveyParticipantsGUI\createSurveyCodesObject(), ilDclTableViewEditFormGUI\createTableView(), ilExSubmissionTeamGUI\createTeamObject(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExerciseManagementGUI\createTeamsObject(), ilObjForumGUI\createThreadObject(), ilECSMappingSettingsGUI\cSaveOverview(), ilECSMappingSettingsGUI\cUpdateSettings(), ilPageContentGUI\cut(), ilSurveyPageGUI\cutQuestion(), ilPageEditorGUI\cutSelected(), ilECSMappingSettingsGUI\dDeleteTree(), ilECSSettingsGUI\deactivate(), ilBadgeProfileGUI\deactivate(), ilObjBlogGUI\deactivateAdmin(), ilObjectTranslationGUI\deactivateContentMultiLang(), ilObjLinkResourceGUI\deactivateLink(), ilObjHelpSettingsGUI\deactivateModule(), ilLOEditorGUI\deactivateObjectives(), ilObjComponentSettingsGUI\deactivatePlugin(), ilDidacticTemplateSettingsGUI\deactivateTemplates(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilWikiPageGUI\deactivateWikiPageRating(), ilLPListOfSettingsGUI\deassign(), ilBadgeManagementGUI\deassignBadge(), ilExerciseManagementGUI\deassignMembersObject(), ilObjRoleGUI\deassignUserObject(), ilCalendarInboxGUI\declineShared(), ilExcCriteriaCatalogueGUI\delete(), ilExcCriteriaGUI\delete(), ilDclRecordEditGUI\delete(), ilRatingCategoryGUI\delete(), ilOrgUnitTypeGUI\delete(), ilStudyProgrammeTypeGUI\delete(), ilDclTableViewEditGUI\delete(), ilCourseArchivesGUI\delete(), ilBookingScheduleGUI\delete(), ilCalendarCategoryGUI\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(), assImagemapQuestionGUI\deleteImage(), ilObjBadgeAdministrationGUI\deleteImageTemplates(), ilObjCourseGUI\deleteInfoFilesObject(), arGUI\deleteItems(), ilBasicSkillGUI\deleteLevel(), ilObjLinkResourceGUI\deleteLinks(), ilObjAssessmentFolderGUI\deleteLogObject(), SurveyQuestionGUI\deleteMaterial(), ilSetupGUI\deleteMemcacheServer(), ilObjContentObjectGUI\deleteMenuEntry(), ilTestRandomQuestionSetConfigGUI\deleteMultipleSourcePoolDefinitionsCmd(), ilObjRepositorySettingsGUI\deleteNewItemGroup(), ilObjBadgeAdministrationGUI\deleteObjectBadges(), ilCourseObjectivesGUI\deleteObjectives(), ilLOEditorGUI\deleteObjectives(), ilRepUtilGUI\deleteObjects(), ilPCInteractiveImageGUI\deleteOverlays(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), 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(), ilObjMediaObjectGUI\deleteSrtFilesObject(), ilContainerStartObjectsGUI\deleteStarterObject(), 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(), ilSurveyParticipantsGUI\disinviteUserGroupObject(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilExerciseManagementGUI\dissolveTeamsObject(), ilECSMappingSettingsGUI\dMap(), ilECSSettingsGUI\doDelete(), ilPermissionGUI\doImportRole(), ilECSMappingSettingsGUI\dSynchronizeTree(), ilECSMappingSettingsGUI\dUpdateSettings(), ilECSMappingSettingsGUI\dUpdateTreeSettings(), ilObjForumGUI\editDraftObject(), ilObjForumAdministrationGUI\editSettings(), ilRepositorySearchGUI\emptyClipboard(), ilPersonalSettingsGUI\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(), ilObjLanguageFolderGUI\getActions(), ilTestExportPlugin\getFormat(), ilObjForumGUI\getForumObjects(), ilTestSkillLevelThresholdsGUI\getTestId(), ilMailAttachmentGUI\getToolbarForm(), ilObjWorkflowEngineGUI\getType(), ilObjForumGUI\getUserNotificationTableData(), ilLPListOfSettingsGUI\groupMaterials(), ilObjBookingPoolGUI\handleBookingSuccess(), ilMembershipRegistrationCodeUtils\handleCode(), ilExerciseManagementGUI\handleIndividualDeadlineCallsObject(), ilObjSystemCheckGUI\handleTrashAction(), ilWorkflowEngineDefinitionsGUI\handleUploadSubmit(), 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(), ilObjForumGUI\infoScreenObject(), ilSetupGUI\initClientDbForm(), ilObjWikiSettingsGUI\initForm(), 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(), ilObjForumGUI\isParentObjectCrsOrGrp(), ilObjSessionGUI\joinObject(), ilContainerGUI\keepObjectsInClipboardObject(), ilRegistrationGUI\leaveWaitingList(), SurveyQuestionGUI\linkChilds(), assQuestionGUI\linkChilds(), ilTestExportGUI\listExportFiles(), ilSurveyParticipantsGUI\mailRatersActionObject(), ilSurveyExecutionGUI\mailUserResults(), ilObjSurveyGUI\mailUserResultsObject(), ilObjLanguageExtGUI\maintainExecuteObject(), ilObjBibliographic\moveFile(), 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(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjCourseGUI\performUnsubscribeObject(), ilObjRoleTemplateGUI\permSaveObject(), ilObjRoleGUI\permSaveObject(), ilSetup\printProxyStatus(), ilStartUpGUI\processCode(), ilWorkflowEngineDefinitionsGUI\processUploadFormCancellation(), ilObjForumGUI\publishDraftObject(), ilGlossaryForeignTermCollectorGUI\referenceTerms(), ilObjLinkResourceGUI\refreshLinkCheck(), ilObjContentObjectGUI\refreshLinkCheck(), ilECSSettingsGUI\refreshParticipants(), ilMembershipGUI\refuseFromList(), ilObjSessionGUI\refuseFromListObject(), ilMembershipGUI\refuseSubscribers(), ilObjSessionGUI\refuseSubscribersObject(), 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(), ilSurveySkillGUI\removeSkillFromQuestion(), ilPersonalSkillsGUI\removeSkills(), ilPDTaggingBlockGUI\removeTagsWithoutAccess(), ilExSubmissionTeamGUI\removeTeamMemberObject(), ilObjUserGUI\removeUserPictureObject(), ilSkillProfileGUI\removeUsers(), ilFileSystemGUI\renameFile(), ilWikiPageGUI\renamePage(), ilSCTreeTasksGUI\repairMissing(), ilSCTreeTasksGUI\repairMissingTreeEntries(), ilSCTreeTasksGUI\repairStructure(), ilObjTermsOfServiceGUI\reset(), ilObjLoggingSettingsGUI\resetComponentLevels(), ilObjContentObjectGUI\resetNumberOfTries(), ilObjCourseGUI\resetObject(), ilExPeerReviewGUI\resetPeerReviewObject(), ilObjSurveyGUI\resetTemplateObject(), ilObjForumGUI\restoreFromHistoryObject(), ilRepUtilGUI\restoreObjects(), ilObjFileGUI\rollbackVersion(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjBookingPoolGUI\rsvInUseObject(), ilObjBookingPoolGUI\rsvNotInUseObject(), ilUserActionAdminGUI\save(), ilCalendarUserSettingsGUI\save(), ilRatingCategoryGUI\save(), ilDclFieldListGUI\save(), ilContainerNewsSettingsGUI\save(), ilCalendarCategoryGUI\save(), ilIndividualAssessmentMemberGUI\save(), ilObjCalendarSettingsGUI\save(), ilObjCertificateSettingsGUI\save(), arGUI\save(), ilRadiusSettingsGUI\save(), ilSkillProfileGUI\save(), ilBookingScheduleGUI\save(), ilRegistrationSettingsGUI\save(), ilSettingsPermissionGUI\save(), ilCASSettingsGUI\save(), ilObjFileGUI\save(), ilBookingObjectGUI\save(), ilAuthShibbolethSettingsGUI\save(), ilDclFieldEditGUI\save(), ilDclTableEditGUI\save(), SurveyQuestionGUI\save(), ilSkillTreeNodeGUI\save(), ilCalendarAppointmentGUI\save(), ilDclRecordEditGUI\save(), ilCourseObjectivesGUI\save(), assQuestionGUI\save(), ilLDAPSettingsGUI\save(), ilObjPrivacySecurityGUI\save_privacy(), ilCourseContentGUI\saveAcceptance(), ilObjAccessibilitySettingsGUI\saveAccessKeys(), ilPageObjectGUI\saveActivation(), ilObjLinkResourceGUI\saveAddLink(), ilObjSkillManagementGUI\saveAllTemplateTitles(), ilObjSkillManagementGUI\saveAllTitles(), 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(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilPersonalChatSettingsFormGUI\saveChatOptions(), ilSetupGUI\saveClientIni(), ilChatroomAdminViewGUI\saveClientSettings(), ilExerciseManagementGUI\saveCommentsObject(), 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(), ilAssQuestionFeedbackEditingGUI\saveFeedbackFormCmd(), ilObjectCustomUserFieldsGUI\saveField(), ilAdvancedMDSettingsGUI\saveField(), ilObjectCustomUserFieldsGUI\saveFields(), ilObjMediaPoolGUI\saveFolder(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilMailingListsGUI\saveForm(), ilAssQuestionHintGUI\saveFormCmd(), ilObjQuestionPoolSettingsGeneralGUI\saveFormCmd(), ilObjTestSettingsScoringResultsGUI\saveFormCmd(), ilObjTestDynamicQuestionSetConfigGUI\saveFormCmd(), ilObjTestSettingsGeneralGUI\saveFormCmd(), ilTestRandomQuestionSetConfigGUI\saveGeneralConfigFormCmd(), 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(), ilObjBadgeAdministrationGUI\saveImageTemplate(), ilPageObjectGUI\saveInitialOpenedContent(), ilTaggingGUI\saveInput(), ilSurveyParticipantsGUI\saveInvitationStatusObject(), ilObjItemGroupGUI\saveItemAssignment(), ilExportGUI\saveItemSelection(), ilObjSystemFolderGUI\saveJavaServerObject(), ilLMPageObjectGUI\saveLayout(), SurveyMatrixQuestionGUI\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(), ilLMMultiSrtUploadGUI\saveMultiSrt(), ilLOEditorGUI\saveMultiTestAssignment(), ilObjUserFolderGUI\saveNewAccountMailObject(), ilObjLanguageExtGUI\saveNewEntryObject(), ilObjRepositorySettingsGUI\saveNewItemGroup(), ilObjRepositorySettingsGUI\saveNewItemGroupOrder(), ilSystemStyleOverviewGUI\saveNewSubStyle(), ilSystemStyleOverviewGUI\saveNewSystemStyle(), ilObjCourseGUI\saveNotificationObject(), ilObjGroupGUI\saveNotificationObject(), ilObjRecoveryFolderGUI\saveObject(), ilObjAdvancedEditingGUI\saveObject(), ilObjAssessmentFolderGUI\saveObject(), ilObjMailGUI\saveObject(), ilObjTypeDefinitionGUI\saveObject(), ilObjRoleTemplateGUI\saveObject(), ilObjUserGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjMediaObjectGUI\saveObject(), ilObjRoleGUI\saveObject(), ilObjRoleFolderGUI\saveObject(), ilLOEditorGUI\saveObjectiveCreation(), ilConditionHandlerGUI\saveObligatoryList(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilSurveyEditorGUI\saveObligatoryObject(), ilObjSurveyQuestionPoolGUI\saveObligatoryObject(), ilConditionHandlerGUI\saveObligatorySettings(), ilMailOptionsGUI\saveOptions(), ilExcCriteriaCatalogueGUI\saveOrder(), ilExcCriteriaGUI\saveOrder(), ilUnitConfigurationGUI\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(), 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(), ilCalendarCategoryGUI\saveSelection(), ilPersonalSkillsGUI\saveSelfEvaluation(), ilConsultationHoursGUI\saveSequence(), ilObjSCORM2004LearningModuleGUI\saveSequencing(), ilChatroomAdminViewGUI\saveSettings(), ilObjWebResourceAdministrationGUI\saveSettings(), ilObjStudyProgrammeAdminGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilMembershipAdministrationGUI\saveSettings(), ilObjMediaObjectsSettingsGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilLPListOfSettingsGUI\saveSettings(), ilObjBadgeAdministrationGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjAwarenessAdministrationGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilECSParticipantSettingsGUI\saveSettings(), ilObjTermsOfServiceGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjSkillManagementGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilLOEditorGUI\saveSettings(), ilBadgeProfileGUI\saveSettings(), ilObjSurveyAdministrationGUI\saveSettingsObject(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilObjAssessmentFolderGUI\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(), ilTestRandomQuestionSetConfigGUI\saveSourcePoolDefinitionListCmd(), 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(), ilWikiPageTemplateGUI\saveTemplateSettings(), ilObjGlossaryGUI\saveTerm(), ilLOEditorGUI\saveTest(), ilObjForumGUI\saveThreadSortingObject(), ilSurveySkillThresholdsGUI\saveThresholds(), ilPortfolioRepositoryGUI\saveTitles(), ilObjContentObjectGUI\saveTooltips(), ilTranslationGUI\saveTranslations(), ilMultilingualismGUI\saveTranslations(), ilObjectTranslationGUI\saveTranslations(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilUnitConfigurationGUI\saveUnit(), ilObjFileGUI\saveUnzip(), ilObjFileAccessSettingsGUI\saveUploadSettings(), ilObjSystemFolderGUI\saveWebServicesObject(), ilObjPersonalDesktopSettingsGUI\saveWsp(), ilObjGlossaryGUI\selectGlossary(), ilObjContentObjectGUI\selectLMGlossary(), ilPersonalSkillsGUI\selectMaterial(), ilSurveySkillGUI\selectSkillForQuestion(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilDclRecordListGUI\sendFile(), ilExerciseManagementGUI\sendMembersObject(), ilTestGradingMessageBuilder\sendMessage(), ilSystemStyleMessageStack\sendMessages(), 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(), ilStartUpGUI\showLogin(), ilObjAssessmentFolderGUI\showLogSettingsObject(), ilObjStudyProgrammeIndividualPlanGUI\showSuccessMessage(), ilObjStudyProgrammeMembersGUI\showSuccessMessage(), ilObjForumGUI\showUserObject(), 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(), ilObjContentObjectGUI\unlockQuestion(), ilCalendarAppointmentGUI\unregister(), ilObjSessionGUI\unregisterObject(), ilPortfolioRepositoryGUI\unsetDefault(), ilCalendarCategoryGUI\unshare(), ilObjPollGUI\unsubscribe(), ilObjGroupGUI\unsubscribeObject(), ilFileSystemGUI\unzipFile(), ilFMSettingsGUI\update(), ilIndividualAssessmentSettingsGUI\update(), ilExtIdGUI\update(), ilObjStudyProgrammeSettingsGUI\update(), ilCronManagerGUI\update(), ilObjBibliographicAdminLibrariesGUI\update(), ilRatingCategoryGUI\update(), ilObjectActivationGUI\update(), ilOrgUnitTypeGUI\update(), ilStudyProgrammeTypeGUI\update(), ilBookingScheduleGUI\update(), ilObjCourseGroupingGUI\update(), ilPCDataTableGUI\update(), ilSystemStyleLessGUI\update(), ilPCInteractiveImageGUI\update(), ilObjectMetaDataGUI\update(), ilBookingObjectGUI\update(), ilCalendarCategoryGUI\update(), ilPCTabsGUI\update(), ilCustomUserFieldsGUI\update(), ilSkillTreeNodeGUI\update(), ilObjFileGUI\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(), ilLearningProgressGUI\updateManual(), ilCourseObjectivesGUI\updateMaterialAssignment(), ilObjMediaPoolGUI\updateMediaPoolPage(), ilObjSessionGUI\updateMembersObject(), ilObjContentObjectGUI\updateMenuEntry(), ilMDEditorGUI\updateMetaMetaData(), ilConsultationHoursGUI\updateMulti(), ilObjRepositorySettingsGUI\updateNewItemGroup(), 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(), ilObjComponentSettingsGUI\updatePlugin(), 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(), ilObjOrgUnitGUI\updateSettings(), ilObjTaxonomyGUI\updateSettings(), ilConsultationHoursGUI\updateSettings(), ilSettingsTemplateGUI\updateSettingsTemplate(), ilAssQuestionSkillAssignmentsGUI\updateSkillQuestionAssignmentsCmd(), ilSkillTemplateReferenceGUI\updateSkillTemplateReference(), ilRegistrationGUI\updateSubscriptionRequest(), ilAdvancedMDSettingsGUI\updateSubstitutions(), ilDclTableViewEditFormGUI\updateTableView(), ilObjCategoryGUI\updateTaxonomySettingsObject(), ilMDEditorGUI\updateTechnical(), ilMailTemplateGUI\updateTemplate(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilObjForumGUI\updateThreadObject(), ilCourseContentGUI\updateTimings(), ilBlogPostingGUI\updateTitle(), ilLPListOfSettingsGUI\updateTLT(), ilObjectServiceSettingsGUI\updateToolSettings(), ilPCIIMTriggerEditorGUI\updateTrigger(), ilLPListOfObjectsGUI\updateUser(), ilCourseContentGUI\updateUserTimings(), ilCalendarCategoryGUI\uploadAppointments(), ilFileSystemGUI\uploadFile(), ilExSubmissionFileGUI\uploadFileObject(), ilObjHelpSettingsGUI\uploadHelpFile(), ilObjLanguageExtGUI\uploadObject(), ilPCInteractiveImageGUI\uploadOverlayImages(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), ilExSubmissionFileGUI\uploadZipObject(), ilContainerGUI\useNewEditorObject(), ilSCTreeTasksGUI\validateDuplicates(), and ilSurveySkillDeterminationGUI\writeSkills().

4802  {
4803  global $tpl;
4804  $tpl->setMessage("success", $a_info, $a_keep);
4805  }
global $tpl
Definition: ilias.php:8

◆ 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 4895 of file class.ilUtil.php.

References $_COOKIE, defined, IL_COOKIE_PATH, and time.

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

4896  {
4897  /*
4898  if(!(bool)$a_set_cookie_invalid) $expire = IL_COOKIE_EXPIRE;
4899  else $expire = time() - (365*24*60*60);
4900  */
4901  // Temporary fix for feed.php
4902  if(!(bool)$a_set_cookie_invalid) $expire = 0;
4903  else $expire = time() - (365*24*60*60);
4904 
4905  if(!defined('IL_COOKIE_SECURE'))
4906  {
4907  define('IL_COOKIE_SECURE', false);
4908  }
4909 
4910  setcookie( $a_cookie_name, $a_cookie_value, $expire,
4911  IL_COOKIE_PATH, IL_COOKIE_DOMAIN, IL_COOKIE_SECURE, IL_COOKIE_HTTPONLY
4912  );
4913 
4914  if((bool)$a_also_set_super_global) $_COOKIE[$a_cookie_name] = $a_cookie_value;
4915  }
const IL_COOKIE_PATH(isset($_GET["client_id"]))
Definition: index.php:26
$_COOKIE['ilClientId']
Definition: BPMN2Parser.php:15
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 605 of file class.ilUtil.php.

606  {
607  if ("" != $a_path && "/" != substr($a_path, -1))
608  {
609  $a_path .= "/";
610  //$a_path = substr($a_path,1);
611  }
612 
613  //return getcwd().$a_path;
614  return $a_path;
615  }

◆ 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 1444 of file class.ilUtil.php.

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

Referenced by ilObject\_writeDescription(), ilObjSystemFolder\addHeaderTitleTranslation(), ilExcel\addSheet(), ilObject\create(), ilObjSystemFolder\delete(), ilBookmarkAdministrationGUI\delete(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilNewsForContextTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilAICCExplorer\formatObject(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilWorkspaceExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilExplorer\formatObject(), SurveyMatrixQuestionEvaluation\getChart(), ilContainer\getCompleteDescriptions(), ilObjLinkResourceListGUI\getDescription(), ilPDNotesBlockGUI\getListRowData(), 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().

1446  {
1447  include_once("./Services/Utilities/classes/class.ilStr.php");
1448  if (ilStr::strLen($a_str) > $a_len)
1449  {
1450  if ($a_next_blank)
1451  {
1452  $len = ilStr::strPos($a_str, " ", $a_len);
1453  }
1454  else
1455  {
1456  $len = $a_len;
1457  }
1458  // BEGIN WebDAV
1459  // - Shorten names in the middle, before the filename extension
1460  // Workaround for Windows WebDAV Client:
1461  // Use the unicode ellipsis symbol for shortening instead of
1462  // three full stop characters.
1463  if ($a_keep_extension)
1464  {
1465  $p = strrpos($a_str, '.'); // this messes up normal shortening, see bug #6190
1466  }
1467  if ($p === false || $p == 0 || strlen($a_str) - $p > $a_len)
1468  {
1469  $a_str = ilStr::subStr($a_str,0,$len);
1470  if ($a_dots)
1471  {
1472  $a_str .= "\xe2\x80\xa6"; // UTF-8 encoding for Unicode ellipsis character.
1473  }
1474  }
1475  else
1476  {
1477  if ($a_dots)
1478  {
1479  $a_str = ilStr::subStr($a_str,0,$len - (strlen($a_str) - $p + 1))."\xe2\x80\xa6".substr($a_str, $p);
1480  }
1481  else
1482  {
1483  $a_str = ilStr::subStr($a_str,0,$len - (strlen($a_str) - $p + 1)).substr($a_str, $p);
1484  }
1485  }
1486  }
1487 
1488  return $a_str;
1489  }
static strLen($a_string)
Definition: class.ilStr.php:91
static strPos($a_haystack, $a_needle, $a_offset=NULL)
Definition: class.ilStr.php:34
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
stringinput string
integermax. word length
booleanappend "..." to shortened words

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

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

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

1502  {
1503  include_once("./Services/Utilities/classes/class.ilStr.php");
1504  $str_arr = explode(" ", $a_str);
1505 
1506  for ($i = 0; $i < count($str_arr); $i++)
1507  {
1508  if (ilStr::strLen($str_arr[$i]) > $a_len)
1509  {
1510  $str_arr[$i] = ilStr::subStr($str_arr[$i], 0, $a_len);
1511  if ($a_dots)
1512  {
1513  $str_arr[$i].= "...";
1514  }
1515  }
1516  }
1517 
1518  return implode($str_arr, " ");
1519  }
static strLen($a_string)
Definition: class.ilStr.php:91
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:

◆ 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 3268 of file class.ilUtil.php.

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

3269  {
3270  global $array_sortby,$array_sortorder;
3271 
3272  if(!isset($array_sortby))
3273  {
3274  // occured in: setup -> new client -> install languages -> sorting of languages
3275  $array_sortby = 0;
3276  }
3277 
3278  // this comparison should give optimal results if
3279  // locale is provided and mb string functions are supported
3280  if ($array_sortorder == "asc")
3281  {
3282  return ilStr::strCmp($a[$array_sortby], $b[$array_sortby]);
3283  }
3284 
3285  if ($array_sortorder == "desc")
3286  {
3287  return !ilStr::strCmp($a[$array_sortby], $b[$array_sortby]);
3288  return strcoll(ilStr::strToUpper($b[$array_sortby]), ilStr::strToUpper($a[$array_sortby]));
3289  }
3290  }
static strToUpper($a_string)
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 3302 of file class.ilUtil.php.

3303  {
3304  global $array_sortby,$array_sortorder;
3305 
3306  if ($array_sortorder == "asc")
3307  {
3308  return $a["$array_sortby"] > $b["$array_sortby"];
3309  }
3310 
3311  if ($array_sortorder == "desc")
3312  {
3313  return $a["$array_sortby"] < $b["$array_sortby"];
3314  }
3315  }

◆ 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 3328 of file class.ilUtil.php.

References array.

Referenced by ilBenchmarkTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilUsersGalleryParticipants\__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(), ilTaxonomyNode\fixOrderNumbers(), ilExAssignmentTeam\getAdoptableTeamAssignments(), ilNewsItem\getAggregatedChildNewsData(), ilNewsItem\getAggregatedNewsData(), ilObjSurvey\getAllRelations(), ilItemGroupItems\getAssignableItems(), ilCalendarSelectionBlockGUI\getCalendars(), ilPersonalSkillExplorerGUI\getChildsOfNode(), ilModulesTableGUI\getComponents(), ilAwarenessData\getData(), ilBenchmarkTableGUI\getDataByFirstTable(), ilSessionMaterialsTableGUI\getDataFromDb(), ilFSStorageExercise5069\getFiles(), ilFSStorageExercise\getFiles(), ilObjectDefinition\getGroupedRepositoryObjectTypes(), ilExAssignmentTeam\getGroupMembersMap(), ilNewItemGroupTableGUI\getGroups(), ilDclNReferenceFieldGUI\getHTML(), ilTable2GUI\getHTML(), ilTestManScoringParticipantsTableGUI\getInternalyOrderedDataValues(), ilPCImageMapTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilPCIIMTriggerTableGUI\getItems(), ilObjBlogGUI\getKeywords(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), ilItemGroupItemsTableGUI\getMaterials(), ilAwarenessData\getOnlineUserData(), ilCourseMembershipGUI\getPrintMemberData(), ilPageObject\getRecentChanges(), ilObjMediaCast\getSortedItemsArray(), ilUsersGalleryUsers\getSortedRelations(), 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(), ilObjRoleTemplateGUI\permObject(), ilObjRoleGUI\permObject(), ilTreeExplorerGUI\preloadChilds(), ilContentStyleSettings\read(), ilPortfolioPageGUI\renderMyCourses(), ilContainerContentGUI\renderPageEmbeddedBlocks(), ilSkillTreeNode\saveChildsOrder(), ilObjStyleSheet\saveMediaQueryOrder(), 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().

3330  {
3331  include_once("./Services/Utilities/classes/class.ilStr.php");
3332 
3333  // BEGIN WebDAV: Provide a 'stable' sort algorithm
3334  if (! $a_keep_keys) {
3335  return self::stableSortArray($array,$a_array_sortby,$a_array_sortorder,$a_numeric,$a_keep_keys);
3336  }
3337  // END WebDAV Provide a 'stable' sort algorithm
3338 
3339  global $array_sortby,$array_sortorder;
3340 
3341  $array_sortby = $a_array_sortby;
3342 
3343  if ($a_array_sortorder == "desc")
3344  {
3345  $array_sortorder = "desc";
3346  }
3347  else
3348  {
3349  $array_sortorder = "asc";
3350  }
3351  if($a_numeric)
3352  {
3353  if ($a_keep_keys)
3354  {
3355  uasort($array, array("ilUtil", "sort_func_numeric"));
3356  }
3357  else
3358  {
3359  usort($array, array("ilUtil", "sort_func_numeric"));
3360  }
3361  }
3362  else
3363  {
3364  if ($a_keep_keys)
3365  {
3366  uasort($array, array("ilUtil", "sort_func"));
3367  }
3368  else
3369  {
3370  usort($array, array("ilUtil", "sort_func"));
3371  }
3372  }
3373  //usort($array,"ilUtil::sort_func");
3374 
3375  return $array;
3376  }
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.

@param      array   array to sort
@param      string  sort_column
@param      string  sort_order (ASC or DESC)
@param      bool    sort numeric?

@return     array   sorted array
@static

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

References array, and mergesort().

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

3393  {
3394  global $array_sortby,$array_sortorder;
3395 
3396  $array_sortby = $a_array_sortby;
3397 
3398  if ($a_array_sortorder == "desc")
3399  {
3400  $array_sortorder = "desc";
3401  }
3402  else
3403  {
3404  $array_sortorder = "asc";
3405  }
3406 
3407  // Create a copy of the array values for sorting
3408  $sort_array = array_values($array);
3409 
3410  if($a_numeric)
3411  {
3412  ilUtil::mergesort($sort_array, array("ilUtil", "sort_func_numeric"));
3413  }
3414  else
3415  {
3416  ilUtil::mergesort($sort_array, array("ilUtil", "sort_func"));
3417  }
3418 
3419  return $sort_array;
3420  }
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 2657 of file class.ilUtil.php.

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

2658  {
2659  if (ini_get("magic_quotes_gpc"))
2660  {
2661  $a_str = stripslashes($a_str);
2662  }
2663 
2664  return $a_str;
2665  }
+ 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 2997 of file class.ilUtil.php.

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

2998  {
2999  //$a_str = strip_tags($a_str, $a_allow);
3000 
3001  $negativestr = "a,abbr,acronym,address,applet,area,base,basefont,".
3002  "big,blockquote,body,br,button,caption,center,cite,code,col,".
3003  "colgroup,dd,del,dfn,dir,div,dl,dt,em,fieldset,font,form,frame,".
3004  "frameset,h1,h2,h3,h4,h5,h6,head,hr,html,i,iframe,img,input,ins,isindex,kbd,".
3005  "label,legend,li,link,map,menu,meta,noframes,noscript,object,ol,".
3006  "optgroup,option,p,param,q,s,samp,script,select,small,span,".
3007  "strike,strong,style,sub,sup,table,tbody,td,textarea,tfoot,th,thead,".
3008  "title,tr,tt,u,ul,var";
3009  $a_allow = strtolower ($a_allow);
3010  $negatives = explode(",",$negativestr);
3011  $outer_old_str = "";
3012  while($outer_old_str != $a_str)
3013  {
3014  $outer_old_str = $a_str;
3015  foreach ($negatives as $item)
3016  {
3017  $pos = strpos($a_allow, "<$item>");
3018 
3019  // remove complete tag, if not allowed
3020  if ($pos === false)
3021  {
3022  $old_str = "";
3023  while($old_str != $a_str)
3024  {
3025  $old_str = $a_str;
3026  $a_str = preg_replace("/<\/?\s*$item(\/?)\s*>/i", "", $a_str);
3027  $a_str = preg_replace("/<\/?\s*$item(\/?)\s+([^>]*)>/i", "", $a_str);
3028  }
3029  }
3030  }
3031  }
3032 
3033  if ($a_rm_js)
3034  {
3035  // remove all attributes if an "on..." attribute is given
3036  $a_str = preg_replace("/<\s*\w*(\/?)(\s+[^>]*)?(\s+on[^>]*)>/i", "", $a_str);
3037 
3038  // remove all attributes if a "javascript" is within tag
3039  $a_str = preg_replace("/<\s*\w*(\/?)\s+[^>]*javascript[^>]*>/i", "", $a_str);
3040 
3041  // remove all attributes if an "expression" is within tag
3042  // (IE allows something like <b style='width:expression(alert(1))'>test</b>)
3043  $a_str = preg_replace("/<\s*\w*(\/?)\s+[^>]*expression[^>]*>/i", "", $a_str);
3044  }
3045 
3046  return $a_str;
3047  }
+ 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 2639 of file class.ilUtil.php.

References secureString().

Referenced by 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(), ilPageEditorGUI\assignCharacteristic(), ilObjRole\assignData(), ilSkillProfileGUI\assignUser(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilAssQuestionSkillAssignmentsTableGUI\buildSkillPointsInput(), ilObjRoleGUI\changeExistingObjectsObject(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilSetup\checkDataDirSetup(), ilSetup\checkErrorLogSetup(), ilMailQuickFilterInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilNonEditableValueGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilGloAdvColSortInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilClozeGapInputBuilderGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilWidthHeightInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilCopyrightInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), ilTRBLBorderStyleInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilLocationInputGUI\checkInput(), ilCheckboxInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilTagInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilDurationInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilObjLinkResourceGUI\checkLinkInput(), ilSetup\checkLogSetup(), ilSetup\checkToolsSetup(), ilObjSurvey\cloneTextblocks(), ilPageObjectGUI\confirmPageTranslationCreation(), ilObjMediaCastGUI\convertFileObject(), 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(), ilInitialisation\determineClient(), ilChatroomUploadFileGUI\displayLinkToUploadedFile(), ilObjSurveyGUI\doAutoCompleteObject(), ilObjLanguageExtGUI\downloadObject(), ilPCParagraphGUI\edit(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilObjAuthSettingsGUI\editSOAPObject(), ilPersonalSettingsGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilUsersGalleryGUI\executeCommand(), ilContactGUI\executeCommand(), ilDclRecordListGUI\executeCommand(), assQuestionGUI\executeCommand(), ilChatroomPostMessageGUI\executeDefault(), ilObjMediaPoolGUI\export(), ilObjContentObjectGUI\export(), ilObjContentObjectGUI\exportHTML(), ilFileSystemGUI\extCommand(), assClozeTest\fetchSolutionSubmit(), ilRepositoryObjectSearchBlockGUI\fillDataSection(), ilWikiSearchBlockGUI\fillDataSection(), ilExportIDTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilObjTermsOfServiceGUI\getAcceptedContentAsynch(), ilMailTemplateGUI\getAjaxPlaceholdersById(), ilMailFormGUI\getAjaxPlaceholdersById(), ilCertificateGUI\getFormFieldsFromPOST(), ilObjUser\getFullname(), ilUserLPTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), assAnswerCloze\getNumericValueFromText(), ilNumberInputGUI\getPostValueForComparison(), assTextQuestion\getSolutionSubmit(), ilUserTableGUI\getUserIdsForFilter(), ilLanguage\getUserLanguage(), ilClozeGapInputBuilderGUI\getValue(), ilClozeGapInputBuilderGUI\getValueCombination(), ilPCParagraph\handleAjaxContent(), ilObjSessionGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilObjForumGUI\handleFormInput(), ilPCTable\importHtml(), ilLMImportGUI\importTranslation(), ilMediaPoolImportGUI\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(), ilStartUpGUI\migrateAccount2(), ilCSVReader\open(), assQuestionGUI\outChapterSelector(), assQuestionGUI\outPageSelector(), ilFileSystemGUI\parseCurrentDirectory(), ilMailFolderGUI\performAddSubFolder(), ilMailingListsGUI\performDelete(), ilMailFolderGUI\performRenameSubFolder(), ilRepositoryObjectSearchGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilObjWikiGUI\performSearchObject(), prepareFormOutput(), ilLMPageGUI\processAnswer(), ilPageObjectGUI\processAnswer(), ilICalParser\purgeString(), 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(), ilFileSystemGUI\renameFile(), ilFileSystemGUI\renameFileForm(), ilTable2GUI\restoreTemplate(), ilQtiMatImageSecurity\sanitizeLabel(), ilCalendarCategoryGUI\save(), ilLMPageObjectGUI\save(), ilObjCalendarSettingsGUI\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(), 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(), ilMailOptionsGUI\saveOptions(), ilContainerGUI\savePageContentObject(), ilStructureObjectGUI\savePageLayout(), ilObjContentObjectGUI\savePageLayout(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePersonalData(), ilObjPortfolioBaseGUI\savePortfolioPagesOrdering(), ilPersonalProfileGUI\saveProfile(), ilPCFileListGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjSurveyGUI\savePropertiesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilRatingGUI\saveRating(), 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(), ilMailFormGUI\sendMessage(), ilPCTableGUI\setAlignment(), ilImageMapEditorGUI\setHighlight(), ilObjHelpSettingsGUI\setMode(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilPCTableGUI\setProperties(), ilLDAPRoleGroupMappingSetting\setRoleByName(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilObjChatroomGUI\settings(), ilChatroomAuthInputGUI\setValueByArray(), ilPCTableGUI\setWidths(), ilCalendarCategoryGUI\sharePerformSearch(), ilRegistrationGUI\showCustomFields(), 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(), ilFileSystemGUI\unzipFile(), ilPCQuestionOverviewGUI\update(), ilPCSourceCodeGUI\update(), ilPCResourcesGUI\update(), ilPCInteractiveImageGUI\update(), ilCalendarCategoryGUI\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(), ilObjSessionGUI\updateMembersObject(), ilMDEditorGUI\updateMetaMetaData(), ilNoteGUI\updateNote(), ilObjGroupGUI\updateObject(), ilSCORM2004ScoGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), ilMDEditorGUI\updateQuickEdit_scorm(), ilMDEditorGUI\updateQuickEdit_scorm_propagate(), ilAdvancedMDSettingsGUI\updateRecords(), ilMDEditorGUI\updateRelation(), ilMDEditorGUI\updateRights(), ilChatroomAdminSmileyGUI\updateSmiliesObject(), ilRegistrationGUI\updateSubscriptionRequest(), ilMDEditorGUI\updateTechnical(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilFileSystemGUI\uploadFile(), ilObjLanguageExtGUI\uploadObject(), ilChatroomAdminSmileyGUI\uploadSmileyObject(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().

2640  {
2641  if (ini_get("magic_quotes_gpc"))
2642  {
2643  $a_str = stripslashes($a_str);
2644  }
2645 //echo "<br><br>-".$a_strip_html."-".htmlentities($a_str);
2646 //echo "<br>-".htmlentities(ilUtil::secureString($a_str, $a_strip_html, $a_allow));
2647  return ilUtil::secureString($a_str, $a_strip_html, $a_allow);
2648  }
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 2589 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(), ilObjItemGroupGUI\saveItemAssignment(), ilPCInteractiveImageGUI\savePopups(), ilAdvancedMDRecordGUI\saveSelection(), ilPCTabsGUI\saveTabs(), ilBasicSkillGUI\updateLevelOrder(), ilExerciseManagementGUI\uploadMultiFeedbackObject(), ilLMMultiSrtUploadGUI\uploadMultipleSubtitleFile(), and ilObjMediaObjectGUI\uploadMultipleSubtitleFileObject().

2590  {
2591  if (is_array($a_arr))
2592  {
2593  foreach ($a_arr as $k => $v)
2594  {
2595  $a_arr[$k] = ilUtil::stripSlashes($v, $a_strip_html, $a_allow);
2596  }
2597  }
2598 
2599  return $a_arr;
2600  }
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 2608 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(), ilMatrixRowWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilCtrl\getParameterArrayByClass(), assLongMenu\getSolutionSubmit(), ilMultiFilesSubmitRecursiveSlashesStripper\manipulateFileSubmitValues(), ilFormSubmitRecursiveSlashesStripper\manipulateFormSubmitValues(), ilLogicalAnswerComparisonExpressionInputGUI\sanitizeSuperGlobalSubmitValue(), ilAnswerWizardInputGUI\sanitizeSuperGlobalSubmitValue(), assClozeTestGUI\writeAnswerSpecificPostData(), and assLongMenuGUI\writeQuestionSpecificPostData().

2609  {
2610  if (is_array($a_data))
2611  {
2612  foreach ($a_data as $k => $v)
2613  {
2614  if (is_array($v))
2615  {
2616  $a_data[$k] = ilUtil::stripSlashesRecursive($v, $a_strip_html, $a_allow);
2617  }
2618  else
2619  {
2620  $a_data[$k] = ilUtil::stripSlashes($v, $a_strip_html, $a_allow);
2621  }
2622  }
2623  }
2624  else
2625  {
2626  $a_data = ilUtil::stripSlashes($a_data, $a_strip_html, $a_allow);
2627  }
2628 
2629  return $a_data;
2630  }
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

switches style sheets for each even $a_num (used for changing colors of different result rows)

public

Parameters
integer$a_numthe counter
string$a_css1name of stylesheet 1
string$a_css2name of stylesheet 2
Returns
string $a_css1 or $a_css2

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

Referenced by ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilObjCategoryGUI\_importCategoriesForm(), ilCourseObjectivesGUI\askDeleteObjective(), ilCourseArchivesGUI\confirmDeleteArchives(), ilObjTypeDefinitionGUI\displayList(), ilObjObjectFolderGUI\displayList(), ilRegistrationSettingsGUI\editEmailAssignments(), ilObjMediaObjectGUI\editFilesObject(), ilObjTypeDefinitionGUI\editObject(), ilRegistrationSettingsGUI\editRoleAccessLimitations(), ilRegistrationSettingsGUI\editRoles(), ilCourseContentGUI\editTimings(), ilObjSessionGUI\eventsListObject(), ilForumExportGUI\executeCommand(), ilObjUserFolderGUI\exportObject(), ilCourseObjectiveQuestionsTableGUI\fillRow(), ilObjForumGUI\getSubTabs(), ilObjRoleTemplateGUI\permObject(), ilTableGUI\render(), ilSCORM2004ScoGUI\sahs_questions(), ilSCORM2004ScoGUI\sco_resources(), ilGlossaryPresentationGUI\showDownloadList(), ilObjAICCLearningModuleGUI\showTrackingItems(), ilStructureObjectGUI\subchap(), ilCourseArchivesGUI\view(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().

630  {
631  if (!($a_num % 2))
632  {
633  return $a_css1;
634  }
635  else
636  {
637  return $a_css2;
638  }
639  }
+ Here is the caller graph for this function:

◆ tf2yn()

static ilUtil::tf2yn (   $a_tf)
static

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

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

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

3247  {
3248  if($a_tf)
3249  {
3250  return "y";
3251  }
3252  else
3253  {
3254  return "n";
3255  }
3256  }
+ 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 3471 of file class.ilUtil.php.

References $target, and array.

3472  {
3473  $target = array();
3474  $existing_sub_key_values = array();
3475 
3476  foreach ($array as $key=>$sub_array)
3477  {
3478  if (!in_array($sub_array[$sub_key], $existing_sub_key_values))
3479  {
3480  $existing_sub_key_values[] = $sub_array[$sub_key];
3481  $target[$key] = $sub_array;
3482  }
3483  }
3484 
3485  return $target;
3486  }
Create styles array
The data for the language used.

◆ unmaskAttributeTag()

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

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

References $ilLog, and secureLink().

Referenced by unmaskSecureTags().

2917  {
2918  global $ilLog;
2919 
2920  while (preg_match('/&lt;('.$tag.' '.$tag_att.$tag_att.'="(([$@!*()~;,_0-9A-z\/:=%.&#?+\-])*)")&gt;/i',
2921  $a_str, $found))
2922  {
2923  $old_str = $a_str;
2924  $a_str = preg_replace("/&lt;".preg_quote($found[1], "/")."&gt;/i",
2925  '<'.$tag.' '.$tag_att.'="'.ilUtil::secureLink($found[2]).'">', $a_str);
2926  if ($old_str == $a_str)
2927  {
2928  $ilLog->write("ilUtil::unmaskA-".htmlentities($old_str)." == ".
2929  htmlentities($a_str));
2930  return $a_str;
2931  }
2932  }
2933  $a_str = str_replace('&lt;/'.$tag.'&gt;', '</'.$tag.'>', $a_str);
2934  return $a_str;
2935  }
static secureLink($a_str)
+ 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 2768 of file class.ilUtil.php.

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

Referenced by secureString().

2769  {
2770  foreach ($allow_array as $t)
2771  {
2772  switch($t)
2773  {
2774  case "a":
2775  $a_str = ilUtil::unmaskAttributeTag($a_str, "a", "href");
2776  break;
2777 
2778  case "img":
2779  $a_str = ilUtil::unmaskAttributeTag($a_str, "img", "src");
2780  break;
2781 
2782  case "p":
2783  case "div":
2784  $a_str = ilUtil::unmaskTag($a_str, $t, array(
2785  array("param" => "align", "value" => "left"),
2786  array("param" => "align", "value" => "center"),
2787  array("param" => "align", "value" => "justify"),
2788  array("param" => "align", "value" => "right")
2789  ));
2790  break;
2791 
2792  default:
2793  $a_str = ilUtil::unmaskTag($a_str, $t);
2794  break;
2795  }
2796  }
2797 
2798  return $a_str;
2799  }
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 2958 of file class.ilUtil.php.

References $t.

Referenced by unmaskSecureTags().

2959  {
2960  $a_str = str_replace("&lt;".$t."&gt;", "<".$t.">", $a_str);
2961  $a_str = str_replace("&lt;/".$t."&gt;", "</".$t.">", $a_str);
2962 
2963  if (is_array($fix_param))
2964  {
2965  foreach ($fix_param as $p)
2966  {
2967  $k = $p["param"];
2968  $v = $p["value"];
2969  $a_str = str_replace("&lt;$t $k=\"$v\"&gt;",
2970  "<"."$t $k=\"$v\"".">", $a_str);
2971  }
2972  }
2973  return $a_str;
2974  }
+ 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 5000 of file class.ilUtil.php.

References $data, $result, and array.

5001  {
5002  $vars = preg_split(
5003  '/([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff^|]*)\|/',
5004  $data,
5005  -1,
5006  PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE
5007  );
5008 
5009  $result = array();
5010 
5011  for($i = 0; $vars[$i]; $i++)
5012  {
5013  $result[$vars[$i++]] = unserialize($vars[$i]);
5014  }
5015 
5016  return $result;
5017  }
$result
Create styles array
The data for the language used.

◆ 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 1747 of file class.ilUtil.php.

References $DIC, $file, $log, $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(), ilSCORM2004ScoGUI\importSave(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilObjSCORM2004LearningModuleGUI\preview(), ilFileUtils\processZipFile(), ilFileDataCourse\unpackImportFile(), ilFileDataImportMail\unzip(), ilFileSystemGUI\unzipFile(), ilExAssignment\uploadMultiFeedbackFile(), ilLMMultiSrt\uploadMultipleSubtitleFile(), ilObjMediaObject\uploadMultipleSubtitleFile(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjQuestionPoolGUI\uploadQplObject(), and ilObjTestGUI\uploadTstObject().

1748  {
1749  global $DIC;
1750 
1751  $log = $DIC->logger()->root();
1752 
1753  if (!is_file($a_file))
1754  {
1755  return;
1756  }
1757 
1758  // if flat, move file to temp directory first
1759  if ($a_flat)
1760  {
1761  $tmpdir = ilUtil::ilTempnam();
1762  ilUtil::makeDir($tmpdir);
1763  copy($a_file, $tmpdir.DIRECTORY_SEPARATOR.basename($a_file));
1764  $orig_file = $a_file;
1765  $a_file = $tmpdir.DIRECTORY_SEPARATOR.basename($a_file);
1766  $origpathinfo = pathinfo($orig_file);
1767  }
1768 
1769  $pathinfo = pathinfo($a_file);
1770  $dir = $pathinfo["dirname"];
1771  $file = $pathinfo["basename"];
1772 
1773  // unzip
1774  $cdir = getcwd();
1775  chdir($dir);
1776  $unzip = PATH_TO_UNZIP;
1777 
1778  // the following workaround has been removed due to bug
1779  // http://www.ilias.de/mantis/view.php?id=7578
1780  // since the workaround is quite old, it may not be necessary
1781  // anymore, alex 9 Oct 2012
1782 /*
1783  // workaround for unzip problem (unzip of subdirectories fails, so
1784  // we create the subdirectories ourselves first)
1785  // get list
1786  $unzipcmd = "-Z -1 ".ilUtil::escapeShellArg($file);
1787  $arr = ilUtil::execQuoted($unzip, $unzipcmd);
1788  $zdirs = array();
1789 
1790  foreach($arr as $line)
1791  {
1792  if(is_int(strpos($line, "/")))
1793  {
1794  $zdir = substr($line, 0, strrpos($line, "/"));
1795  $nr = substr_count($zdir, "/");
1796  //echo $zdir." ".$nr."<br>";
1797  while ($zdir != "")
1798  {
1799  $nr = substr_count($zdir, "/");
1800  $zdirs[$zdir] = $nr; // collect directories
1801  //echo $dir." ".$nr."<br>";
1802  $zdir = substr($zdir, 0, strrpos($zdir, "/"));
1803  }
1804  }
1805  }
1806 
1807  asort($zdirs);
1808 
1809  foreach($zdirs as $zdir => $nr) // create directories
1810  {
1811  ilUtil::createDirectory($zdir);
1812  }
1813 */
1814 
1815  // real unzip
1816  if (!$overwrite)
1817  {
1818  $unzipcmd = ilUtil::escapeShellArg($file);
1819  }
1820  else
1821  {
1822  $unzipcmd = "-o ".ilUtil::escapeShellArg($file);
1823  }
1824  ilUtil::execQuoted($unzip, $unzipcmd);
1825 
1826  chdir($cdir);
1827 
1828  // remove all sym links
1829  clearstatcache(); // prevent is_link from using cache
1830  $dir_realpath = realpath($dir);
1831  foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)) as $name => $f)
1832  {
1833  if (is_link($name))
1834  {
1835  $target = readlink($name);
1836  if (substr($target, 0, strlen($dir_realpath)) != $dir_realpath)
1837  {
1838  unlink($name);
1839  $log->info("Removed symlink " . $name);
1840  }
1841  }
1842  }
1843 
1844  // if flat, get all files and move them to original directory
1845  if ($a_flat)
1846  {
1847  include_once("./Services/Utilities/classes/class.ilFileUtils.php");
1848  $filearray = array();
1849  ilFileUtils::recursive_dirscan($tmpdir, $filearray);
1850  if (is_array($filearray["file"]))
1851  {
1852  foreach ($filearray["file"] as $k => $f)
1853  {
1854  if (substr($f, 0, 1) != "." && $f != basename($orig_file))
1855  {
1856  copy($filearray["path"][$k].$f, $origpathinfo["dirname"].DIRECTORY_SEPARATOR.$f);
1857  }
1858  }
1859  }
1860  ilUtil::delDir($tmpdir);
1861  }
1862  }
static execQuoted($cmd, $args=NULL)
exec command and fix spaces on windows
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 ilTempnam($a_temp_path=null)
Create a temporary file in an ILIAS writable directory.
static escapeShellArg($a_arg)
global $DIC
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 4047 of file class.ilUtil.php.

References $lng, ilVirusScannerFactory\_getInstance(), and array.

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

4048  {
4049  global $lng;
4050 
4051  if (IL_VIRUS_SCANNER != "None")
4052  {
4053  require_once("./Services/VirusScanner/classes/class.ilVirusScannerFactory.php");
4055  if (($vs_txt = $vs->scanFile($a_file, $a_orig_name)) != "")
4056  {
4057  if ($a_clean && (IL_VIRUS_CLEAN_COMMAND != ""))
4058  {
4059  $clean_txt = $vs->cleanFile($a_file, $a_orig_name);
4060  if ($vs->fileCleaned())
4061  {
4062  $vs_txt.= "<br />".$lng->txt("cleaned_file").
4063  "<br />".$clean_txt;
4064  $vs_txt.= "<br />".$lng->txt("repeat_scan");
4065  if (($vs2_txt = $vs->scanFile($a_file, $a_orig_name)) != "")
4066  {
4067  return array(false, nl2br($vs_txt)."<br />".$lng->txt("repeat_scan_failed").
4068  "<br />".nl2br($vs2_txt));
4069  }
4070  else
4071  {
4072  return array(true, nl2br($vs_txt)."<br />".$lng->txt("repeat_scan_succeded"));
4073  }
4074  }
4075  else
4076  {
4077  return array(false, nl2br($vs_txt)."<br />".$lng->txt("cleaning_failed"));
4078  }
4079  }
4080  else
4081  {
4082  return array(false, nl2br($vs_txt));
4083  }
4084  }
4085  }
4086 
4087  return array(true,"");
4088  }
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 3228 of file class.ilUtil.php.

Referenced by ilLMObject\_isPagePublic(), ilObjSAHSLearningModuleAccess\_lookupOfflineModeAvailable(), ilObjGlossaryAccess\_lookupOnline(), ilObjFileBasedLMAccess\_lookupOnline(), ilObjContentObjectAccess\_lookupOnline(), ilObjSAHSLearningModule\_lookupOnline(), ilObjFileBasedLM\_lookupOnline(), ilObjSAHSLearningModuleAccess\_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().

3229  {
3230  if(strtolower($a_yn) == "y")
3231  {
3232  return true;
3233  }
3234  else
3235  {
3236  return false;
3237  }
3238  }
+ 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 1870 of file class.ilUtil.php.

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

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

1871  {
1872  $cdir = getcwd();
1873 
1874  if($compress_content)
1875  {
1876  $a_dir .="/*";
1877  $pathinfo = pathinfo($a_dir);
1878  chdir($pathinfo["dirname"]);
1879  }
1880 
1881  $pathinfo = pathinfo($a_file);
1882  $dir = $pathinfo["dirname"];
1883  $file = $pathinfo["basename"];
1884 
1885  if(!$compress_content)
1886  {
1887  chdir($dir);
1888  }
1889 
1890  $zip = PATH_TO_ZIP;
1891 
1892  if(!$zip)
1893  {
1894  chdir($cdir);
1895  return false;
1896  }
1897 
1898  if (is_array($a_dir))
1899  {
1900  $source = "";
1901  foreach($a_dir as $dir)
1902  {
1903  $name = basename($dir);
1904  $source.= " ".ilUtil::escapeShellArg($name);
1905  }
1906  }
1907  else
1908  {
1909  $name = basename($a_dir);
1910  if (trim($name) != "*")
1911  {
1912  $source = ilUtil::escapeShellArg($name);
1913  }
1914  else
1915  {
1916  $source = $name;
1917  }
1918  }
1919 
1920  $zipcmd = "-r ".ilUtil::escapeShellArg($a_file)." ".$source;
1921  ilUtil::execQuoted($zip, $zipcmd);
1922  chdir($cdir);
1923  return true;
1924  }
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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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