ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUtil Class Reference

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

+ Collaboration diagram for ilUtil:

Public Member Functions

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

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.
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.
static getImagePath ($img, $module_path="", $mode="output", $offline=false)
 get image path (for images located in a template directory)
static getHtmlPath ($relative_path)
 get url of path
static getStyleSheetLocation ($mode="output", $a_css_name="", $a_css_location="")
 get full style sheet file name (path inclusive) of current user
static getJSLocation ($a_js_name, $a_js_location="", $add_version=FALSE)
 get full javascript file name (path inclusive) of current user
static getP3PLocation ()
 Get p3p file path.
static getNewContentStyleSheetLocation ($mode="output")
 get full style sheet file name (path inclusive) of current user
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.
static getSelectName ($selected, $values)
 ???
static formCheckbox ($checked, $varname, $value, $disabled=false)
 ??? public
static formDisabledRadioButton ($checked, $varname, $value, $disabled)
 ???
static formRadioButton ($checked, $varname, $value, $onclick=null, $disabled=false)
 ??? public
static formInput ($varname, $value, $disabled=false)
 create html input area
static checkInput ($vars)
 ???
static setPathStr ($a_path)
 ??? public
static switchColor ($a_num, $a_css1, $a_css2)
 switches style sheets for each even $a_num (used for changing colors of different result rows)
static checkFormEmpty ($emptyFields)
 ??? public
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.
static makeClickable ($a_text, $detectGotoLinks=false)
 makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen
static replaceLinkProperties ($matches)
 replaces target _blank with _self and the link text with the according object title.
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.
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.
static is_email ($a_email)
 This preg-based function checks whether an e-mail address is formally valid.
static isPassword ($a_passwd, &$customError=null)
 validates a password public
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.
static getPasswordRequirementsInfo ()
 infotext for ilPasswordInputGUI setInfo()
static shortenText ($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
 shorten a string to given length.
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.
static attribsToArray ($a_str)
 converts a string of format var1 = "val1" var2 = "val2" ...
static rCopy ($a_sdir, $a_tdir, $preserveTimeAttributes=false)
 Copies content of a directory $a_sdir recursively to a directory $a_tdir.
static getWebspaceDir ($mode="filesystem")
 get webspace directory
static getDataDir ()
 get data directory (outside webspace)
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
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.

static ilTempnam ()
 Create a temporary file in an ILIAS writable directory.
static createDirectory ($a_dir, $a_mod=0755)
 create directory
static unzip ($a_file, $overwrite=false, $a_flat=false)
 unzip file
static zip ($a_dir, $a_file, $compress_content=false)
 zips given directory/file into given zip.file
static CreateIsoFromFolder ($a_dir, $a_file)
static getConvertCmd ()
 get convert command
static execConvert ($args)
 execute convert command
static isConvertVersionAtLeast ($a_version)
 Compare convert version numbers.
static convertImage ($a_from, $a_to, $a_target_format="", $a_geometry="", $a_background_color="")
 convert image
static resizeImage ($a_from, $a_to, $a_width, $a_height, $a_constrain_prop=false)
 resize image
static img ($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
 Build img tag.
static html2pdf ($html, $pdf_file)
 produce pdf out of html with htmldoc
static htmlfile2pdf ($html_file, $pdf_file)
 produce pdf out of html with htmldoc
static deliverData ($a_data, $a_filename, $mime="application/octet-stream", $charset="")
 deliver data for download via browser.
static deliverFile ($a_file, $a_filename, $a_mime= '', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
 deliver file for download via browser.
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.
static getASCIIFilename ($a_filename)
 convert utf8 to ascii filename
static htmlentitiesOutsideHTMLTags ($htmlText)
 Encodes HTML entities outside of HTML tags.
static getJavaPath ()
 get full java path (dir + java command)
static appendUrlParameterString ($a_url, $a_par, $xml_style=false)
 append URL parameter string ("par1=value1&par2=value2...") to given URL string
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.
static makeDirParents ($a_dir)
 Create a new directory and all parent directories.
static delDir ($a_dir, $a_clean_only=false)
 removes a dir and all its content (subdirs and files) recursively
static getDir ($a_dir, $a_rec=false, $a_sub_dir="")
 get directory
static stripSlashesArray ($a_arr, $a_strip_html=true, $a_allow="")
 Strip slashes from array.
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
static stripOnlySlashes ($a_str)
 strip slashes if magic qoutes is enabled
static secureString ($a_str, $a_strip_html=true, $a_allow="")
 Remove unsecure tags.
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.
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.
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
static prepareFormOutput ($a_str, $a_strip=false)
 prepares string output for html forms public
static prepareDBString ($a_str)
 prepare a string for db writing (insert/update)
static removeItemFromDesktops ($a_id)
 removes object from all user's desktops public
static extractParameterString ($a_parstr)
 extracts parameter value pairs from a string into an array
static assembleParameterString ($a_par_arr)
static dumpString ($a_str)
 dumps ord values of every character of string $a_str
static yn2tf ($a_yn)
 convert "y"/"n" to true/false
static tf2yn ($a_tf)
 convert true/false to "y"/"n"
static sort_func ($a, $b)
 sub-function to sort an array
static sort_func_numeric ($a, $b)
 sub-function to sort an array
static sortArray ($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
 sortArray
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.

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".
static getGDSupportedImageType ($a_desired_type)
 returns the best supported image type by this PHP build
static deducibleSize ($a_mime)
 checks if mime type is provided by getimagesize()
static redirect ($a_script)
 http redirect to other script
static insertInstIntoID ($a_value)
 inserts installation id into ILIAS id
static groupNameExists ($a_group_name, $a_id=0)
 checks if group name already exists.
static getMemString ()
 get current memory usage as string
static isWindows ()
 check wether the current client system is a windows system
static escapeShellArg ($a_arg)
static escapeShellCmd ($a_arg)
 escape shell cmd
static execQuoted ($cmd, $args=NULL)
 exec command and fix spaces on windows
static excelTime ($year="", $month="", $day="", $hour="", $minute="", $second="")
 Calculates a Microsoft Excel date/time value.
static renameExecutables ($a_dir)
 Rename uploaded executables for security reasons.
static rRenameSuffix ($a_dir, $a_old_suffix, $a_new_suffix)
 Renames all files with certain suffix and gives them a new suffix.
static isAPICall ()
static KT_replaceParam ($qstring, $paramName, $paramValue)
static replaceUrlParameterString ($url, $parametersArray)
static generatePasswords ($a_number)
 Generate a number of passwords.
static removeTrailingPathSeparators ($path)
static array_php2js ($data)
 convert php arrays to javascript arrays
static virusHandling ($a_file, $a_orig_name="", $a_clean=true)
 scan file for viruses and clean files if possible
static moveUploadedFile ($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
 move uploaded file
static date_mysql2time ($mysql_date_time)
 make time object from mysql_date_time
static now ()
 Return current timestamp in Y-m-d H:i:s format.
static & processCSVRow (&$row, $quoteAll=FALSE, $separator=";", $outUTF8=FALSE, $compatibleWithMSExcel=TRUE)
 Convertes an array for CSV usage.
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.
static insertLatexImages ($a_text, $a_start="\[tex\]", $a_end="\[\/tex\]")
 replace [text]...[/tex] tags with formula image code
static buildLatexImages ($a_text, $a_dir)
 replace [text]...[/tex] tags with formula image code //////// added additional parameters to make this method usable for other start and end tags as well
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.
static isHTML ($a_text)
 Checks if a given string contains HTML or not.
static int2array ($seconds, $periods=null)
 Return an array of date segments.
static timearray2string ($duration)
 Return a string of time periods.
static getFileSizeInfo ()
static __extractRefId ($role_title)
 extract ref id from role title, e.g.
static __extractId ($ilias_id, $inst_id)
 extract ref id from role title, e.g.
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.
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.
static quoteArray ($a_array)
 Quotes all members of an array for usage in DB query statement.
static sendInfo ($a_info="", $a_keep=false)
 Send Info Message to Screen.
static sendFailure ($a_info="", $a_keep=false)
 Send Failure Message to Screen.
static sendQuestion ($a_info="", $a_keep=false)
 Send Question to Screen.
static sendSuccess ($a_info="", $a_keep=false)
 Send Success Message to Screen.
static infoPanel ($a_keep=true)
static dirsize ($directory)
 get size of a directory or a file.
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
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'.
static unserializeSession ($data)
 Returns the unserialized ILIAS session data.

Static Protected Member Functions

static processConvertVersion ($a_version)
 Parse convert version string, e.g.

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:
class.ilUtil.php 61069 2015-10-14 09:10:13Z gitmgr

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

Member Function Documentation

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 4778 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().

{
$test_str = explode('_',$ilias_id);
if ($test_str[0] == 'il' && $test_str[1] == $inst_id && count($test_str) == 4)
{
$test2 = (int) $test_str[3];
return is_numeric ($test2) ? (int) $test2 : false;
}
return false;
}

+ Here is the caller graph for this function:

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

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

{
$test_str = explode('_',$role_title);
if ($test_str[0] == 'il')
{
$test2 = (int) $test_str[3];
return is_numeric ($test2) ? (int) $test2 : false;
}
return false;
}

+ Here is the caller graph for this function:

static ilUtil::_getHttpPath ( )
static

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

References $ilIliasIniFile, and ilContext\usesHTTP().

Referenced by ilPurchaseBaseGUI\__sendBill(), ilSoapClient\__setServer(), ilMail\_getAutoGeneratedMessageString(), ilMail\_getInstallationSignature(), ilShopBoughtObjectsGUI\createBill(), ilCronManager\runActiveJobs(), ilMailSummaryNotification\send(), ilDiskQuotaSummaryNotification\send(), and ilCronDeleteInactiveUserReminderMail\sendReminder().

{
if($_SERVER['SHELL'] || php_sapi_name() == 'cli' ||
// fallback for windows systems, useful in crons
(class_exists("ilContext") && !ilContext::usesHTTP()))
{
return $ilIliasIniFile->readVariable('server', 'http_path');
}
else
{
return ILIAS_HTTP_PATH;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References $ilDB, $ilUser, $query, $res, $row, ilRbacReview\_getOperationIdsByName(), and DB_FETCHMODE_OBJECT.

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

{
global $ilDB,$rbacreview,$ilAccess,$ilUser,$ilias,$tree;
if(!is_array($a_obj_type))
{
$where = "WHERE type = ".$ilDB->quote($a_obj_type, "text")." ";
}
else
{
$where = "WHERE ".$ilDB->in("type", $a_obj_type, false, "text")." ";
}
// limit number of results default is search result limit
if(!$limit)
{
$limit = $ilias->getSetting('search_max_hits',100);
}
if($limit == -1)
{
$limit = 10000;
}
// default to logged in usr
$a_usr_id = $a_usr_id ? $a_usr_id : $ilUser->getId();
$a_roles = $rbacreview->assignedRoles($a_usr_id);
// Since no rbac_pa entries are available for the system role. This function returns !all! ref_ids in the case the user
// is assigned to the system role
if($rbacreview->isAssigned($a_usr_id,SYSTEM_ROLE_ID))
{
$query = "SELECT ref_id FROM object_reference obr LEFT JOIN object_data obd ON obr.obj_id = obd.obj_id ".
"LEFT JOIN tree ON obr.ref_id = tree.child ".
$where.
"AND tree = 1";
$res = $ilDB->query($query);
$counter = 0;
while($row = $ilDB->fetchObject($res))
{
// Filter recovery folder
if($tree->isGrandChild(RECOVERY_FOLDER_ID, $row->ref_id))
{
continue;
}
if($counter++ >= $limit)
{
break;
}
$ref_ids[] = $row->ref_id;
}
return $ref_ids ? $ref_ids : array();
} // End Administrators
// Check ownership if it is not asked for edit_permission or a create permission
if($a_operation == 'edit_permissions' or strpos($a_operation,'create') !== false)
{
$check_owner = ") ";
}
else
{
$check_owner = "OR owner = ".$ilDB->quote($a_usr_id, "integer").") ";
}
$ops_ids = ilRbacReview::_getOperationIdsByName(array($a_operation));
$ops_id = $ops_ids[0];
$and = "AND ((".$ilDB->in("rol_id", $a_roles, false, "integer")." ";
$query = "SELECT DISTINCT(obr.ref_id),obr.obj_id,type FROM object_reference obr ".
"JOIN object_data obd ON obd.obj_id = obr.obj_id ".
"LEFT JOIN rbac_pa ON obr.ref_id = rbac_pa.ref_id ".
$where.
$and.
"AND (".$ilDB->like("ops_id", "text","%i:".$ops_id."%"). " ".
"OR ".$ilDB->like("ops_id", "text", "%:\"".$ops_id."\";%").")) ".
$check_owner;
$res = $ilDB->query($query);
$counter = 0;
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
if($counter >= $limit)
{
break;
}
// Filter objects in recovery folder
if($tree->isGrandChild(RECOVERY_FOLDER_ID, $row->ref_id))
{
continue;
}
// Check deleted, hierarchical access ...
if($ilAccess->checkAccessOfUser($a_usr_id,$a_operation,'',$row->ref_id,$row->type,$row->obj_id))
{
$counter++;
$ref_ids[] = $row->ref_id;
}
}
return $ref_ids ? $ref_ids : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::_sanitizeFilemame (   $a_filename)
static

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

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

{
return strip_tags(self::stripSlashes($a_filename));
}

+ Here is the caller graph for this function:

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

References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and quoteArray().

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

{
global $ilDB;
if(!$a_ids)
{
return array();
}
// use database to sort user array
$where = "WHERE ".$a_id_name." IN (";
$where .= implode(",", ilUtil::quoteArray($a_ids));
$where .= ") ";
$query = "SELECT ".$a_id_name." FROM ".$a_table." ".
$where.
"ORDER BY ".$a_field;
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->$a_id_name;
}
return $ids ? $ids : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Referenced by ilObjiLincCourseGUI\__showSearchGroupTable(), ilObjiLincCourseGUI\__showSearchRoleTable(), ilObjiLincCourseGUI\__showSearchUserTable(), and ilObjRoleTemplateGUI\permObject().

{
if (empty($data))
{
$data = array();
}
foreach($data as $k=>$datum)
{
if(is_null($datum)) $data[$k] = 'null';
if(is_string($datum)) $data[$k] = "'" . $datum . "'";
if(is_array($datum)) $data[$k] = array_php2js($datum);
}
return "[" . implode(', ', $data) . "]";
}

+ Here is the caller graph for this function:

static ilUtil::assembleParameterString (   $a_par_arr)
static

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

References $target_arr.

Referenced by ilMediaItem\getParameterString().

{
if (is_array($a_par_arr))
{
$target_arr = array();
foreach ($a_par_arr as $par => $val)
{
$target_arr[] = "$par=\"$val\"";
}
$target_str = implode(", ", $target_arr);
}
return $target_str;
}

+ Here is the caller graph for this function:

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

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

{
$attribs = array();
while (is_int(strpos($a_str, "=")))
{
$eq_pos = strpos($a_str, "=");
$qu1_pos = strpos($a_str, "\"");
$qu2_pos = strpos(substr($a_str, $qu1_pos + 1), "\"") + $qu1_pos + 1;
if (is_int($eq_pos) && is_int($qu1_pos) && is_int($qu2_pos))
{
$var = trim(substr($a_str, 0, $eq_pos));
$val = trim(substr($a_str, $qu1_pos + 1, ($qu2_pos - $qu1_pos) - 1));
$attribs[$var] = $val;
$a_str = substr($a_str, $qu2_pos + 1);
}
else
{
$a_str = "";
}
}
return $attribs;
}

+ Here is the caller graph for this function:

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

replace [text]...[/tex] tags with formula image code //////// added additional parameters to make this method usable for other start and end tags as well

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

References $GLOBALS.

Referenced by ilPresentationListTableGUI\fillRow().

{
$result_text = $a_text;
$start = "\[tex\]";
$end = "\[\/tex\]";
$cgi = URL_TO_LATEX;
if ($cgi != "")
{
while (preg_match('/' . $start . '(.*?)' . $end . '/ie', $result_text, $found))
{
$cnt = (int) $GLOBALS["teximgcnt"]++;
// get image from cgi and write it to file
$fpr = @fopen($cgi."?".rawurlencode($found[1]), "r");
$lcnt = 0;
if ($fpr)
{
while(!feof($fpr))
{
$buf = fread($fpr, 1024);
if ($lcnt == 0)
{
if (is_int(strpos(strtoupper(substr($buf, 0, 5)), "GIF")))
{
$suffix = "gif";
}
else
{
$suffix = "png";
}
$fpw = fopen($a_dir."/teximg/img".$cnt.".".$suffix, "w");
}
$lcnt++;
fwrite($fpw, $buf);
}
fclose($fpw);
fclose($fpr);
}
// replace tex-tag
$img_str = "./teximg/img".$cnt.".".$suffix;
$result_text = str_replace($found[0],
'<img alt="'.$found[1].'" src="'.$img_str.'" />', $result_text);
}
}
return $result_text;
}

+ Here is the caller graph for this function:

static ilUtil::checkFormEmpty (   $emptyFields)
static

??? public

Parameters
array
Returns
string

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

{
$feedback = "";
foreach ($emptyFields as $key => $val)
{
if ($val == "") {
if ($feedback != "") $feedback .= ", ";
$feedback .= $key;
}
}
return $feedback;
}
static ilUtil::checkInput (   $vars)
static

???

Parameters
string

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

{
// TO DO:
// Diese Funktion soll Formfeldeingaben berprfen (empty und required)
}
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 2001 of file class.ilUtil.php.

References escapeShellArg(), and execConvert().

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

{
$format_str = ($a_target_format != "")
? strtoupper($a_target_format).":"
: "";
$geometry = "";
if ($a_geometry != "")
{
if (is_int(strpos($a_geometry, "x")))
{
$geometry = " -geometry ".$a_geometry." ";
}
else
{
$geometry = " -geometry ".$a_geometry."x".$a_geometry." ";
}
}
$bg_color = ($a_background_color != "")
? " -background color ".$a_background_color." "
: "";
$convert_cmd = ilUtil::escapeShellArg($a_from)." ".$bg_color.$geometry.ilUtil::escapeShellArg($format_str.$a_to);
ilUtil::execConvert($convert_cmd);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

create directory

deprecated use makeDir() instead!

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

References makeDir().

Referenced by ilObjCategoryGUI\_importCategories(), ilObjExternalToolsSettingsGUI\createSocialBookmarkObject(), ilMediaItem\createWorkDirectory(), ilTempnam(), ilSCORM2004ScoGUI\importSave(), ilPropertyFormGUI\keepFileUpload(), assQuestion\moveUploadedMediaFile(), ilSetup\unzip(), and ilObjExternalToolsSettingsGUI\updateSocialBookmarkObject().

{
ilUtil::makeDir($a_dir);
//@mkdir($a_dir);
//@chmod($a_dir, $a_mod);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

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

Referenced by ilScorm2004Export\buildExportFileISO().

{
$cdir = getcwd();
$pathinfo = pathinfo($a_dir);
chdir($pathinfo["dirname"]);
$pathinfo = pathinfo($a_file);
$dir = $pathinfo["dirname"];
$file = $pathinfo["basename"]; $zipcmd = "-r ".ilUtil::escapeShellArg($a_file)." ".$source;
$mkisofs = PATH_TO_MKISOFS;
if(!$mkisofs)
{
chdir($cdir);
return false;
}
$name = basename($a_dir);
$source = ilUtil::escapeShellArg($name);
$zipcmd = "-r -J -o ".$a_file." ".$source;
ilUtil::execQuoted($mkisofs, $zipcmd);
chdir($cdir);
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::date_mysql2time (   $mysql_date_time)
static

make time object from mysql_date_time

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

Referenced by ilTestServiceGUI\getResultsUserdata(), and ilFileXMLWriter\start().

{
list($datum, $uhrzeit) = explode (" ",$mysql_date_time);
list($jahr, $monat, $tag) = explode("-", $datum);
list($std, $min, $sec) = explode(":", $uhrzeit);
return mktime ((int) $std, (int) $min, (int) $sec, (int) $monat, (int) $tag, (int) $jahr);
}

+ Here is the caller graph for this function:

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

{
if (($a_mime == "image/gif") || ($a_mime == "image/jpeg") ||
($a_mime == "image/png") || ($a_mime == "application/x-shockwave-flash") ||
($a_mime == "image/tiff") || ($a_mime == "image/x-ms-bmp") ||
($a_mime == "image/psd") || ($a_mime == "image/iff"))
{
return true;
}
else
{
return false;
}
}

+ Here is the caller graph for this function:

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

References $file.

Referenced by ilFileDataMail\__deleteAttachmentDirectory(), ilFileDataGroup\_deleteAll(), ilUserDataSet\afterXmlRecordWriting(), ilWikiHTMLExport\buildExportFile(), ilPortfolioHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilScorm2004Export\buildExportFileHTML(), ilScorm2004Export\buildExportFileHTMLOne(), ilScorm2004Export\buildExportFileISO(), ilScorm2004Export\buildExportFilePDF(), ilScorm2004Export\buildExportFileSCORM(), ilSurveyExport\buildExportFileXML(), ilObjStyleSheet\cleanExportDirectory(), assOrderingQuestion\cleanImagefiles(), ilObjFile\clearDataDirectory(), ilExAssignment\clearMultiFeedbackDirectory(), ilSetup\cloneFromSource(), ilFileDataShop\deassignFileFromPaymentObject(), ilObjAICCLearningModule\delete(), ilObjMediaObject\delete(), ilObjFileBasedLM\delete(), ilFileSystemStorage\delete(), ilObjSurvey\delete(), ilExportGUI\delete(), ilObjContentObject\delete(), ilClient\delete(), ilObjSAHSLearningModule\delete(), SurveyQuestion\delete(), assQuestion\delete(), ilObjSurveyQuestionPool\deleteAllData(), ilCertificate\deleteCertificate(), ilFileDataGroup\deleteDirectory(), ilFileDataCourse\deleteDirectory(), ilFileSystemStorage\deleteDirectory(), ilObjSurveyQuestionPoolGUI\deleteExportFileObject(), ilObjSurveyGUI\deleteExportFileObject(), ilExAssignment\deleteFeedbackFile(), ilFileSystemGUI\deleteFile(), ilObjMediaObjectGUI\deleteFileObject(), ilObjQuestionPool\deleteQuestionpool(), assQuestion\deleteSuggestedSolutions(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilObjFile\deleteVersions(), ilCertificate\deliverExportFileXML(), ilObjFile\doDelete(), ilExAssignment\downloadAllDeliveredFiles(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilExAssignment\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilExport\exportEntity(), ilObjGlossary\exportHTML(), ilObjFileBasedLMGUI\exportHTML(), ilObjContentObject\exportHTML(), ilExportContainer\exportObject(), ilExport\exportObject(), ilObjUser\exportPersonalData(), ilObjContentObject\exportSCORM(), ilExAssignment\handleFeedbackFileUpload(), ilCloudPluginUploadGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilObjUserFolderGUI\importCancelledObject(), ilCertificate\importCertificate(), ilObjGlossaryGUI\importFileObject(), ilObjContentObject\importFromZipFile(), ilImport\importObject(), ilObjSurveyQuestionPool\importObject(), ilObjSurvey\importObject(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjUserFolderGUI\importUsersObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilObjExercise\processUploadedFile(), ilFileUtils\processZipFile(), ilObjTest\removeAllTestEditings(), ilObjTest\removeTestResultsByActiveIds(), ilObjTest\removeTestResultsForUser(), ilObjFileGUI\saveUnzip(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), assMultipleChoice\syncImages(), assSingleChoice\syncImages(), assQuestion\syncSuggestedSolutionFiles(), ilFileDataImportMail\unlinkLast(), ilFileDataImportGroup\unlinkLast(), unzip(), ilSetup\updateNewClient(), ilExAssignment\uploadMultiFeedbackFile(), ilObjQuestionPoolGUI\uploadQplObject(), and ilObjTestGUI\uploadTstObject().

{
if (!is_dir($a_dir) || is_int(strpos($a_dir, "..")))
{
return;
}
$current_dir = opendir($a_dir);
$files = array();
// this extra loop has been necessary because of a strange bug
// at least on MacOS X. A looped readdir() didn't work
// correctly with larger directories
// when an unlink happened inside the loop. Getting all files
// into the memory first solved the problem.
while($entryname = readdir($current_dir))
{
$files[] = $entryname;
}
foreach($files as $file)
{
if(is_dir($a_dir."/".$file) and ($file != "." and $file!=".."))
{
ilUtil::delDir(${a_dir}."/".${file});
}
elseif ($file != "." and $file != "..")
{
unlink(${a_dir}."/".${file});
}
}
closedir($current_dir);
if (!$a_clean_only)
{
@rmdir(${a_dir});
}
}

+ Here is the caller graph for this function:

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

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

Referenced by ilTestExport\aggregatedResultsToCSV(), ilCertificate\createPreview(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilPublicUserProfileGUI\deliverVCard(), ilObjSystemFolderGUI\downloadJavaServerIniObject(), ilObjLanguageExtGUI\downloadObject(), ilBookmarkAdministrationGUI\export(), ilSurveyParticipantsGUI\exportAllCodesObject(), ilAccountCodesGUI\exportCodes(), ilPaymentCouponGUI\exportCodes(), ilRegistrationSettingsGUI\exportCodes(), ilSurveyParticipantsGUI\exportCodesObject(), ilSessionOverviewGUI\exportCSV(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilECSSettingsGUI\exportImported(), ilObjAssessmentFolderGUI\exportLogObject(), ilNoteGUI\exportNotesHTML(), ilECSSettingsGUI\exportReleased(), ilDidacticTemplateSettingsGUI\exportTemplate(), ilTestExport\exportToCSV(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilCalendarRemoteAccessHandler\handleRequest(), ilCertificate\outCertificate(), and ilPageObject\send_paragraph().

{
$disposition = "attachment"; // "inline" to view file in browser or "attachment" to download to hard disk
// $mime = "application/octet-stream"; // or whatever the mime type is
include_once './Services/Http/classes/class.ilHTTPS.php';
//if($_SERVER['HTTPS'])
if( ilHTTPS::getInstance()->isDetected() )
{
// Added different handling for IE and HTTPS => send pragma after content informations
#header("Pragma: ");
#header("Cache-Control: ");
#header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
#header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
#header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
#header("Cache-Control: post-check=0, pre-check=0", false);
}
else if ($disposition == "attachment")
{
header("Cache-control: private");
}
else
{
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
}
$ascii_filename = ilUtil::getASCIIFilename($a_filename);
if (strlen($charset))
{
$charset = "; charset=$charset";
}
header("Content-Type: $mime$charset");
header("Content-Disposition:$disposition; filename=\"".$ascii_filename."\"");
header("Content-Description: ".$ascii_filename);
header("Content-Length: ".(string)(strlen($a_data)));
//if($_SERVER['HTTPS'])
if( ilHTTPS::getInstance()->isDetected() )
{
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
}
header("Connection: close");
echo $a_data;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

Referenced by ilTestExport\aggregatedResultsToExcel(), ilShopBoughtObjectsGUI\createBill(), ilObjTestVerificationGUI\deliver(), ilObjCourseVerificationGUI\deliver(), ilObjExerciseVerificationGUI\deliver(), ilObjSCORMVerificationGUI\deliver(), ilCertificate\deliverExportFileXML(), ilBookingObjectGUI\deliverInfo(), ilNewsItem\deliverMobFile(), ilBookingObjectGUI\deliverPostFile(), ilExportGUI\download(), ilExAssignment\downloadAllDeliveredFiles(), ilCourseArchivesGUI\downloadArchives(), ilObjCourseGUI\downloadArchivesObject(), ilObjPortfolioGUI\downloadExcAssFile(), ilObjBlogGUI\downloadExcAssFile(), ilObjPortfolioGUI\downloadExcSubFile(), ilObjBlogGUI\downloadExcSubFile(), ilSCORM2004ScoGUI\downloadExportFile(), ilGlossaryPresentationGUI\downloadExportFile(), ilObjGroup\downloadExportFile(), ilObjSCORM2004LearningModuleGUI\downloadExportFile(), ilLMPresentationGUI\downloadExportFile(), ilObjSurveyQuestionPoolGUI\downloadExportFileObject(), ilObjSurveyGUI\downloadExportFileObject(), ilObjUserFolderGUI\downloadExportFileObject(), ilObjExerciseGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilFileSystemGUI\downloadFile(), ilObjExerciseGUI\downloadFileObject(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilObjFolderGUI\downloadFolderObject(), ilObjExerciseGUI\downloadGlobalFeedbackFileObject(), ilExAssignment\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilObjContentObjectGUI\downloadPDFFile(), ilObjExerciseGUI\downloadPeerReviewObject(), ilSCORM2004ScoGUI\downloadResource(), ilExAssignment\downloadSingleFile(), ilSCORMOfflineModeGUI\executeCommand(), ilObjDlBook\export(), ilObjPortfolioBaseGUI\export(), ilObjBlogGUI\export(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilObjStyleSettingsGUI\exportLayoutObject(), ilObjQuestionPoolGUI\exportQuestionObject(), ilObjStyleSheetGUI\exportStyleObject(), ilTestExport\exportToExcel(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), ilObjBibliographicGUI\sendFile(), ilDataCollectionRecordListGUI\sendFile(), ilObjFile\sendFile(), ilWebAccessChecker\sendFile(), ilObjSessionGUI\sendFileObject(), ilObjCourseGUI\sendFileObject(), ilExAssignment\sendMultiFeedbackStructureFile(), and ilObjUser\sendPersonalDataFile().

{
// should we fail silently?
if(!file_exists($a_file))
{
return false;
}
if ($isInline) {
$disposition = "inline"; // "inline" to view file in browser
} else {
$disposition = "attachment"; // "attachment" to download to hard disk
//$a_mime = "application/octet-stream"; // override mime type to ensure that no browser tries to show the file anyway.
}
// END WebDAV: Show file in browser or provide it as attachment
if(strlen($a_mime))
{
$mime = $a_mime;
}
else
{
$mime = "application/octet-stream"; // or whatever the mime type is
}
// BEGIN WebDAV: Removed broken HTTPS code.
// END WebDAV: Removed broken HTTPS code.
if ($disposition == "attachment")
{
header("Cache-control: private");
}
else
{
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
}
$ascii_filename = ilUtil::getASCIIFilename($a_filename);
header("Content-Type: $mime");
header("Content-Disposition:$disposition; filename=\"".$ascii_filename."\"");
header("Content-Description: ".$ascii_filename);
// #7271: if notice gets thrown download will fail in IE
$filesize = @filesize($a_file);
if ($filesize)
{
header("Content-Length: ".(string)$filesize);
}
include_once './Services/Http/classes/class.ilHTTPS.php';
#if($_SERVER['HTTPS'])
if(ilHTTPS::getInstance()->isDetected())
{
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
}
header("Connection: close");
ilUtil::readFile( $a_file );
if ($removeAfterDelivery)
{
unlink ($a_file);
}
if ($a_exit_after)
{
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References $size.

Referenced by ilObjMediaCastAccess\_lookupDiskUsage(), ilObjFileBasedLMAccess\_lookupDiskUsage(), ilObjFileAccess\_lookupDiskUsage(), ilObjSAHSLearningModuleAccess\_lookupDiskUsage(), ilFileDataMail\_lookupDiskUsageOfUser(), ilExAssignment\downloadAllDeliveredFiles(), ilObjPortfolio\handleQuotaUpdate(), ilVerificationObject\handleQuotaUpdate(), and ilObjBlog\handleQuotaUpdate().

{
$size = 0;
if (!is_dir($directory))
{
// BEGIN DiskQuota Suppress PHP warning when attempting to determine
// dirsize of non-existing directory
$size = @filesize($directory);
// END DiskQuota Suppress PHP warning.
return ($size === false) ? -1 : $size;
}
if ($DIR = opendir($directory))
{
while (($dirfile = readdir($DIR)) !== false)
{
if (is_link($directory . DIRECTORY_SEPARATOR . $dirfile) || $dirfile == '.' || $dirfile == '..')
continue;
if (is_file($directory . DIRECTORY_SEPARATOR . $dirfile))
$size += filesize($directory . DIRECTORY_SEPARATOR . $dirfile);
else if (is_dir($directory . DIRECTORY_SEPARATOR . $dirfile))
{
// BEGIN DiskQuota: dirsize is not a global function anymore
$dirSize = ilUtil::dirsize($directory . DIRECTORY_SEPARATOR . $dirfile);
// END DiskQuota: dirsize is not a global function anymore
if ($dirSize >= 0)
$size += $dirSize;
else return -1;
}
}
closedir($DIR);
}
return $size;
}

+ Here is the caller graph for this function:

static ilUtil::dumpString (   $a_str)
static

dumps ord values of every character of string $a_str

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

References $ret.

{
$ret = $a_str.": ";
for($i=0; $i<strlen($a_str); $i++)
{
$ret.= ord(substr($a_str,$i,1))." ";
}
return $ret;
}
static ilUtil::escapeShellCmd (   $a_arg)
static

escape shell cmd

public

Parameters
@return

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

Referenced by ilImagemapPreview\createPreview().

{
if(ini_get('safe_mode') == 1)
{
return $a_arg;
}
setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8"); // fix for PHP escapeshellcmd bug. See: http://bugs.php.net/bug.php?id=45132
return escapeshellcmd($a_arg);
}

+ Here is the caller graph for this function:

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

Referenced by ilObjUserFolder\createExcelExport(), ilTestExport\exportToExcel(), and ilSurveyEvaluationGUI\exportUserSpecificResults().

{
$starting_time = mktime(0, 0, 0, 1, 2, 1970);
if (strcmp("$year$month$day$hour$minute$second", "") == 0)
{
$target_time = time();
}
else
{
if ($year < 1970)
{
return 0;
}
}
$target_time = mktime($hour, $minute, $second, $month, $day, $year);
$difference = $target_time - $starting_time;
$days = (($difference - ($difference % 86400)) / 86400);
$difference = $difference - ($days * 86400) + 3600;
// #15343 - using a global locale leads to , instead of . for (implicit) floats
return str_replace(",", ".", ($days + 25570 + ($difference / 86400)));
}

+ Here is the caller graph for this function:

static ilUtil::execConvert (   $args)
static
static ilUtil::execQuoted (   $cmd,
  $args = NULL 
)
static

exec command and fix spaces on windows

Parameters
string$cmd
string$args
Returns
array

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

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

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

{
global $ilLog;
if(ilUtil::isWindows() && strpos($cmd, " ") !== false && substr($cmd, 0, 1) !== '"')
{
// cmd won't work without quotes
$cmd = '"'.$cmd.'"';
if($args)
{
// args are also quoted, workaround is to quote the whole command AGAIN
// was fixed in php 5.2 (see php bug #25361)
if (version_compare(phpversion(), "5.2", "<") && strpos($args, '"') !== false)
{
$cmd = '"'.$cmd." ".$args.'"';
}
// args are not quoted or php is fixed, just append
else
{
$cmd .= " ".$args;
}
}
}
// nothing todo, just append args
else if($args)
{
$cmd .= " ".$args;
}
//echo "<br>".$cmd; exit;
exec($cmd, $arr);
// $ilLog->write("ilUtil::execQuoted: ".$cmd.".");
return $arr;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References $ok.

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

{
// parse parameters in array
$par = array();
$ok=true;
while(($spos=strpos($a_parstr,"=")) && $ok)
{
// extract parameter
$cpar = substr($a_parstr,0,$spos);
$a_parstr = substr($a_parstr,$spos,strlen($a_parstr)-$spos);
while(substr($cpar,0,1)=="," ||substr($cpar,0,1)==" " || substr($cpar,0,1)==chr(13) || substr($cpar,0,1)==chr(10))
$cpar = substr($cpar,1,strlen($cpar)-1);
while(substr($cpar,strlen($cpar)-1,1)==" " || substr($cpar,strlen($cpar)-1,1)==chr(13) || substr($cpar,strlen($cpar)-1,1)==chr(10))
$cpar = substr($cpar,0,strlen($cpar)-1);
// parameter name should only
$cpar_old = "";
while($cpar != $cpar_old)
{
$cpar_old = $cpar;
$cpar = eregi_replace("[^a-zA-Z0-9_]", "", $cpar);
}
// extract value
if ($cpar != "")
{
if($spos=strpos($a_parstr,"\""))
{
$a_parstr = substr($a_parstr,$spos+1,strlen($a_parstr)-$spos);
$spos=strpos($a_parstr,"\"");
if(is_int($spos))
{
$cval = substr($a_parstr,0,$spos);
$par[$cpar]=$cval;
$a_parstr = substr($a_parstr,$spos+1,strlen($a_parstr)-$spos-1);
}
else
$ok=false;
}
else
$ok=false;
}
}
if($ok) return $par; else return false;
}

+ Here is the caller graph for this function:

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

??? public

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

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

Referenced by ilObjCourseGUI\__showWaitingList(), ilObjCategoryGUI\_importCategoriesForm(), ilObjUserFolderGUI\appliedUsersObject(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilWorkspaceExplorer\buildFormItem(), ilObjForumGUI\cloneWizardPageObject(), ilObjUserFolderGUI\editAppliedUsersObject(), ilRegistrationSettingsGUI\editEmailAssignments(), ilRegistrationSettingsGUI\editRoles(), ilObjExternalToolsSettingsGUI\editSocialBookmarksObject(), ilTestPersonalDefaultSettingsTableGUI\fillRow(), ilMailAttachmentTableGUI\fillRow(), ilMarkSchemaTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilAddressbookTableGUI\formatCellValue(), ilObjForumGUI\getUserNotificationTableData(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjiLincCourseGUI\listUsersRoleObject(), ilObjRoleGUI\listUsersRoleObject(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilObjPaymentSettingsGUI\payMethodsObject(), ilPaymentTrusteeGUI\performSearch(), ilNestedListInputGUI\render(), ilObjiLincCourseGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilMemberExportGUI\show(), ilPaymentCouponGUI\showCodes(), ilMailingListsGUI\showMailingLists(), ilMailingListsGUI\showMembersList(), ilPaymentCouponGUI\showObjects(), ilMailSearchGUI\showResults(), ilPaymentTrusteeGUI\showTrustees(), ilObjPaymentSettingsGUI\vatsObject(), ilObjPaymentSettingsGUI\vendorsObject(), and ilCourseArchivesGUI\view().

{
$str = "<input type=\"checkbox\" name=\"".$varname."\"";
if ($checked == 1)
{
$str .= " checked=\"checked\"";
}
if ($disabled)
{
$str .= " disabled=\"disabled\"";
}
$array_var = false;
if (substr($varname,-2) == "[]")
{
$array_var = true;
}
// if varname ends with [], use varname[-2] + _ + value as id tag (e.g. "user_id[]" => "user_id_15")
if ($array_var)
{
$varname_id = substr($varname,0,-2)."_".$value;
}
else
{
$varname_id = $varname;
}
// dirty removal of other "[]" in string
$varname_id = ereg_replace("\[","_",$varname_id);
$varname_id = ereg_replace("\]","",$varname_id);
$str .= " value=\"".$value."\" id=\"".$varname_id."\" />\n";
return $str;
}

+ Here is the caller graph for this function:

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

???

Parameters
string

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

{
if ($disabled) {
$str = "<input disabled type=\"radio\" name=\"".$varname."\"";
}
else {
$str = "<input type=\"radio\" name=\"".$varname."\"";
}
if ($checked == 1)
{
$str .= " checked=\"checked\"";
}
$str .= " value=\"".$value."\"";
$str .= " id=\"".$value."\" />\n";
return $str;
}
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 569 of file class.ilUtil.php.

Referenced by ilShopPersonalSettingsTopicsTableGUI\fillRow(), ilShopTopicsTableGUI\fillRow(), and ilChatroomSmiliesTableGUI\fillRow().

{
$str = "<input type=\"input\" name=\"".$varname."\"";
if ($disabled)
{
$str .= " disabled";
}
$str .= " value=\"".$value."\"";
$str .= " id=\"".$value."\" />\n";
return $str;
}

+ Here is the caller graph for this function:

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

??? public

Parameters
string
string
string
Returns
string

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

Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilWorkspaceExplorer\buildFormItem(), ilObjiLincCourseGUI\changeMemberObject(), ilObjPaymentSettingsGUI\currenciesObject(), ilObjRoleTemplateGUI\permObject(), and ilObjiLincCourseGUI\searchUserFormObject().

{
$str = '<input ';
if($onclick)
{
$str .= ('onclick="'.$onclick.'"');
}
$str .= (" type=\"radio\" name=\"".$varname."\"");
if ($checked == 1)
{
$str .= " checked=\"checked\"";
}
if ($disabled)
{
$str .= " disabled=\"disabled\"";
}
$str .= " value=\"".$value."\"";
$str .= " id=\"".$value."\" />\n";
return $str;
}

+ Here is the caller graph for this function:

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

References $lng, $options, $size, and if.

Referenced by ilRegistrationSettingsGUI\__buildAccessLimitationSelection(), ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilMDEditorGUI\__buildDaysSelect(), ilObjCategoryGUI\__buildFilterSelect(), ilObjUserGUI\__buildFilterSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), ilMDEditorGUI\__buildMonthsSelect(), ilRegistrationSettingsGUI\__buildRoleSelection(), ilObjUserFolderGUI\__buildUserFilterSelect(), ilMDEditorGUI\__fillSubelements(), ilObjUserFolderGUI\__getDateSelect(), ilObjExerciseGUI\__getDateSelect(), ilObjUserGUI\__getDateSelect(), ilObjCourseGUI\__getDateSelect(), ilAdvancedSearchGUI\__getFilterSelect(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), ilObjCourseGUI\__showWaitingListTable(), 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(), ilRecurrenceInputGUI\buildMonthlyByDaySelection(), ilRecurrenceInputGUI\buildMonthlyByMonthDaySelection(), ilCopyWizardExplorer\buildSelect(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), ilObjiLincCourseGUI\changeMemberObject(), ilObjSystemFolderGUI\checkObject(), ilPCParagraphGUI\edit(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\fillActionRow(), ilImportantPagesTableGUI\fillRow(), ilPCImageMapTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilPCIIMTriggerTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilTable2GUI\getLinkbar(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjContentObjectGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\initStylePropertiesForm(), ilObjWikiGUI\initStylePropertiesForm(), ilObjGlossaryGUI\initStylePropertiesForm(), ilContainerGUI\initStylePropertiesForm(), ilLocationInputGUI\insert(), ilRecurrenceInputGUI\insert(), ilLDAPSettingsGUI\prepareMappingSelect(), ilLDAPSettingsGUI\prepareRoleSelect(), ilDurationInputGUI\render(), ilCourseArchivesGUI\selectArchiveLanguage(), ilObjContentObjectGUI\showEntrySelector(), ilInfoScreenGUI\showLearningProgress(), ilInternalLinkGUI\showLinkHelp(), ilPageObjectGUI\showPage(), ilObjUserFolderGUI\showPossibleSubObjects(), ilObjRoleFolderGUI\showPossibleSubObjects(), ilBookmarkAdministrationGUI\showPossibleSubObjects(), ilObjectGUI\showPossibleSubObjects(), ilPaymentTrusteeGUI\showTrustees(), ilStructureObjectGUI\subchap(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().

{
global $lng;
if ($multiple == true)
{
$multiple = " multiple=\"multiple\"";
}
else
{
$multiple = "";
$size = 0;
}
$class = " class=\" form-control ".$style_class."\"";
// use form-inline!
// this is workaround the whole function should be set deprecated
// $attributes = " style='display:inline-block;' ";
if (is_array($attribs))
{
foreach ($attribs as $key => $val)
{
$attributes .= " ".$key."=\"".$val."\"";
}
}
if($disabled)
{
$disabled = ' disabled=\"disabled\"';
}
$str = "<select name=\"".$varname ."\"".$multiple." $class size=\"".$size."\" $attributes $disabled>\n";
foreach ((array) $options as $key => $val)
{
$style = "";
if (is_array($val))
{
$style = $val["style"];
$val = $val["text"]; // mus be last line, since we overwrite
}
$sty = ($style != "")
? ' style="'.$style.'" '
: "";
if ($direct_text)
{
$str .= " <option $sty value=\"".$key."\"";
}
else
{
$str .= " <option $sty value=\"".$val."\"";
}
if (is_array($selected) )
{
if (in_array($key,$selected))
{
$str .= " selected=\"selected\"";
}
}
else if ($selected == $key)
{
$str .= " selected=\"selected\"";
}
if ($direct_text)
{
$str .= ">".$val."</option>\n";
}
else
{
$str .= ">".$lng->txt($val)."</option>\n";
}
}
$str .= "</select>\n";
return $str;
}

+ Here is the caller graph for this function:

static ilUtil::generatePasswords (   $a_number)
static

Generate a number of passwords.

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

References $ret, and ilSecuritySettings\_getInstance().

Referenced by ilShopUtils\_createRandomUserAccount(), ilStartUpGUI\confirmRegistration(), shibUser\createFields(), ilAuthContainerSOAP\loginObserver(), and ilPasswordInputGUI\render().

{
$ret = array();
srand((double) microtime()*1000000);
include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
for ($i=1; $i<=$a_number; $i++)
{
$min = ($security->getPasswordMinLength() > 0)
? $security->getPasswordMinLength()
: 6;
$max = ($security->getPasswordMaxLength() > 0)
? $security->getPasswordMaxLength()
: 10;
if ($min > $max)
{
$max = $max + 1;
}
$length = rand($min,$max);
$next = rand(1,2);
$vowels = "aeiou";
$vowels_uc = strtoupper($vowels);
$consonants = "bcdfghjklmnpqrstvwxyz";
$consonants_uc = strtoupper($consonants);
$numbers = "1234567890";
$special = "_.+?#-*@!$%~";
$pw = "";
if($security->getPasswordNumberOfUppercaseChars() > 0)
{
for($j = 0; $j < $security->getPasswordNumberOfUppercaseChars(); $j++)
{
switch ($next)
{
case 1:
$pw.= $consonants_uc[rand(0, strlen($consonants_uc) - 1)];
$next = 2;
break;
case 2:
$pw.= $vowels_uc[rand(0, strlen($vowels_uc) - 1)];
$next = 1;
break;
}
}
}
if($security->isPasswordCharsAndNumbersEnabled())
{
$pw.= $numbers[rand(0, strlen($numbers) - 1)];
}
if($security->isPasswordSpecialCharsEnabled())
{
$pw.= $special[rand(0, strlen($special) - 1)];
}
$num_lcase_chars = max($security->getPasswordNumberOfLowercaseChars(), $length - strlen($pw));
for($j = 0; $j < $num_lcase_chars; $j++)
{
switch ($next)
{
case 1:
$pw.= $consonants[rand(0, strlen($consonants) - 1)];
$next = 2;
break;
case 2:
$pw.= $vowels[rand(0, strlen($vowels) - 1)];
$next = 1;
break;
}
}
$pw = str_shuffle($pw);
$ret[] = $pw;
}
return $ret;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Referenced by ilTestExport\aggregatedResultsToCSV(), ilTestExport\aggregatedResultsToExcel(), ilContainerGUI\copyFile(), deliverData(), deliverFile(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilExAssignment\downloadAllDeliveredFiles(), ilObjFolderGUI\downloadFolderObject(), ilExAssignment\downloadMultipleFiles(), ilSurveyParticipantsGUI\exportAllCodesObject(), ilTestEvaluationGUI\exportCertificate(), ilSurveyParticipantsGUI\exportCodesObject(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilObjExercise\exportGradesExcel(), ilCOPageHTMLExport\exportHTMLFileDirect(), ilTestExport\exportToCSV(), ilTestExport\exportToExcel(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilObjMediaObject\fixFilename(), ilVerificationObject\getOfflineFilename(), ilDataCollectionDatatype\parseValue(), ilContainerGUI\recurseFolder(), ilExAssignment\sendMultiFeedbackStructureFile(), and ilObjMediaCastGUI\updateMediaItem().

{
// The filename must be converted to ASCII, as of RFC 2183,
// section 2.3.
$ascii_filename = htmlentities($a_filename, ENT_NOQUOTES, 'UTF-8');
$ascii_filename = preg_replace('/\&(.)[^;]*;/', '\\1', $ascii_filename);
$ascii_filename = preg_replace('/[\x7f-\xff]/', '_', $ascii_filename);
// OS do not allow the following characters in filenames: \/:*?"<>|
$ascii_filename = preg_replace('/[:\x5c\/\*\?\"<>\|]/', '_', $ascii_filename);
return $ascii_filename;
}

+ Here is the caller graph for this function:

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

References ilObjUser\_getAssociatedUsersOnline().

Referenced by ilUsersOnlineBlockGUI\getUsers().

{
include_once("./Services/User/classes/class.ilObjUser.php");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::getConvertCmd ( )
static

get convert command

Deprecated:
See Also
ilUtil::execConvert()

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

{
return PATH_TO_CONVERT;
}
static ilUtil::getDataDir ( )
static

get data directory (outside webspace)

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

Referenced by ilAdvancedMDRecordExportFiles\__construct(), ilAdvancedMDRecordImportFiles\__construct(), ilObjQuestionPool\_createImportDirectory(), ilObjTest\_createImportDirectory(), ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), ilExport\_getExportDirectory(), ilObjCategoryGUI\_getImportDir(), ilFileDataMail\_lookupDiskUsageOfUser(), ilChatroomViewTask\checkDirectory(), ilObjStyleSheet\cleanExportDirectory(), ilScorm2004Export\createExportDirectory(), ilObjContentObject\createExportDirectory(), ilObjUserFolder\createExportDirectory(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjTest\createExportDirectory(), ilObjStyleSheet\createExportDirectory(), ilObjSurvey\createExportDirectory(), ilObjContentObject\createImportDirectory(), ilObjGlossary\createImportDirectory(), ilObjSurveyQuestionPool\createImportDirectory(), ilObjStyleSheet\createImportDirectory(), ilObjSurvey\createImportDirectory(), ilMediaItem\createWorkDirectory(), ilObjSurveyQuestionPool\deleteAllData(), ilObjQuestionPool\deleteQuestionpool(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilSCORMOfflineModeGUI\executeCommand(), ilBcryptPasswordEncoder\getClientSaltLocation(), ilObjContentObject\getDataDirectory(), ilObjUserFolder\getExportDirectory(), ilObjContentObject\getExportDirectory(), ilObjSurveyQuestionPool\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilObjTest\getExportDirectory(), ilObjSurvey\getExportDirectory(), ilScorm2004Export\getExportDirectoryForType(), ilObjBibliographic\getFileDirectory(), ilObjUserFolderGUI\getImportDir(), ilObjContentObject\getImportDirectory(), ilObjGlossary\getImportDirectory(), ilObjSurveyQuestionPool\getImportDirectory(), ilObjSurvey\getImportDirectory(), ilFSStorageMail\getRelativePathExMailDirectory(), ilChatroomUploadFileTask\getUploadPath(), ilMediaItem\getWorkDirectory(), ilTempnam(), ilBibliographicDataSet\importLibraryFile(), ilFileSystemStorage\init(), ilOpenIdSettings\initConsumer(), ilOpenIdSettings\initTempDir(), ilPropertyFormGUI\keepFileUpload(), ilTestQuestionPoolExporter\lookupExportDirectory(), ilXmlExporter\lookupExportDirectory(), ilPropertyFormGUI\rebuildUploadedFiles(), and ilObjSAHSLearningModule\zipLmForOfflineMode().

{
return CLIENT_DATA_DIR;
//global $ilias;
//return $ilias->ini->readVariable("server", "data_dir");
}

+ Here is the caller graph for this function:

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

get directory

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

References $dirs, $si, and $size.

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

{
$current_dir = opendir($a_dir.$a_sub_dir);
$dirs = array();
$files = array();
$subitems = array();
while($entry = readdir($current_dir))
{
if(is_dir($a_dir."/".$entry))
{
$dirs[$entry] = array("type" => "dir", "entry" => $entry,
"subdir" => $a_sub_dir);
if ($a_rec && $entry != "." && $entry != "..")
{
$si = ilUtil::getDir($a_dir, true, $a_sub_dir."/".$entry);
$subitems = array_merge($subitems, $si);
}
}
else
{
if ($entry != "." && $entry != "..")
{
$size = filesize($a_dir.$a_sub_dir."/".$entry);
$files[$entry] = array("type" => "file", "entry" => $entry,
"size" => $size, "subdir" => $a_sub_dir);
}
}
}
ksort($dirs);
ksort($files);
return array_merge($dirs, $files, $subitems);
}

+ Here is the caller graph for this function:

static ilUtil::getFileSizeInfo ( )
static

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

References $lng.

Referenced by ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), and ilSingleChoiceWizardInputGUI\insert().

{
global $lng;
// get the value for the maximal uploadable filesize from the php.ini (if available)
$umf=get_cfg_var("upload_max_filesize");
// get the value for the maximal post data from the php.ini (if available)
$pms=get_cfg_var("post_max_size");
// use the smaller one as limit
$max_filesize=min($umf, $pms);
if (!$max_filesize) $max_filesize=max($umf, $pms);
return $lng->txt("file_notice")." $max_filesize.";
}

+ Here is the caller graph for this function:

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

Referenced by ilMediaItem\getMapWorkCopyType().

{
$a_desired_type = strtolower($a_desired_type);
// get supported Image Types
$im_types = ImageTypes();
switch($a_desired_type)
{
case "jpg":
case "jpeg":
if ($im_types & IMG_JPG) return "jpg";
if ($im_types & IMG_GIF) return "gif";
if ($im_types & IMG_PNG) return "png";
break;
case "gif":
if ($im_types & IMG_GIF) return "gif";
if ($im_types & IMG_JPG) return "jpg";
if ($im_types & IMG_PNG) return "png";
break;
case "png":
if ($im_types & IMG_PNG) return "png";
if ($im_types & IMG_JPG) return "jpg";
if ($im_types & IMG_GIF) return "gif";
break;
}
return "";
}

+ Here is the caller graph for this function:

static ilUtil::getHtmlPath (   $relative_path)
static

get url of path

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

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

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

{
if (substr($relative_path, 0, 2) == './')
{
$relative_path = (substr($relative_path, 1));
}
if (substr($relative_path, 0, 1) != '/')
{
$relative_path = '/' . $relative_path;
}
$htmlpath = ILIAS_HTTP_PATH . $relative_path;
return $htmlpath;
}

+ Here is the caller graph for this function:

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 $ilCtrl, $ilUser, $img, ilStyleDefinition\getCurrentMasterStyle(), and ilStyleDefinition\getCurrentStyle().

Referenced by ilPDMailBlockGUI\__construct(), ilChatroomBlockGUI\__construct(), ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), ilLearningProgressBaseGUI\__getLegendHTML(), ilCourseContentGUI\__renderUserItem(), ilObjRoleGUI\__setHeader(), ilObjUserFolderGUI\__showAppliedUsersTable(), ilObjCourseGUI\__showDeleteSubscriberTable(), ilObjCourseGUI\__showRemoveFromWaitingListTable(), ilLocalUserGUI\__showRolesTable(), ilObjCategoryGUI\__showRolesTable(), ilObjiLincCourseGUI\__showSearchGroupTable(), ilObjiLincCourseGUI\__showSearchRoleTable(), ilObjiLincCourseGUI\__showSearchUserTable(), ilObjCategoryGUI\__showUsersTable(), ilObjCourseGUI\__showWaitingListTable(), ilPermanentLinkGUI\_getBookmarksSelectionList(), ilObject\_getIcon(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilObjUser\_getPersonalPicturePath(), ilPCTableGUI\_renderTable(), ilGlossaryTermGUI\addDefinition(), ilWikiPageGUI\addHeaderAction(), ilObjDataCollectionGUI\addHeaderAction(), ilContainerRenderer\addHeaderRow(), ilContainerGUI\addHeaderRow(), ilPDSelectedItemsBlockGUI\addHeaderRow(), ilPDSelectedItemsBlockGUI\addParentRow(), ilContainerGUI\addStandardRow(), ilPDSelectedItemsBlockGUI\addStandardRow(), ilConditionHandlerGUI\askDelete(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCourseObjectivesGUI\askDeleteObjective(), ilPersonalSkillsGUI\assignMaterials(), ilObjContentObjectGUI\chapters(), ilContainerGUI\cloneWizardPageObject(), ilObjForumGUI\cloneWizardPageObject(), ilObjSessionGUI\confirmAssignFromWaitingListObject(), ilObjGroupGUI\confirmAssignFromWaitingListObject(), ilObjCourseGUI\confirmAssignFromWaitingListObject(), ilObjSessionGUI\confirmAssignSubscribersObject(), ilObjGroupGUI\confirmAssignSubscribersObject(), ilObjCourseGUI\confirmAssignSubscribersObject(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilPDExternalFeedBlockGUI\confirmDeleteFeedBlock(), ilObjGroupGUI\confirmDeleteMembersObject(), ilObjRoleGUI\confirmDeleteRoleObject(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilObjSessionGUI\confirmRefuseFromListObject(), ilObjGroupGUI\confirmRefuseFromListObject(), ilObjCourseGUI\confirmRefuseFromListObject(), ilObjSessionGUI\confirmRefuseSubscribersObject(), ilObjGroupGUI\confirmRefuseSubscribersObject(), ilObjCourseGUI\confirmRefuseSubscribersObject(), ilCourseParticipantsGroupsGUI\confirmRemove(), ilOrgUnitStaffGUI\confirmRemoveUser(), ilSCORM13Player\debugGUI(), ilObjCourseGUI\deleteMembersObject(), ilObjSkillManagementGUI\deleteNodes(), ilObjSCORM2004LearningModuleGUI\deleteNodes(), ilObjTestGUI\deleteSingleUserResultsObject(), ilLMEditorGUI\displayLocator(), ilPageObjectGUI\displayMedia(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilObjFileAccessSettingsGUI\editDiskQuotaMailTemplate(), ilRegistrationSettingsGUI\editEmailAssignments(), ilObjMediaObjectGUI\editFilesObject(), ilLMPageObjectGUI\editLayout(), ilObjTypeDefinitionGUI\editObject(), ilContainerGUI\editPageContentObject(), ilRegistrationSettingsGUI\editRoles(), ilGlossaryTermGUI\editTerm(), ilCourseContentGUI\editTimings(), ilObjSessionGUI\eventsListObject(), ilPCInteractiveImageGUI\executeCommand(), ilPortfolioRepositoryGUI\executeCommand(), ilObjSAHSLearningModuleGUI\executeCommand(), ilSCORM2004PageNodeGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), ilPCMediaObjectGUI\executeCommand(), ilBlogPostingGUI\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(), ilAvailableRolesStatusTableGUI\fillRow(), ilECSServerTableGUI\fillRow(), ilBookmarkAdministrationTableGUI\fillRow(), ilAuthLoginPageEditorTableGUI\fillRow(), ilHistoryTableGUI\fillRow(), ilShibbolethRoleAssignmentTableGUI\fillRow(), ilPollUserTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilClipboardTableGUI\fillRow(), ilLDAPRoleAssignmentTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), ilCourseObjectiveQuestionsTableGUI\fillRow(), ilSessionMaterialsTableGUI\fillRow(), ilCalendarInboxSharedTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilCalendarSharedListTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilDataCollectionFieldListTableGUI\fillRow(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilFileSystemTableGUI\fillRow(), ilPDMailBlockGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilUsersOnlineBlockGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilTemplate\fillSideIcons(), ilClassificationBlockGUI\filterContainer(), ilSAHSPresentationGUI\finishSahs(), ilSCORMPresentationGUI\finishSahs(), ilStyleScopeExplorer\formatHeader(), ilAdministrationExplorer\formatHeader(), ilGlossarySelectorGUI\formatHeader(), ilFileSelectorGUI\formatHeader(), ilWorkspaceFolderExplorer\formatHeader(), ilHACPExplorer\formatObject(), ilAICCExplorer\formatObject(), ilSCORMExplorer\formatObject(), ilContainerGUI\forwardToPageObject(), ilSecurImageUtil\getAudioScript(), ilChapterHierarchyFormGUI\getChildIcon(), ilHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilHierarchyFormGUI\getContent(), ilPublicUserProfileGUI\getEmbeddable(), ilCloudPluginItemCreationListGUI\getGroupedListItems(), ilObjectListGUI\getHeaderAction(), ilMainMenuSearchGUI\getHTML(), ilDataCollectionTreePickInputGUI\getHtml(), ilChecklistGUI\getHTML(), ilRatingGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilLMTracker\getIconForLMObject(), ilSkillTreeNode\getIconPath(), ilObjSCORMInitData\getIliasScormVars(), ilCopyWizardExplorer\getImage(), ilSurveySkillExplorer\getImage(), ilExplorer\getImage(), ilImageMapEditorGUI\getImageMapOutput(), ilSCORM13Player\getInlineCSS(), ilCloudPluginFileTreeGUI\getItemHtml(), ilContainerStartObjectsContentTableGUI\getItems(), ilObjContentObjectGUI\getLayoutOption(), ilHierarchyFormGUI\getLevelHTML(), ilPDNotesBlockGUI\getListRowData(), ilBookmarkBlockGUI\getListRowData(), 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(), ilExplorer\getOutput(), ilSCORMExplorer\getOutputIcons(), ilExAssignmentGUI\getOverviewHeader(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assKprimChoiceGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assOrderingQuestionGUI\getPreview(), SurveyTextQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), ilTestServiceGUI\getResultsSignature(), ilFileUploadGUI\getSharedHtml(), assOrderingHorizontalGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assFileUploadGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), ilDataCollectionRecord\getStandardFieldHTML(), ilObjGlossaryGUI\getTemplate(), assKprimChoiceGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), ilBookmarkBlockGUI\ilBookmarkBlockGUI(), ilLMPresentationGUI\ilLMHead(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilMedia(), ilNoteGUI\ilNoteGUI(), ilSCORM2004ScoGUI\import(), ilCloudPluginDeleteGUI\initDeleteItem(), ilLMPageObjectGUI\initEditLayoutForm(), ilObjGroupGUI\initForm(), ilConditionHandlerGUI\initFormCondition(), ilContainerReferenceGUI\initFormEditSelection(), ilContainerReferenceGUI\initFormSelection(), ilObjForumGUI\initForumCreateForm(), ilObjBlogGUI\initHeaderAction(), ilObjGroupGUI\initHeaderAction(), ilObjCourseGUI\initHeaderAction(), 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(), ilObjectListGUI\insertPayment(), ilCourseObjectiveListGUI\insertProgressInfo(), ilObjectListGUI\insertTitle(), ilHACPPresentationGUI\launchSahs(), ilAICCPresentationGUI\launchSahs(), ilSAHSPresentationGUI\launchSahs(), ilSCORMPresentationGUI\launchSahs(), ilGlossaryPresentationGUI\listDefinitions(), ilGlossaryTermGUI\listDefinitions(), ilObjRoleGUI\listDesktopItemsObject(), ilSessionOverviewGUI\listSessions(), ilGlossaryTermGUI\listUsages(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilPDSelectedItemsBlockGUI\manageObject(), ilGlossaryPresentationGUI\media(), ilObjSessionGUI\membersObject(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ilDataCollectionDatatype\parseHTML(), ilObjMediaPoolSubItemListGUI\parseImage(), ilObjRoleTemplateGUI\permObject(), ilTestPlayerAbstractGUI\populateCharSelector(), ilTestPlayerAbstractGUI\populateQuestionMarkingBlockAsMarked(), ilTestPlayerAbstractGUI\populateQuestionMarkingBlockAsUnmarked(), ilPersonalDesktopGUI\prepareContentView(), ilGlossaryPresentationGUI\prepareOutput(), ilObjSystemFolderGUI\printProxyStatus(), ilGlossaryPresentationGUI\printViewSelection(), ilTableGUI\render(), ilTable2GUI\render(), ilHierarchyFormGUI\renderChild(), ilRatingGUI\renderDetails(), ilCalendarSelectionBlockGUI\renderItem(), ilSCORM2004Asset\renderNavigation(), ilSurveyPageGUI\renderPage(), ilMainMenuGUI\renderStatusBox(), 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(), ilObjSAHSLearningModuleGUI\setTabs(), ilStructureObjectGUI\setTabs(), ilObjTaxonomyGUI\setTabs(), ilObjFileBasedLMGUI\setTabs(), ilObjMediaObjectGUI\setTabs(), ilObjContentObjectGUI\setTabs(), ilObjWorkspaceRootFolderGUI\setTitleAndDescription(), ilObjUserGUI\setTitleAndDescription(), ilObjPortfolioGUI\setTitleAndDescription(), ilObjLanguageExtGUI\setTitleAndDescription(), ilLMObjectGUI\showActions(), ilObjUserFolderGUI\showActions(), ilObjStyleSettingsGUI\showActions(), ilObjGlossaryGUI\showActions(), ilObjContentObjectGUI\showActions(), ilContainerGUI\showAdministrationPanel(), ilPasswordAssistanceGUI\showAssignPasswordForm(), ilPasswordAssistanceGUI\showAssistanceForm(), ilStartUpGUI\showCASLoginForm(), ilGlossaryPresentationGUI\showDownloadList(), ilLMPresentationGUI\showDownloadList(), ilCalendarMonthGUI\showEvents(), ilExternalFeedBlockGUI\showFeedItem(), ilPDExternalFeedBlockGUI\showFeedItem(), ilMemberExportGUI\showFileList(), 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(), ilTestPlayerAbstractGUI\showSideList(), ilCourseContentGUI\showStartObjects(), ilLMPresentationGUI\showTableOfContents(), ilNoteGUI\showTargets(), ilObjectCopyGUI\showTargetSelectionTree(), ilObjSCORM2004LearningModuleGUI\showTree(), ilMailFolderGUI\showUser(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), ilCourseContentGUI\showUserTimings(), ilStructureObjectGUI\subchap(), assFormulaQuestion\substituteVariables(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjTestGUI\uploadTstObject(), ilSCORMOfflineModeGUI\view(), and ilCourseArchivesGUI\view().

{
global $ilias, $styleDefinition, $ilCtrl, $ilUser;
if (is_int(strpos($_SERVER["PHP_SELF"], "setup.php")))
{
$module_path = "..";
}
if ($module_path != "")
{
$module_path = "/".$module_path;
}
// default image
$default_img = ".".$module_path."/templates/default/images/".$img;
// use ilStyleDefinition instead of account to get the current skin and style
require_once("./Services/Style/classes/class.ilStyleDefinition.php");
$current_skin = ilStyleDefinition::getCurrentSkin();
if (is_object($styleDefinition))
{
$image_dir = $styleDefinition->getImageDirectory(
$current_style);
}
if ($current_skin == "default")
{
$user_img = ".".$module_path."/templates/default/".$image_dir."/".$img;
$skin_img = ".".$module_path."/templates/default/images/".$img;
}
else if (is_object($styleDefinition) && $current_skin != "default")
{
$user_img = "./Customizing/global/skin/".
$current_skin.$module_path."/".$image_dir."/".$img;
$skin_img = "./Customizing/global/skin/".
$current_skin.$module_path."/images/".$img;
}
// temp svg patch
/*
$pi = pathinfo($img);
if ($pi["dirname"] != "") {
$pi["dirname"] = $pi["dirname"]."/";
}
$svg_img = ".".$module_path."/templates/default/images/".$pi["dirname"].$pi["filename"].".svg";
if (file_exists($svg_img))
{
return $svg_img;
}*/
if ($offline)
{
return "./images/".$img;
}
else if (@file_exists($user_img) && $image_dir != "")
{
return $user_img; // found image for skin and style
}
else if (file_exists($skin_img))
{
return $skin_img; // found image in skin/images
}
return $default_img; // take image in default
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 $filename, $lng, $size, and ilObject\_getIcon().

Referenced by ilObjMediaPoolGUI\confirmRemove(), ilBookmarkAdministrationGUI\delete(), ilObjContentObjectGUI\delete(), ilObjStyleSheetGUI\deleteObject(), ilObjStyleSettingsGUI\deletePglObject(), ilObjStyleSettingsGUI\deleteStyleObject(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilObjTypeDefinitionGUI\displayList(), ilObjTypeDefinitionGUI\editObject(), ilObjiLincClassroomGUI\removeClassroom(), ilObjiLincCourseGUI\removeMemberObject(), and ilObjSCORMLearningModuleGUI\stopUserOfflineMode().

{
global $lng;
$size = ($a_big)
? "big"
: "small";
include_once("./Services/Object/classes/class.ilObject.php");
return "<img src=\"".$filename."\" alt=\"".$lng->txt("obj_".$a_type)."\" title=\"".$lng->txt("obj_".$a_type)."\" border=\"0\" vspace=\"0\"/>";
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::getJavaPath ( )
static

get full java path (dir + java command)

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

Referenced by ilObjSCORMValidator\validateXML().

{
return PATH_TO_JAVA;
//global $ilias;
//return $ilias->getSetting("java_path");
}

+ Here is the caller graph for this function:

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

References $filename.

Referenced by ilTestOutputGUI\outWorkingForm(), and ilTestPlayerDynamicQuestionSetGUI\outWorkingForm().

{
global $ilias;
// add version as parameter to force reload for new releases
$js_name = $a_js_name;
if (strlen($a_js_location) && (strcmp(substr($a_js_location, -1), "/") != 0)) $a_js_location = $a_js_location . "/";
$filename = "";
// use ilStyleDefinition instead of account to get the current skin
require_once("./Services/Style/classes/class.ilStyleDefinition.php");
if (ilStyleDefinition::getCurrentSkin() != "default")
{
$filename = "./Customizing/global/skin/".ilStyleDefinition::getCurrentSkin()."/".$a_js_location.$js_name;
}
if (strlen($filename) == 0 || !file_exists($filename))
{
$filename = "./" . $a_js_location . "templates/default/".$js_name;
}
$vers = "";
if ($add_version)
{
$vers = str_replace(" ", "-", $ilias->getSetting("ilias_version"));
$vers = "?vers=".str_replace(".", "-", $vers);
}
return $filename . $vers;
}

+ Here is the caller graph for this function:

static ilUtil::getMemString ( )
static

get current memory usage as string

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

{
$my_pid = getmypid();
return ("MEMORY USAGE (% KB PID ): ".`ps -eo%mem,rss,pid | grep $my_pid`);
}
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 4840 of file class.ilUtil.php.

References $ilDB.

Referenced by ilObjExercise\_lookupStatusTime(), ilExAssignment\getLastSubmission(), ilExAssignment\lookupFeedbackTimeOfUser(), ilExAssignment\lookupSentTimeOfUser(), and ilExAssignment\lookupStatusTimeOfUser().

{
global $ilDB;
return $a_ts;
}

+ Here is the caller graph for this function:

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

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

public

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

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

{
global $ilias;
// add version as parameter to force reload for new releases
if ($mode != "filesystem")
{
$vers = str_replace(" ", "-", $ilias->getSetting("ilias_version"));
$vers = "?vers=".str_replace(".", "-", $vers);
}
// use ilStyleDefinition instead of account to get the current skin and style
require_once("./Services/Style/classes/class.ilStyleDefinition.php");
if (ilStyleDefinition::getCurrentSkin() == "default")
{
$in_style = "./templates/".ilStyleDefinition::getCurrentSkin()."/"
.ilStyleDefinition::getCurrentStyle()."_cont.css";
}
else
{
$in_style = "./Customizing/global/skin/".ilStyleDefinition::getCurrentSkin()."/"
.ilStyleDefinition::getCurrentStyle()."_cont.css";
}
if (is_file("./".$in_style))
{
return $in_style.$vers;
}
else
{
return "templates/default/delos_cont.css".$vers;
}
}

+ Here is the caller graph for this function:

static ilUtil::getP3PLocation ( )
static

Get p3p file path.

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

public

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

References ILIAS_MODULE.

{
global $ilias;
if (defined("ILIAS_MODULE"))
{
$base = '';
for($i = 0;$i < count(explode('/',ILIAS_MODULE));$i++)
{
$base .= "../Services/Privacy/";
}
}
else
{
$base = "./Services/Privacy/";
}
if (is_file($base."w3c/p3p.xml"))
{
return ILIAS_HTTP_PATH."w3c/p3p.xml";
}
else
{
return ILIAS_HTTP_PATH."/w3c/p3p_template.xml";
}
}
static ilUtil::getPasswordRequirementsInfo ( )
static

infotext for ilPasswordInputGUI setInfo()

<type> $lng

Returns
<string> info about allowed chars for password

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

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

Referenced by ilObjUserGUI\initForm(), ilPersonalSettingsGUI\initPasswordForm(), and ilPDNewsBlockGUI\initPrivateSettingsForm().

{
global $lng;
include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
$infos = array(sprintf($lng->txt('password_allow_chars'), self::getPasswordValidChars(false)));
// check if password to short
if( $security->getPasswordMinLength() > 0 )
{
$infos[] = sprintf( $lng->txt('password_to_short'), $security->getPasswordMinLength() );
}
// check if password not to long
if( $security->getPasswordMaxLength() > 0 )
{
$infos[] = sprintf( $lng->txt('password_to_long'), $security->getPasswordMaxLength() );
}
// if password must contains Chars and Numbers
if( $security->isPasswordCharsAndNumbersEnabled() )
{
$infos[] = $lng->txt('password_must_chars_and_numbers');
}
// if password must contains Special-Chars
if( $security->isPasswordSpecialCharsEnabled() )
{
$infos[] = $lng->txt('password_must_special_chars');
}
if($security->getPasswordNumberOfUppercaseChars() > 0)
{
$infos[] = sprintf($lng->txt('password_must_contain_ucase_chars'), $security->getPasswordNumberOfUppercaseChars());
}
if($security->getPasswordNumberOfLowercaseChars() > 0)
{
$infos[] = sprintf($lng->txt('password_must_contain_lcase_chars'), $security->getPasswordNumberOfLowercaseChars());
}
return implode('<br />', $infos);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Referenced by getPasswordRequirementsInfo().

{
if( $a_as_regex )
{
if( $a_only_special_chars )
{
return '/[_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+/';
}
else
{
return '/^[A-Za-z0-9_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+$/';
}
}
else
{
return 'A-Z a-z 0-9 _.+?#-*@!$%~/:;';
}
}

+ Here is the caller graph for this function:

static ilUtil::getSecureTags ( )
static

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

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

{
return array("strong", "em", "u", "strike", "ol", "li", "ul", "p", "div",
"i", "b", "code", "sup", "sub", "pre", "gap", "a", "img");
}

+ Here is the caller graph for this function:

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

???

public

Parameters
string
string

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

{
return($values[$selected]);
}
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 176 of file class.ilUtil.php.

References $filename, and ilStyleDefinition\getCurrentStyle().

Referenced by ilPurchaseBaseGUI\__buildStylesheet(), ilExport\_generateIndexFile(), ilTinyMCE\addRTESupport(), ilCharSelectorGUI\addToPage(), ilTinyMCE\addUserTextEditor(), ilSCORMPresentationGUI\contentSelect(), ilObjTest\deliverPDFfromHTML(), ilTestEvaluationGUI\detailedEvaluation(), ilPageObjectGUI\displayMedia(), ilPCDataTableGUI\editData(), ilObjSurveyGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilHACPPresentationGUI\explorer(), 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(), assOrderingQuestionGUI\getPreview(), assMatchingQuestionGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), ilObjTest\getTestStyleLocation(), ilLMPresentationGUI\glossary(), ilLMPresentationGUI\ilMedia(), ilFileUploadGUI\initFileUpload(), ilPreviewGUI\initPreview(), ilLMPresentationGUI\initScreenHead(), ilLMPresentationGUI\layout(), ilGlossaryPresentationGUI\media(), ilObjGroupGUI\membersGalleryObject(), ilObjiLincCourseGUI\membersGalleryObject(), ilObjCourseGUI\membersGalleryObject(), ilTestEvaluationGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\outCorrectSolution(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilObjTestGUI\printobject(), ilPortfolioPageGUI\renderConsultationHours(), ilInternalLinkGUI\saveFileLink(), ilSCORM2004ScoGUI\sco_preview(), ilContainerLinkListGUI\show(), ilFramesetGUI\show(), ilCalendarPresentationGUI\show(), ilObjDlBookGUI\showAbstract(), ilObjDlBookGUI\showCitation(), ilLMPresentationGUI\showDownloadList(), ilInternalLinkGUI\showLinkHelp(), ilContainerGUI\showLinkListObject(), ilTestPlayerAbstractGUI\showListOfAnswers(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilObjMediaPoolGUI\showPage(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintViewSelection(), ilTestPlayerAbstractGUI\showSideList(), ilLMPresentationGUI\showTableOfContents(), ilRepositoryGUI\showTree(), ilObjSCORM2004LearningModuleGUI\showTree(), ilObjTestGUI\showUserResults(), ilSCORM13Player\specialPage(), ilSAHSPresentationGUI\unloadSahs(), ilSCORMPresentationGUI\unloadSahs(), ilAICCPresentationGUI\view(), ilSAHSPresentationGUI\view(), and ilSCORMPresentationGUI\view().

{
global $ilias;
// add version as parameter to force reload for new releases
// use ilStyleDefinition instead of account to get the current style
require_once("./Services/Style/classes/class.ilStyleDefinition.php");
$stylesheet_name = (strlen($a_css_name))
? $a_css_name
if (strlen($a_css_location) && (strcmp(substr($a_css_location, -1), "/") != 0))
{
$a_css_location = $a_css_location . "/";
}
$filename = "";
// use ilStyleDefinition instead of account to get the current skin
require_once("./Services/Style/classes/class.ilStyleDefinition.php");
if (ilStyleDefinition::getCurrentSkin() != "default")
{
$filename = "./Customizing/global/skin/".ilStyleDefinition::getCurrentSkin()."/".$a_css_location.$stylesheet_name;
}
if (strlen($filename) == 0 || !file_exists($filename))
{
$filename = "./" . $a_css_location . "templates/default/".$stylesheet_name;
}
$vers = "";
if ($mode != "filesystem")
{
$vers = str_replace(" ", "-", $ilias->getSetting("ilias_version"));
$vers = "?vers=".str_replace(".", "-", $vers);
}
return $filename . $vers;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 ilObject\_getIcon().

Referenced by ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilCalendarCategoryGUI\addReferenceLinks(), ilObjUserFolderGUI\confirmDeleteExportFileObject(), ilAdministrationCommandGUI\delete(), ilObjectTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilPathGUI\getHTML(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilTrMatrixTableGUI\getSelectableColumns(), ilCourseObjectivesGUI\initFormLimits(), ilObjiLincClassroomGUI\initSettingsForm(), ilObjiLincCourseGUI\initSettingsForm(), and ilPortfolioPageGUI\renderMyCourses().

{
include_once("./Services/Object/classes/class.ilObject.php");
return ilObject::_getIcon($a_obj_id, $a_size, $a_type);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

{
include_once("./Services/User/classes/class.ilObjUser.php");
return ilObjUser::_getUsersOnline($a_user_id);
}
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 1627 of file class.ilUtil.php.

Referenced by ilFileDataShop\__construct(), ilExternalFeed\_createCacheDirectory(), ilObjStyleSheet\_createImagesDirectory(), ilObjMediaObject\_createThumbnailDirectory(), ilChatroomSmilies\_deleteSmiley(), ilObjFileBasedLMAccess\_determineStartUrl(), ilContainer\_getContainerDirectory(), ilObjMediaObject\_getDirectory(), ilObjStyleSheet\_getImagesDirectory(), ilChatroomSmilies\_getSmiley(), ilChatroomSmilies\_getSmileyDir(), ilChatroomSmileyTask\_getSmileyDir(), ilChatroomSmilies\_getSmilies(), ilChatroomSmilies\_getSmiliesBasePath(), ilChatroomSmilies\_getSmiliesById(), ilObjMediaObject\_getThumbnailDirectory(), ilObjMediaObject\_getURL(), ilObjFileBasedLMAccess\_lookupDiskUsage(), ilObjSAHSLearningModuleAccess\_lookupDiskUsage(), ilPCTableGUI\_renderTable(), ilChatroomSmilies\_setupFolder(), ilObjUser\_uploadPersonalPicture(), ilTestPlayerAbstractGUI\archiveParticipantSubmission(), ilObjMediaObjectGUI\assignFullscreenObject(), ilObjMediaObjectGUI\assignStandardObject(), ilContObjParser\copyMobFiles(), ilObjUser\copyProfilePicturesToDirectory(), ilContainer\createContainerDirectory(), ilObjSAHSLearningModule\createDataDirectory(), ilObjMediaObjectGUI\createDirectoryObject(), ilObjExternalToolsSettingsGUI\createSocialBookmarkObject(), ilObjStyleSheet\delete(), ilObjMediaObjectGUI\deleteFileObject(), ilPublicUserProfileGUI\deliverVCard(), ilPageObjectGUI\displayMedia(), ilObjMediaObjectGUI\editFilesObject(), ilObjMediaObjectGUI\executeCommand(), ilObjMediaObject\exportFiles(), ilObjContentObject\exportHTML(), ilCOPageHTMLExport\exportHTMLMOB(), ilObjGlossary\exportHTMLMOB(), ilObjContentObject\exportHTMLMOB(), ilObjStyleSheet\getContentStylePath(), ilFileDataShop\getCurrentImageWebPath(), ilObjFileBasedLM\getDataDirectory(), ilObjSAHSLearningModule\getDataDirectory(), ilObjMediaObject\getDataDirectory(), ilPublicUserProfileGUI\getEmbeddable(), ilOrgUnitType\getIconPath(), ilImageMapEditorGUI\getImageMapOutput(), ilFileDataCourse\getOnlineLink(), ilFSStorageCourse\getOnlineLink(), ilUserXMLWriter\getPictureValue(), ilFSStorageMail\getRelativePathExMailDirectory(), ilLMPresentationGUI\ilMedia(), ilFileSystemStorage\init(), ilGlossaryPresentationGUI\media(), ilTestScoring\recalculatePasses(), ilObjUser\removeUserPicture(), ilObjUserGUI\removeUserPictureObject(), ilTestSubmissionReviewGUI\show(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintView(), ilObjExternalToolsSettingsGUI\updateSocialBookmarkObject(), ilObjMediaObjectGUI\uploadFileObject(), ilPersonalProfileGUI\uploadUserPicture(), ilObjUserGUI\uploadUserPictureObject(), ilObjStyleSheet\writeCSSFile(), and ilObjSAHSLearningModule\zipLmForOfflineMode().

{
global $ilias;
if ($mode == "filesystem")
{
return "./".ILIAS_WEB_DIR."/".$ilias->client_id;
}
else
{
if (defined("ILIAS_MODULE"))
{
return "../".ILIAS_WEB_DIR."/".$ilias->client_id;
}
else
{
return "./".ILIAS_WEB_DIR."/".$ilias->client_id;
}
}
//return $ilias->ini->readVariable("server","webspace_dir");
}

+ Here is the caller graph for this function:

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

References $ilDB, and $ilErr.

Referenced by ilMail\checkRecipients(), ilMail\getUserIds(), and ilSoapGroupAdministration\groupExists().

{
global $ilDB,$ilErr;
if (empty($a_group_name))
{
$message = __METHOD__.": No groupname given!";
$ilErr->raiseError($message,$ilErr->WARNING);
}
$clause = ($a_id) ? " AND obj_id != ".$ilDB->quote($a_id)." " : "";
$q = "SELECT obj_id FROM object_data ".
"WHERE title = ".$ilDB->quote($a_group_name, "text")." ".
"AND type = ".$ilDB->quote("grp", "text").
$clause;
$r = $ilDB->query($q);
if ($r->numRows())
{
return true;
}
else
{
return false;
}
}

+ Here is the caller graph for this function:

static ilUtil::html2pdf (   $html,
  $pdf_file 
)
static

produce pdf out of html with htmldoc

Parameters
htmlString HTML-Data given to create pdf-file
pdf_fileString Filename to save pdf in

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

References htmlfile2pdf().

Referenced by ilPurchaseBaseGUI\__sendBill(), and ilShopBoughtObjectsGUI\createBill().

{
$html_file = str_replace(".pdf",".html",$pdf_file);
$fp = fopen( $html_file ,"wb");
fwrite($fp, $html);
fclose($fp);
ilUtil::htmlfile2pdf($html_file,$pdf_file);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References makeClickable().

{
$encoded = "";
if ($a_make_links_clickable)
{
// Find text sequences in the plain text string which match
// the URI syntax rules, and pass them to ilUtil::makeClickable.
// Encode all other text sequences in the plain text string using
// htmlspecialchars and nl2br.
// The following expressions matches URI's as specified in RFC 2396.
//
// The expression matches URI's, which start with some well known
// schemes, like "http:", or with "www.". This must be followed
// by at least one of the following RFC 2396 expressions:
// - alphanum: [a-zA-Z0-9]
// - reserved: [;\/?:|&=+$,]
// - mark: [\\-_.!~*\'()]
// - escaped: %[0-9a-fA-F]{2}
// - fragment delimiter: #
// - uric_no_slash: [;?:@&=+$,]
$matches = array();
$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);
$pos1 = 0;
$encoded = "";
foreach ($matches as $match)
{
}
foreach ($matches[0] as $match)
{
$matched_text = $match[0];
$pos2 = $match[1];
if ($matched_offset != previous_offset)
{
// encode plain text
$encoded .= nl2br(htmlspecialchars(substr($a_str, $pos1, $pos2 - $pos1)));
}
// encode URI
$encoded .= ilUtil::makeClickable($matched_text, $a_detect_goto_links);
$pos1 = $pos2 + strlen($matched_text);
}
if ($pos1 < strlen($a_str))
{
$encoded .= nl2br(htmlspecialchars(substr($a_str, $pos1)));
}
}
else
{
$encoded = nl2br(htmlspecialchars($a_str));
}
return $encoded;
}

+ Here is the call graph for this function:

static ilUtil::htmlentitiesOutsideHTMLTags (   $htmlText)
static

Encodes HTML entities outside of HTML tags.

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

{
$matches = Array();
$sep = '###HTMLTAG###';
preg_match_all("@<[^>]*>@", $htmlText, $matches);
$tmp = preg_replace("@(<[^>]*>)@", $sep, $htmlText);
$tmp = explode($sep, $tmp);
for ($i=0; $i<count($tmp); $i++)
$tmp[$i] = htmlentities($tmp[$i], ENT_COMPAT, "UTF-8");
$tmp = join($sep, $tmp);
for ($i=0; $i<count($matches[0]); $i++)
$tmp = preg_replace("@$sep@", $matches[0][$i], $tmp, 1);
return $tmp;
}
static ilUtil::htmlfile2pdf (   $html_file,
  $pdf_file 
)
static

produce pdf out of html with htmldoc

Parameters
htmlString HTML-Data given to create pdf-file
pdf_fileString Filename to save pdf in

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

References escapeShellArg(), and execQuoted().

Referenced by html2pdf().

{
$htmldoc_path = PATH_TO_HTMLDOC;
$htmldoc = "--no-toc ";
$htmldoc .= "--no-jpeg ";
$htmldoc .= "--webpage ";
$htmldoc .= "--outfile " . ilUtil::escapeShellArg($pdf_file) . " ";
$htmldoc .= "--bodyfont Arial ";
$htmldoc .= "--charset iso-8859-15 ";
$htmldoc .= "--color ";
$htmldoc .= "--size A4 "; // --landscape
$htmldoc .= "--format pdf ";
$htmldoc .= "--footer ... ";
$htmldoc .= "--header ... ";
$htmldoc .= "--left 60 ";
// $htmldoc .= "--right 200 ";
$htmldoc .= $html_file;
ilUtil::execQuoted($htmldoc_path, $htmldoc);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::ilTempnam ( )
static

Create a temporary file in an ILIAS writable directory.

Returns
string File name of the temporary file

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

References createDirectory(), and getDataDir().

Referenced by ilTestExport\aggregatedResultsToExcel(), ilRestFileStorage\createFile(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilExAssignment\downloadAllDeliveredFiles(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilExAssignment\downloadMultipleFiles(), ilContainerGUI\downloadMultipleObjects(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilObjExercise\exportGradesExcel(), ilObjStyleSettingsGUI\exportLayoutObject(), ilTestExport\exportToExcel(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilUserDataSet\getXmlRecord(), ilCloudPluginUploadGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilFileXMLParser\handlerBeginTag(), ilFileXMLParser\handlerEndTag(), ilImagemapPreview\ilImagemapPreview(), ilImport\importObject(), ilDidacticTemplateSettingsGUI\importTemplate(), ilFilePreviewRenderer\prepareFileForExec(), ilObjExercise\processUploadedFile(), ilGhostscriptRenderer\renderImages(), ilUserImportParser\saveTempImage(), ilObjFileGUI\saveUnzip(), ilBookmarkAdministrationGUI\sendmail(), ilExAssignment\sendMultiFeedbackStructureFile(), ilRestFileStorage\storeFileForRest(), unzip(), ilECSConnector\updateResource(), and ilCalendarCategoryGUI\uploadAppointments().

{
$temp_path = ilUtil::getDataDir() . "/temp";
if (!is_dir($temp_path))
{
}
$temp_name = tempnam($temp_path, "tmp");
// --->
// added the following line because tempnam creates a backslash on some
// Windows systems which leads to problems, because the "...\tmp..." can be
// interpreted as "...{TAB-CHARACTER}...". The normal slash works fine
// even under windows (Helmut Schottmüller, 2005-08-31)
$temp_name = str_replace("\\", "/", $temp_name);
// --->
unlink($temp_name);
return $temp_name;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References $img.

Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilLPObjectStatisticsLPTableGUI\__construct(), ilShopUtils\_addToShoppingCartSymbol(), ilShopUtils\_getPaymethodSymbol(), ilShopUtils\_getSpecialObjectSymbol(), ilTable2GUI\fillHeader(), ilObjClipboardTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilTrashTableGUI\fillRow(), ilPCIIMOverlaysTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilTrackedQuestionsTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilSkillCatTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilAdministrationGUI\getDropDown(), ilCloudPluginItemCreationListGUI\getGroupedListItems(), ilObjectListGUI\getHeaderAction(), ilMainMenuSearchGUI\getHTML(), ilObjectAddNewItemGUI\getHTML(), ilTaggingGUI\getHTML(), ilTrSummaryTableGUI\getItems(), ilObjContentObjectGUI\getLayoutOption(), ilNoteGUI\getNoteListHTML(), ilLearningProgressGUI\initCollectionManualForm(), ilLMPageObjectGUI\initEditLayoutForm(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilDataCollectionDatatype\parseHTML(), ilObjMediaPoolSubItemListGUI\parseImage(), ilSCORM2004TrackingItemsTableGUI\parseValue(), ilSCORMTrackingItemsTableGUI\parseValue(), ilLPTableBaseGUI\parseValue(), ilLPStatus\preloadListGUIData(), ilNestedListInputGUI\render(), ilMainMenuGUI\renderEntry(), ilExplorerBaseGUI\renderNode(), ilObjMediaCastGUI\showGallery(), and ilLearningProgressGUI\showtlt().

{
$img = '<img src="'.$a_src.'"';
if ($a_alt != "")
{
$img.= ' alt="'.$a_alt.'" title="'.$a_alt.'"';
}
if ($a_width != "")
{
$img.= ' width="'.$a_width.'"';
}
if ($a_height != "")
{
$img.= ' height="'.$a_height.'"';
}
if ($a_class != "")
{
$img.= ' class="'.$a_class.'"';
}
if ($a_id != "")
{
$img.= ' id="'.$a_id.'"';
}
$img.= ' border="'.(int) $a_border.'"/>';
return $img;
}

+ Here is the caller graph for this function:

ilUtil::includeMathjax (   $a_tpl = null)

Include Mathjax.

Parameters
@return

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

References $mathJaxSetting, and $tpl.

Referenced by ilGlossaryTermGUI\output().

{
global $tpl;
if ($a_tpl == null)
{
$a_tpl = $tpl;
}
// - take care of html exports (-> see buildLatexImages)
include_once "./Services/Administration/classes/class.ilSetting.php";
$mathJaxSetting = new ilSetting("MathJax");
$use_mathjax = $mathJaxSetting->get("enable");
if ($use_mathjax)
{
$a_tpl->addJavaScript($mathJaxSetting->get("path_to_mathjax"));
}
}

+ Here is the caller graph for this function:

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

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

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

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

{
global $tpl,$ilias,$lng;
if (!empty($_SESSION["infopanel"]) and is_array($_SESSION["infopanel"]))
{
$tpl->addBlockFile("INFOPANEL", "infopanel", "tpl.infopanel.html",
"Services/Utilities");
$tpl->setCurrentBlock("infopanel");
if (!empty($_SESSION["infopanel"]["text"]))
{
$link = "<a href=\"".$dir.$_SESSION["infopanel"]["link"]."\" target=\"".
"\">";
$link .= $lng->txt($_SESSION["infopanel"]["text"]);
$link .= "</a>";
}
// deactivated
if (!empty($_SESSION["infopanel"]["img"]))
{
$link .= "<td><a href=\"".$_SESSION["infopanel"]["link"]."\" target=\"".
"\">";
$link .= "<img src=\"".$ilias->tplPath.$ilias->account->prefs["skin"]."/images/".
$_SESSION["infopanel"]["img"]."\" border=\"0\" vspace=\"0\"/>";
$link .= "</a></td>";
}
$tpl->setVariable("INFO_ICONS",$link);
$tpl->parseCurrentBlock();
}
//if (!$a_keep)
//{
ilSession::clear("infopanel");
//}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::insertInstIntoID (   $a_value)
static

inserts installation id into ILIAS id

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

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

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

{
if (substr($a_value, 0, 4) == "il__")
{
$a_value = "il_".IL_INST_ID."_".substr($a_value, 4, strlen($a_value) - 4);
}
return $a_value;
}

+ Here is the caller graph for this function:

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

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

added additional parameters to make this method usable for other start and end tags as well

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

References $ilUser, $lng, $mathJaxSetting, and $tpl.

Referenced by ilTermListTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), assQuestion\formatSAQuestion(), ilForum\prepareText(), prepareTextareaOutput(), and ilPageObjectGUI\showPage().

{
global $tpl, $lng, $ilUser;
$cgi = URL_TO_LATEX;
// - take care of html exports (-> see buildLatexImages)
include_once "./Services/Administration/classes/class.ilSetting.php";
$mathJaxSetting = new ilSetting("MathJax");
$use_mathjax = $mathJaxSetting->get("enable");
if ($use_mathjax)
{
$a_text = preg_replace("/\\\\([RZN])([^a-zA-Z]|<\/span>)/", "\\mathbb{"."$1"."}"."$2", $a_text);
$tpl->addJavaScript($mathJaxSetting->get("path_to_mathjax"));
}
// this is a fix for bug5362
$cpos = 0;
$o_start = $a_start;
$o_end = $a_end;
$a_start = str_replace("\\", "", $a_start);
$a_end = str_replace("\\", "", $a_end);
while (is_int($spos = stripos($a_text, $a_start, $cpos))) // find next start
{
if (is_int ($epos = stripos($a_text, $a_end, $spos + 1)))
{
$tex = substr($a_text, $spos + strlen($a_start), $epos - $spos - strlen($a_start));
// replace, if tags do not go across div borders
if (!is_int(strpos($tex, "</div>")))
{
if (!$use_mathjax)
{
$a_text = substr($a_text, 0, $spos).
"<img alt=\"".htmlentities($tex)."\" src=\"".$cgi."?".
rawurlencode(str_replace('&amp;', '&', str_replace('&gt;', '>', str_replace('&lt;', '<', $tex))))."\" ".
" />".
substr($a_text, $epos + strlen($a_end));
}
else
{
$tex = $a_start.$tex.$a_end;
switch ((int) $mathJaxSetting->get("limiter"))
{
case 1:
$mj_start = "[tex]";
$mj_end = "[/tex]";
break;
case 2:
$mj_start = '<span class="math">';
$mj_end = '</span>';
break;
default:
$mj_start = "\(";
$mj_end = "\)";
break;
}
$replacement =
preg_replace('/' . $o_start . '(.*?)' . $o_end . '/ie',
"'".$mj_start."' . preg_replace('/[\\\\\\\\\\]{2}/', '\\cr', str_replace('<', '&lt;', str_replace('<br/>', '', str_replace('<br />', '', str_replace('<br>', '', '$1'))))) . '".$mj_end."'", $tex);
// added special handling for \\ -> \cr, < -> $lt; and removal of <br/> tags in jsMath expressions, H. Schottmüller, 2007-09-09
$a_text = substr($a_text, 0, $spos).
$replacement.
substr($a_text, $epos + strlen($a_end));
}
}
}
$cpos = $spos + 1;
}
$result_text = $a_text;
return $result_text;
}

+ Here is the caller graph for this function:

static ilUtil::int2array (   $seconds,
  $periods = null 
)
static

Return an array of date segments.

Parameters
int$secondsNumber of seconds to be parsed
Returns
mixed An array containing named segments

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

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

{
// Define time periods
if (!is_array($periods))
{
$periods = array (
'years' => 31536000,
'months' => 2592000,
'days' => 86400,
'hours' => 3600,
'minutes' => 60,
'seconds' => 1
);
}
// Loop
$seconds = (float) $seconds;
foreach ($periods as $period => $value)
{
$count = floor($seconds / $value);
if ($count == 0)
{
continue;
}
$values[$period] = $count;
$seconds = $seconds % $value;
}
// Return
if (empty($values))
{
$values = null;
}
return $values;
}

+ Here is the caller graph for this function:

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

References $ilErr, PEAR_ERROR_CALLBACK, PEAR_ERROR_RETURN, and PEAR\setErrorHandling().

Referenced by ilSoapUserAdministration\__validateUserData(), ilMailAutoCompleteProviderEmailFilter\accept(), ilSetup\checkClientContact(), ilEMailInputGUI\checkInput(), ilMailAddressbookGUI\checkInput(), ilMail\checkRecipients(), ilMail\getEmailOfSender(), ilMail\getIliasMailerAddress(), ilSurveyExecutionGUI\mailUserResults(), ilObjSurveyGUI\mailUserResultsObject(), ilPersonalProfileGUI\saveProfile(), ilObjSurvey\updateCode(), ilObjUserGUI\updateObjectOld(), ilCalendarUserNotification\validate(), and ilObjCourse\validateInfoSettings().

{
// BEGIN Mail: If possible, use PearMail to validate e-mail address
global $ilErr;
// additional check for ilias object is needed,
// otherwise setup will fail with this if branch
if(is_object($ilErr)) // seems to work in Setup now
{
require_once './Services/PEAR/lib/Mail/RFC822.php';
$parser = new Mail_RFC822();
$addresses = $parser->parseAddressList($a_email, 'ilias', false, true);
if(!is_a($addresses, 'PEAR_Error') &&
count($addresses) == 1 && $addresses[0]->host != 'ilias'
)
{
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ilErr, "errorHandler"));
return true;
}
else
{
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ilErr, "errorHandler"));
return false;
}
}
else
{
$tlds = strtolower(
"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|".
"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|".
"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|".
"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|".
"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|".
"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|".
"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|".
"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|".
"WF|WS|XN|YE|YT|YU|ZA|ZM|ZW");
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));
}
// END Mail: If possible, use PearMail to validate e-mail address
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::isAPICall ( )
static

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

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

{
return strpos($_SERVER["SCRIPT_FILENAME"],"api") !== false ||
strpos($_SERVER["SCRIPT_FILENAME"],"dummy") !== false;
}

+ Here is the caller graph for this function:

static ilUtil::isConvertVersionAtLeast (   $a_version)
static

Compare convert version numbers.

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

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

References execQuoted(), and processConvertVersion().

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

{
$current_version = ilUtil::execQuoted(PATH_TO_CONVERT, "--version");
$current_version = self::processConvertVersion($current_version[0]);
$version = self::processConvertVersion($a_version);
if($current_version >= $version)
{
return true;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::isDN (   $a_str)
static

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

Referenced by ilRadiusSettings\validateServers().

{
return(preg_match("/^[a-z]+([a-z0-9-]*[a-z0-9]+)?(\.([a-z]+([a-z0-9-]*[a-z0-9]+)?)+)*$/",$a_str));
}

+ Here is the caller graph for this function:

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

Referenced by prepareTextareaOutput().

{
if( preg_match("/<[^>]*?>/", $a_text) )
{
return true;
}
return false;
}

+ Here is the caller graph for this function:

static ilUtil::isIPv4 (   $a_str)
static

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

Referenced by ilRadiusSettings\validateServers().

{
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])\.".
"(\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));
}

+ Here is the caller graph for this function:

ilUtil::isLogin (   $a_login)

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

Referenced by ilSoapUserAdministration\__validateUserData(), ilUserLoginInputGUI\checkInput(), ilAccountRegistrationGUI\saveForm(), ilPersonalProfileGUI\savePersonalData(), and ilObjUserGUI\updateObjectOld().

{
if (empty($a_login))
{
return false;
}
if (strlen($a_login) < 3)
{
return false;
}
// FIXME - If ILIAS is configured to use RFC 822
// compliant mail addresses we should not
// allow the @ character.
if (!ereg("^[A-Za-z0-9_\.\+\*\@!\$\%\~\-]+$", $a_login))
{
return false;
}
return true;
}

+ Here is the caller graph for this function:

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

validates a password public

Parameters
stringpassword
Returns
boolean true if valid

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

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

Referenced by ilSoapUserAdministration\__validateUserData(), ilPasswordInputGUI\checkInput(), ilPersonalSettingsGUI\savePassword(), and ilObjUserGUI\updateObjectOld().

{
global $lng;
include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
// check if password is empty
if( empty($a_passwd) )
{
$customError = $lng->txt('password_empty');
return false;
}
$isPassword = true;
$errors = array();
// check if password to short
if( $security->getPasswordMinLength() > 0 && strlen($a_passwd) < $security->getPasswordMinLength() )
{
$errors[] = sprintf( $lng->txt('password_to_short'), $security->getPasswordMinLength() );
$isPassword = false;
}
// check if password not to long
// 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).
if( $security->getPasswordMaxLength() > 0 && strlen($a_passwd) > $security->getPasswordMaxLength() )
{
$errors[] = sprintf( $lng->txt('password_to_long'), $security->getPasswordMaxLength() );
$isPassword = false;
}
// if password must contains Chars and Numbers
if( $security->isPasswordCharsAndNumbersEnabled() )
{
$hasCharsAndNumbers = true;
// check password for existing chars
if( !preg_match('/[A-Za-z]+/',$a_passwd) )
{
$hasCharsAndNumbers = false;
}
// check password for existing numbers
if( !preg_match('/[0-9]+/',$a_passwd) )
{
$hasCharsAndNumbers = false;
}
if( !$hasCharsAndNumbers )
{
$errors[] = $lng->txt('password_must_chars_and_numbers');
$isPassword = false;
}
}
require_once 'Services/Utilities/classes/class.ilStr.php';
if($security->getPasswordNumberOfUppercaseChars() > 0)
{
if(ilStr::strLen($a_passwd) - ilStr::strLen(preg_replace('/[A-Z]/', '', $a_passwd)) < $security->getPasswordNumberOfUppercaseChars())
{
$errors[] = sprintf($lng->txt('password_must_contain_ucase_chars'), $security->getPasswordNumberOfUppercaseChars());
$isPassword = false;
}
}
if($security->getPasswordNumberOfLowercaseChars() > 0)
{
if(ilStr::strLen($a_passwd) - ilStr::strLen(preg_replace('/[a-z]/', '', $a_passwd)) < $security->getPasswordNumberOfLowercaseChars())
{
$errors[] = sprintf($lng->txt('password_must_contain_lcase_chars'), $security->getPasswordNumberOfLowercaseChars());
$isPassword = false;
}
}
// if password must contains Special-Chars
if( $security->isPasswordSpecialCharsEnabled() )
{
// check password for existing special-chars
if( !preg_match( self::getPasswordValidChars(true, true) , $a_passwd) )
{
$errors[] = $lng->txt('password_must_special_chars');
$isPassword = false;
}
}
// ensure password matches the positive list of chars/special-chars
if( !preg_match( self::getPasswordValidChars() , $a_passwd) )
{
$errors[] = $lng->txt('password_contains_invalid_chars');
$isPassword = false;
}
// build custom error message
if( count($errors) == 1 )
{
$customError = $errors[0];
}
elseif( count($errors) > 1 )
{
$customError = $lng->txt('password_multiple_errors');
$customError .= '<br />'.implode('<br />', $errors);
}
return $isPassword;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References ilSecuritySettings\_getInstance().

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

{
include_once 'Services/PrivacySecurity/classes/class.ilSecuritySettings.php';
$login = null;
if(is_string($user))
{
$login = $user;
}
else if(is_array($user))
{
// Try to get loginname and user_id from array
$login = $user['login'];
$userId = $user['id'];
}
else if($user instanceof ilObjUser)
{
$login = $user->getLogin();
$userId = $user->getId();
}
// 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.
if($login && (int)$security->getPasswordMustNotContainLoginnameStatus() &&
strpos(strtolower($clear_text_password), strtolower($login)) !== false
)
{
$error_language_variable = 'password_contains_parts_of_login_err';
return false;
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::isWindows ( )
static

check wether the current client system is a windows system

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

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

{
if (strtolower(substr(php_uname(), 0, 3)) == "win")
{
return true;
}
return false;
}

+ Here is the caller graph for this function:

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

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

Referenced by replaceUrlParameterString().

{
if (preg_match("/&" . $paramName . "=/", $qstring)) {
return preg_replace("/&" . $paramName . "=[^&]+/", "&" . $paramName . "=" . urlencode($paramValue), $qstring);
} else {
return $qstring . "&" . $paramName . "=" . urlencode($paramValue);
}
}

+ Here is the caller graph for this function:

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

Referenced by ilTableGUI\render().

{
$LinkBar = "";
$layout_link = "";
$layout_prev = "&lt;&lt;";
$layout_next = "&gt;&gt;";
// layout options
if (count($ALayout > 0))
{
if ($ALayout["link"])
{
$layout_link = " class=\"".$ALayout["link"]."\"";
}
if ($ALayout["prev"])
{
$layout_prev = $ALayout["prev"];
}
if ($ALayout["next"])
{
$layout_next = $ALayout["next"];
}
}
// show links, if hits greater limit
// or offset > 0 (can be > 0 due to former setting)
if ($AHits > $ALimit || $AOffset > 0)
{
if (!empty($AParams))
{
foreach ($AParams as $key => $value)
{
$params.= $key."=".$value."&";
}
}
// if ($params) $params = substr($params,0,-1);
if(strpos($AScript,'&'))
{
$link = $AScript."&".$params.$prefix."offset=";
}
else
{
$link = $AScript."?".$params.$prefix."offset=";
}
// ?bergehe "zurck"-link, wenn offset 0 ist.
if ($AOffset >= 1)
{
$prevoffset = $AOffset - $ALimit;
if ($prevoffset < 0) $prevoffset = 0;
$LinkBar .= "<a".$layout_link." href=\"".$link.$prevoffset."\">".$layout_prev."&nbsp;</a>";
}
// Ben?tigte Seitenzahl kalkulieren
$pages=intval($AHits/$ALimit);
// Wenn ein Rest bleibt, addiere eine Seite
if (($AHits % $ALimit))
$pages++;
// Bei Offset = 0 keine Seitenzahlen anzeigen : DEAKTIVIERT
// if ($AOffset != 0) {
// ansonsten zeige Links zu den anderen Seiten an
for ($i = 1 ;$i <= $pages ; $i++)
{
$newoffset=$ALimit*($i-1);
if ($newoffset == $AOffset)
{
$LinkBar .= "[".$i."] ";
}
else
{
$LinkBar .= '<a '.$layout_link.' href="'.
$link.$newoffset.'">['.$i.']</a> ';
}
}
// }
// Checken, ob letze Seite erreicht ist
// Wenn nicht, gebe einen "Weiter"-Link aus
if (! ( ($AOffset/$ALimit)==($pages-1) ) && ($pages!=1) )
{
$newoffset=$AOffset+$ALimit;
$LinkBar .= "<a".$layout_link." href=\"".$link.$newoffset."\">&nbsp;".$layout_next."</a>";
}
return $LinkBar;
}
else
{
return false;
}
}

+ Here is the caller graph for this function:

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

References $ret.

Referenced by ilGroupRegistrationGUI\fillInformations(), ilCourseRegistrationGUI\fillInformations(), ilPDNewsTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilExAssignmentGUI\getOverviewBody(), htmlencodePlainString(), ilObjCourseGUI\infoScreen(), and ilObjGroupGUI\infoScreen().

{
// New code, uses MediaWiki Sanitizer
$ret = $a_text;
// www-URL ohne ://-Angabe
$ret = eregi_replace("(^|[[:space:]]+)(www\.)([[:alnum:]#?/&=\.-]+)",
"\\1http://\\2\\3", $ret);
// ftp-URL ohne ://-Angabe
$ret = eregi_replace("(^|[[:space:]]+)(ftp\.)([[:alnum:]#?/&=\.-]+)",
"\\1ftp://\\2\\3", $ret);
// E-Mail (this does not work as expected, users must add mailto: manually)
//$ret = eregi_replace("(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))",
// "mailto:\\1", $ret);
// mask existing image tags
$ret = str_replace('src="http://', '"***masked_im_start***', $ret);
include_once("./Services/Utilities/classes/class.ilMWParserAdapter.php");
$parser = new ilMWParserAdapter();
$ret = $parser->replaceFreeExternalLinks($ret);
// unmask existing image tags
$ret = str_replace('"***masked_im_start***', 'src="http://', $ret);
// Should be Safe
if ($detectGotoLinks)
// replace target blank with self and text with object title.
{
$regExp = "<a[^>]*href=\"(".str_replace("/","\/",ILIAS_HTTP_PATH)."\/goto.php\?target=\w+_(\d+)[^\"]*)\"[^>]*>[^<]*<\/a>";
// echo htmlentities($regExp);
$ret = preg_replace_callback(
"/".$regExp."/i",
array("ilUtil", "replaceLinkProperties"),
$ret);
// Static links
$regExp = "<a[^>]*href=\"(".str_replace("/","\/",ILIAS_HTTP_PATH)."\/goto_.*[a-z0-9]+_([0-9]+)\.html)\"[^>]*>[^<]*<\/a>";
// echo htmlentities($regExp);
$ret = preg_replace_callback(
"/".$regExp."/i",
array("ilUtil", "replaceLinkProperties"),
$ret);
}
return($ret);
}

+ Here is the caller graph for this function:

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

References $lng.

Referenced by ilCourseContentGUI\__renderItem(), ilRegistrationSettingsGUI\editRoleAccessLimitations(), ilCourseContentGUI\editTimings(), ilBirthdayInputGUI\render(), ilDateTimeInputGUI\render(), and ilDateDurationInputGUI\render().

{
global $lng;
$disabled = '';
if(isset($a_further_options['disabled']) and $a_further_options['disabled'])
{
$disabled = 'disabled="disabled" ';
}
$now = getdate();
if (!$emptyoption)
{
if (!strlen($year)) $year = $now["year"];
if (!strlen($month)) $month = $now["mon"];
if (!strlen($day)) $day = $now["mday"];
}
$year = (int) $year;
$month = (int) $month;
$day = (int) $day;
// build day select
$sel_day .= '<select class="form-control" ';
if(isset($a_further_options['select_attributes']))
{
foreach($a_further_options['select_attributes'] as $name => $value)
{
$sel_day .= ($name.'="'.$value.'" ');
}
}
$sel_day .= $disabled."name=\"".$prefix."[d]\" id=\"".$prefix."_d\">\n";
if ($emptyoption) $sel_day .= "<option value=\"0\">--</option>\n";
for ($i = 1; $i <= 31; $i++)
{
$sel_day .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
}
$sel_day .= "</select>\n";
$sel_day = preg_replace("/(value\=\"$day\")/", "$1 selected=\"selected\"", $sel_day);
// build month select
$sel_month = '<select class="form-control" ';
if(isset($a_further_options['select_attributes']))
{
foreach($a_further_options['select_attributes'] as $name => $value)
{
$sel_month .= ($name.'="'.$value.'" ');
}
}
$sel_month .= $disabled."name=\"".$prefix."[m]\" id=\"".$prefix."_m\">\n";
if ($emptyoption) $sel_month .= "<option value=\"0\">--</option>\n";
for ($i = 1; $i <= 12; $i++)
{
if($a_long_month)
{
$sel_month .= "<option value=\"$i\">" . $lng->txt("month_" . sprintf("%02d", $i) . "_long") . "</option>\n";
}
else
{
$sel_month .= "<option value=\"$i\">" . $i . "</option>\n";
}
}
$sel_month .= "</select>\n";
$sel_month = preg_replace("/(value\=\"$month\")/", "$1 selected=\"selected\"", $sel_month);
// build year select
$sel_year = '<select class="form-control" ';
if(isset($a_further_options['select_attributes']))
{
foreach($a_further_options['select_attributes'] as $name => $value)
{
$sel_year .= ($name.'="'.$value.'" ');
}
}
$sel_year .= $disabled."name=\"".$prefix."[y]\" id=\"".$prefix."_y\">\n";
if ((strlen($startyear) == 0) || ($startyear > $year))
{
if (!$emptyoption || $year != 0) $startyear = $year - 5;
}
if(($year + 5) < (date('Y',time()) + 5))
{
$end_year = date('Y',time()) + 5;
}
else
{
$end_year = $year + 5;
}
if ($emptyoption) $sel_year .= "<option value=\"0\">----</option>\n";
for ($i = $startyear; $i <= $end_year; $i++)
{
$sel_year .= "<option value=\"$i\">" . sprintf("%04d", $i) . "</option>\n";
}
$sel_year .= "</select>\n";
$sel_year = preg_replace("/(value\=\"$year\")/", "$1 selected=\"selected\"", $sel_year);
//$dateformat = $lng->text["lang_dateformat"];
$dateformat = "d-m-Y";
$dateformat = strtolower(preg_replace("/\W/", "", $dateformat));
$dateformat = strtolower(preg_replace("/(\w)/", "%%$1", $dateformat));
$dateformat = preg_replace("/%%d/", $sel_day, $dateformat);
$dateformat = preg_replace("/%%m/", $sel_month, $dateformat);
$dateformat = preg_replace("/%%y/", $sel_year, $dateformat);
return $dateformat;
}

+ Here is the caller graph for this function:

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

References $path.

Referenced by ilFileDataCourse\__checkImportPath(), ilFileDataCourse\__checkPath(), ilFileDataGroup\__initDirectory(), ilFileDataCourse\__initDirectory(), ilPurchaseBaseGUI\__sendBill(), ilExternalFeed\_createCacheDirectory(), ilStyleMigration\_createImagesDirectory(), ilObjStyleSheet\_createImagesDirectory(), ilObjQuestionPool\_createImportDirectory(), ilObjTest\_createImportDirectory(), ilFileDataImport\_initDirectory(), ilFileDataImportMail\_initDirectory(), ilFileDataImportGroup\_initDirectory(), ilFileDataGroup\addDirectory(), ilFileDataCourse\addDirectory(), ilFileDataGroup\addGroupDirectory(), ilFileDataGroup\addImportDirectory(), ilWikiHTMLExport\buildExportFile(), ilPortfolioHTMLExport\buildExportFile(), ilObjBlogGUI\buildExportFile(), ilScorm2004Export\buildExportFileHTML(), ilScorm2004Export\buildExportFileHTMLOne(), ilScorm2004Export\buildExportFileISO(), ilScorm2004Export\buildExportFilePDF(), ilScorm2004Export\buildExportFileSCORM(), ilSurveyQuestionpoolExport\buildExportFileXML(), ilSurveyExport\buildExportFileXML(), ilQuestionpoolExport\buildExportFileXML(), ilGlossaryExport\buildExportFileXML(), ilContObjectExport\buildExportFileXML(), ilTestExport\buildExportFileXML(), ilTestExport\buildExportResultFile(), ilChatroomViewTask\checkDirectory(), ilSetup\cloneFromSource(), ilContObjParser\copyFileItems(), ilContObjParser\copyMobFiles(), ilClient\create(), ilFSStorageCourse\createArchiveOnlineVersion(), ilShopBoughtObjectsGUI\createBill(), ilContainer\createContainerDirectory(), ilObjFileBasedLM\createDataDirectory(), ilObjSAHSLearningModule\createDataDirectory(), ilSystemStyleHTMLExport\createDirectories(), ilCOPageHTMLExport\createDirectories(), ilFileSystemGUI\createDirectory(), createDirectory(), ilObjMediaObjectGUI\createDirectoryObject(), ilScorm2004Export\createExportDirectory(), ilObjContentObject\createExportDirectory(), ilObjUserFolder\createExportDirectory(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjTest\createExportDirectory(), ilObjStyleSheet\createExportDirectory(), ilObjSurvey\createExportDirectory(), ilObjStyleSheet\createExportSubDirectory(), ilObjContentObject\createImportDirectory(), ilObjGlossary\createImportDirectory(), ilObjSurveyQuestionPool\createImportDirectory(), ilObjStyleSheet\createImportDirectory(), ilObjSurvey\createImportDirectory(), ilFileDataCourse\createImportFile(), ilFileDataCourse\createOnlineVersion(), ilCertificate\deliverExportFileXML(), ilFSStorageExercise\deliverFile(), ilExAssignment\downloadAllDeliveredFiles(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilExAssignment\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(), ilObjStyleSettingsGUI\exportLayoutObject(), ilObjMediaObject\exportMediaFullscreen(), ilObjSCORM2004LearningModule\exportPDF(), ilSCORM2004EntryAsset\exportScorm(), ilSCORM2004FinalAsset\exportScorm(), ilObjSCORM2004LearningModule\exportScorm(), ilObjContentObject\exportSCORM(), ilObjSCORM2004LearningModule\exportXMLScoObjects(), ilUserDataSet\getXmlRecord(), ilCloudPluginUploadGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilImport\importObject(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilOpenIdSettings\initTempDir(), ilSCORM13Player\logDirectory(), ilObjSCORM2004LearningModule\prepareHTMLExporter(), ilObjExercise\processUploadedFile(), rCopy(), ilObjWorkspaceFolder\recurseFolder(), ilObjFolder\recurseFolder(), ilContainerGUI\recurseFolder(), ilObjFile\rollback(), ilSetup\saveMasterSetup(), ilObjFileGUI\saveUnzip(), ilExAssignment\sendMultiFeedbackStructureFile(), ilFileXMLParser\setFileContents(), ilForumXMLWriter\start(), ilObjFile\storeUnzipedFile(), and unzip().

{
$a_dir = trim($a_dir);
// remove trailing slash (bugfix for php 4.2.x)
if (substr($a_dir,-1) == "/")
{
$a_dir = substr($a_dir,0,-1);
}
// check if a_dir comes with a path
if (!($path = substr($a_dir,0, strrpos($a_dir,"/") - strlen($a_dir))))
{
$path = ".";
}
// create directory with file permissions of parent directory
umask(0000);
return @mkdir($a_dir,fileperms($path));
}

+ Here is the caller graph for this function:

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

References $dirs.

Referenced by ilChatroomSmilies\_checkSetup(), ilChatroomSmileyTask\_checkSetup(), ilExport\_createExportDirectory(), ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), ilFSStorageCourse\addArchiveSubDirectory(), ilDataSet\addRecordsXml(), ilExportContainer\addSubitems(), ilTestPlayerAbstractGUI\archiveParticipantSubmission(), ilQuestionpoolExport\buildExportFileXML(), ilChatroomUploadFileTask\checkUploadPath(), assKprimChoice\cloneAnswerImages(), ilCertificate\cloneCertificate(), assFlashQuestion\copyApplet(), assJavaApplet\copyApplet(), assImagemapQuestion\copyImage(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assSingleChoice\copyImages(), assQuestion\copySuggestedSolutionFiles(), ilTestProcessLockFileStorage\create(), ilAssQuestionProcessLockFileStorage\create(), ilFileSystemStorage\create(), ilFSStorageExercise\create(), ilFSStorageCourse\createArchiveOnlineVersion(), ilFSStorageEvent\createDirectory(), ilFSStorageSession\createDirectory(), ilObjFile\createDirectory(), ilExplorerBaseGUI\createHTMLExportDirs(), assFlashQuestion\duplicateApplet(), assJavaApplet\duplicateApplet(), assImagemapQuestion\duplicateImage(), assOrderingQuestion\duplicateImages(), assMatchingQuestion\duplicateImages(), assMultipleChoice\duplicateImages(), assSingleChoice\duplicateImages(), SurveyQuestion\duplicateMaterials(), assQuestion\duplicateSuggestedSolutionFiles(), ilExport\exportEntity(), ilObjContentObject\exportHTML(), ilExportContainer\exportObject(), ilExport\exportObject(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), ilObjFileDAV\getContentOutputStream(), ilFSStorageExercise\getFeedbackPath(), ilFSStorageExercise\getGlobalFeedbackPath(), ilObjUserFolderGUI\getImportDir(), ilObjSurvey\getImportDirectory(), ilFSStorageExercise\getMultiFeedbackUploadPath(), ilFSStorageExercise\getPeerReviewUploadPath(), ilObjFile\getUploadFile(), ilStyleExporter\getXmlRepresentation(), ilForumExporter\getXmlRepresentation(), ilDataCollectionExporter\getXmlRepresentation(), ilBibliographicExporter\getXmlRepresentation(), ilFileExporter\getXmlRepresentation(), ilMediaObjectsExporter\getXmlRepresentation(), ilLMPresentationGUI\handleCodeParagraph(), assKprimChoice\handleFileUpload(), ilStyleImporter\importXmlRepresentation(), ilAdvancedMDRecordImportFiles\init(), ilAdvancedMDRecordExportFiles\init(), ilFSStorageCourse\initArchiveDirectory(), ilFileDataShop\initDirectory(), ilFSStorageCourse\initInfoDirectory(), ilFSStorageGroup\initMemberExportDirectory(), ilFSStorageCourse\initMemberExportDirectory(), ilObjBibliographic\moveFile(), assFlashQuestion\moveUploadedFile(), ilObjQuestionPool\pasteFromClipboard(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilOrgUnitType\processAndStoreIconFile(), ilExport\processExporter(), assFlashQuestion\saveAdditionalQuestionDataToDb(), ilCertificate\saveCertificate(), assMatchingQuestionImport\saveImage(), assFileUpload\savePreviewData(), assFileUpload\saveWorkingData(), ilOrgUnitExporter\sendAndCreateSimpleExportFile(), assOrderingQuestion\setImageFile(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assJavaApplet\setJavaAppletFilename(), SurveyQuestion\setMaterialsfile(), ilTestSubmissionReviewGUI\show(), assQuestionGUI\suggestedsolution(), assMultipleChoice\syncImages(), assSingleChoice\syncImages(), assQuestion\syncSuggestedSolutionFiles(), ilObjMediaObject\uploadAdditionalFile(), ilObjCertificateSettings\uploadBackgroundImage(), and ilCertificate\uploadBackgroundImage().

{
$dirs = array($a_dir);
$a_dir = dirname($a_dir);
$last_dirname = '';
while($last_dirname != $a_dir)
{
array_unshift($dirs, $a_dir);
$last_dirname = $a_dir;
$a_dir = dirname($a_dir);
}
// find the first existing dir
$reverse_paths = array_reverse($dirs, TRUE);
$found_index = -1;
foreach ($reverse_paths as $key => $value)
{
if ($found_index == -1)
{
if (is_dir($value))
{
$found_index = $key;
}
}
}
umask(0000);
foreach ($dirs as $dirindex => $dir)
{
// starting with the longest existing path
if ($dirindex >= $found_index)
{
if (! file_exists($dir))
{
if (strcmp(substr($dir,strlen($dir)-1,1),"/") == 0)
{
// on some systems there is an error when there is a slash
// at the end of a directory in mkdir, see Mantis #2554
$dir = substr($dir,0,strlen($dir)-1);
}
if (! mkdir($dir, $umask))
{
error_log("Can't make directory: $dir");
return false;
}
}
elseif (! is_dir($dir))
{
error_log("$dir is not a directory");
return false;
}
else
{
// get umask of the last existing parent directory
$umask = fileperms($dir);
}
}
}
return true;
}

+ Here is the caller graph for this function:

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

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

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

{
global $lng, $ilUser;
$minute_steps = 1;
$disabled = '';
if(count($a_further_options))
{
if(isset($a_further_options['minute_steps']))
{
$minute_steps = $a_further_options['minute_steps'];
}
if(isset($a_further_options['disabled']) and $a_further_options['disabled'])
{
$disabled = 'disabled="disabled" ';
}
}
if ($a_use_default and !strlen("$hour$minute$second")) {
$now = localtime();
$hour = $now[2];
$minute = $now[1];
$second = $now[0];
} else {
$hour = (int)$hour;
$minute = (int)$minute;
$second = (int)$second;
}
// build hour select
$sel_hour = '<select ';
if(isset($a_further_options['select_attributes']))
{
foreach($a_further_options['select_attributes'] as $name => $value)
{
$sel_hour .= $name.'='.$value.' ';
}
}
$sel_hour .= " ".$disabled."name=\"".$prefix."[h]\" id=\"".$prefix."_h\" class=\"form-control\">\n";
$format = $ilUser->getTimeFormat();
for ($i = 0; $i <= 23; $i++)
{
{
$sel_hour .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
}
else
{
$sel_hour .= "<option value=\"$i\">" . date("ga", mktime($i, 0, 0)) . "</option>\n";
}
}
$sel_hour .= "</select>\n";
$sel_hour = preg_replace("/(value\=\"$hour\")/", "$1 selected=\"selected\"", $sel_hour);
// build minutes select
$sel_minute .= "<select ".$disabled."name=\"".$prefix."[m]\" id=\"".$prefix."_m\" class=\"form-control\">\n";
for ($i = 0; $i <= 59; $i = $i + $minute_steps)
{
$sel_minute .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
}
$sel_minute .= "</select>\n";
$sel_minute = preg_replace("/(value\=\"$minute\")/", "$1 selected=\"selected\"", $sel_minute);
if (!$short) {
// build seconds select
$sel_second .= "<select ".$disabled."name=\"".$prefix."[s]\" id=\"".$prefix."_s\" class=\"form-control\">\n";
for ($i = 0; $i <= 59; $i++)
{
$sel_second .= "<option value=\"$i\">" . sprintf("%02d", $i) . "</option>\n";
}
$sel_second .= "</select>\n";
$sel_second = preg_replace("/(value\=\"$second\")/", "$1 selected=\"selected\"", $sel_second);
}
$timeformat = $lng->text["lang_timeformat"];
if (strlen($timeformat) == 0) $timeformat = "H:i:s";
$timeformat = strtolower(preg_replace("/\W/", "", $timeformat));
$timeformat = preg_replace("/(\w)/", "%%$1", $timeformat);
$timeformat = preg_replace("/%%h/", $sel_hour, $timeformat);
$timeformat = preg_replace("/%%i/", $sel_minute, $timeformat);
if ($short) {
$timeformat = preg_replace("/%%s/", "", $timeformat);
} else {
$timeformat = preg_replace("/%%s/", $sel_second, $timeformat);
}
return $timeformat;
}

+ Here is the caller graph for this function:

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

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

References $ilLog.

Referenced by maskSecureTags().

{
global $ilLog;
$ws = "[ \t\r\f\v\n]*";
$att = $ws."[^>]*".$ws;
while (eregi("<($tag$att($tag_att$ws=$ws\"(([\$@!*()~;,_0-9A-z/:=%\\.&#?+\\-])*)\")$att)>",
$a_str, $found))
{
$un = array(".", "-", "+", "?", '$', "*", "(", ")");
$esc = array();
foreach($un as $v)
{
$esc[] = "\\".$v;
}
$ff = str_replace($un, $esc, $found[1]);
$old_str = $a_str;
$a_str = eregi_replace("<".$ff.">",
"&lt;$tag $tag_att$tag_att=\"".$found[3]."\"&gt;", $a_str);
if ($old_str == $a_str)
{
$ilLog->write("ilUtil::maskA-".htmlentities($old_str)." == ".
htmlentities($a_str));
return $a_str;
}
}
$a_str = str_ireplace("</$tag>",
"&lt;/$tag&gt;", $a_str);
return $a_str;
}

+ Here is the caller graph for this function:

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

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

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

Referenced by secureString().

{
foreach ($allow_array as $t)
{
switch($t)
{
case "a":
$a_str = ilUtil::maskAttributeTag($a_str, "a", "href");
break;
case "img":
$a_str = ilUtil::maskAttributeTag($a_str, "img", "src");
break;
case "p":
case "div":
$a_str = ilUtil::maskTag($a_str, $t, array(
array("param" => "align", "value" => "left"),
array("param" => "align", "value" => "center"),
array("param" => "align", "value" => "justify"),
array("param" => "align", "value" => "right")
));
break;
default:
$a_str = ilUtil::maskTag($a_str, $t);
break;
}
}
return $a_str;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References $t.

Referenced by maskSecureTags().

{
$a_str = str_replace(array("<$t>", "<".strtoupper($t).">"),
"&lt;".$t."&gt;", $a_str);
$a_str = str_replace(array("</$t>", "</".strtoupper($t).">"),
"&lt;/".$t."&gt;", $a_str);
if (is_array($fix_param))
{
foreach ($fix_param as $p)
{
$k = $p["param"];
$v = $p["value"];
$a_str = str_replace("<$t $k=\"$v\">",
"&lt;"."$t $k=\"$v\""."&gt;", $a_str);
}
}
return $a_str;
}

+ Here is the caller graph for this function:

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

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

Referenced by stableSortArray().

{
// Arrays of size < 2 require no action.
if (count($array) < 2) return;
// Split the array in half
$halfway = count($array) / 2;
$array1 = array_slice($array, 0, $halfway);
$array2 = array_slice($array, $halfway);
// Recurse to sort the two halves
ilUtil::mergesort($array1, $cmp_function);
ilUtil::mergesort($array2, $cmp_function);
// If all of $array1 is <= all of $array2, just append them.
if (call_user_func($cmp_function, end($array1), $array2[0]) < 1) {
$array = array_merge($array1, $array2);
return;
}
// Merge the two sorted arrays into a single sorted array
$array = array();
$ptr1 = $ptr2 = 0;
while ($ptr1 < count($array1) && $ptr2 < count($array2)) {
if (call_user_func($cmp_function, $array1[$ptr1], $array2[$ptr2]) < 1) {
$array[] = $array1[$ptr1++];
}
else {
$array[] = $array2[$ptr2++];
}
}
// Merge the remainder
while ($ptr1 < count($array1)) $array[] = $array1[$ptr1++];
while ($ptr2 < count($array2)) $array[] = $array2[$ptr2++];
return;
}

+ Here is the caller graph for this function:

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

move uploaded file

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

References $lng, sendFailure(), sendInfo(), and virusHandling().

Referenced by ilObjCategoryGUI\_importCategories(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilSessionFile\create(), ilCourseFile\create(), ilPCInteractiveImageGUI\create(), ilFileDataGroup\createImportFile(), ilFileDataCourse\createImportFile(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilObjExternalToolsSettingsGUI\createSocialBookmarkObject(), ilFSStorageExercise\deliverFile(), ilObjFile\getUploadFile(), assKprimChoice\handleFileUpload(), ilObjStyleSheet\import(), ilCertificate\importCertificate(), ilObjGlossaryGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObject\importFromZipFile(), ilImport\importObject(), ilObjSurvey\importObject(), ilSCORM2004ScoGUI\importSave(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjBibliographic\moveFile(), ilAdvancedMDRecordImportFiles\moveUploadedFile(), assFlashQuestion\moveUploadedFile(), assQuestion\moveUploadedMediaFile(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilDataCollectionDatatype\parseValue(), ilOrgUnitType\processAndStoreIconFile(), ilContainer\saveIcons(), assFileUpload\savePreviewData(), ilObjMediaObjectGUI\savePropertiesObject(), assFileUpload\saveWorkingData(), assOrderingQuestion\setImageFile(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assJavaApplet\setJavaAppletFilename(), SurveyQuestion\setMaterialsfile(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilFileDataImportMail\storeUploadedFile(), ilFileDataImportGroup\storeUploadedFile(), ilFileDataShop\storeUploadedFile(), ilFileDataForum\storeUploadedFile(), ilFileDataMail\storeUploadedFile(), assQuestionGUI\suggestedsolution(), ilPCInteractiveImageGUI\update(), ilObjMediaCastGUI\updateMediaItem(), ilObjExternalToolsSettingsGUI\updateSocialBookmarkObject(), ilObjMediaObject\uploadAdditionalFile(), ilCalendarCategoryGUI\uploadAppointments(), ilFSStorageExercise\uploadAssignmentFiles(), ilObjCertificateSettings\uploadBackgroundImage(), ilCertificate\uploadBackgroundImage(), ilChatroomUploadFileTask\uploadFile(), ilObjMediaObjectGUI\uploadFileObject(), ilObjStyleSheet\uploadImage(), ilExAssignment\uploadMultiFeedbackFile(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjLanguageExtGUI\uploadObject(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjSurveyQuestionPoolGUI\uploadQuestionsObject(), ilObjTestGUI\uploadTstObject(), and ilObjUserGUI\uploadUserPictureObject().

{
global $lng, $ilias;
//echo "<br>ilUtli::moveuploadedFile($a_name)";
if (!is_file($a_file))
{
if ($a_raise_errors)
{
$ilias->raiseError($lng->txt("upload_error_file_not_found"), $ilias->error_obj->MESSAGE);
}
else
{
ilUtil::sendFailure($lng->txt("upload_error_file_not_found"), true);
}
return false;
}
// virus handling
$vir = ilUtil::virusHandling($a_file, $a_name);
if (!$vir[0])
{
unlink($a_file);
if ($a_raise_errors)
{
$ilias->raiseError($lng->txt("file_is_infected")."<br />".
$vir[1],
$ilias->error_obj->MESSAGE);
}
else
{
ilUtil::sendFailure($lng->txt("file_is_infected")."<br />".
$vir[1], true);
}
return false;
}
else
{
if ($vir[1] != "")
{
ilUtil::sendInfo($vir[1], true);
}
switch ($a_mode)
{
case "rename":
return rename($a_file, $a_target);
break;
case "copy":
return copy($a_file, $a_target);
break;
default:
return move_uploaded_file($a_file, $a_target);
break;
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::now ( )
static

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

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

Referenced by ilChangeEvent\_catchupWriteEvents(), ilHistory\_copyEntriesForObject(), ilHistory\_createEntry(), ilLMPageObject\_getPresentationTitle(), ilObjSCORMTracking\_insertTrackData(), ilLMTracker\_isNodeVisible(), ilPageObject\_lookupActive(), ilObjUser\_setUserInactive(), ilObjUser\_toggleActiveStatusOfUsers(), ilWikiContributor\_writeStatus(), ilDBUpdateNewObjectType\addNewType(), ilObjExercise\addResourceObject(), ilRepositoryObjectPlugin\beforeActivation(), ilBlogPosting\create(), ilNewsItem\create(), ilNote\create(), ilPageObject\createFromXML(), ilObjExercise\deliverFile(), ilDataLoader\generateUsers(), ilNewsItem\getLastNewsIdForContext(), ilLMPresentationGUI\getSuccessorPage(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilPage(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilPreviewRenderer\render(), ilPersonalSkill\saveSelfEvaluation(), ilObjSCORMTracking\store(), ilObjSCORMTracking\storeJsApiCmi(), ilNewsItem\update(), ilNote\update(), ilPageObject\update(), ilPageObject\updateFromXML(), ilExAssignment\updatePeerReviewComment(), ilExAssignment\updatePeerReviewTimestamp(), ilExAssignment\updateStatusFeedbackForUser(), ilExAssignment\updateStatusOfUser(), ilExAssignment\updateStatusSentForUser(), ilExAssignment\updateStatusTimeOfUser(), ilObjExercise\updateTextSubmission(), ilExAssignment\updateTutorDownloadTime(), ilPageObject\writeRenderedContent(), and ilBasicSkill\writeUserSkillLevelStatus().

{
return date("Y-m-d H:i:s");
}

+ Here is the caller graph for this function:

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

Referenced by ilECSEnrolmentStatusCommandQueueHandler\handleCreate().

{
$exploded = explode('_',$a_import_id);
$parsed['orig'] = $a_import_id;
if($exploded[0] == 'il')
{
$parsed['prefix'] = $exploded[0];
}
if(is_numeric($exploded[1]))
{
$parsed['inst_id'] = (int) $exploded[1];
}
$parsed['type'] = $exploded[2];
if(is_numeric($exploded[3]))
{
$parsed['id'] = (int) $exploded[3];
}
return $parsed;
}

+ Here is the caller graph for this function:

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

References stripSlashes().

Referenced by ilBookmarkImportExport\__parseExport(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilPaymentStatisticGUI\addCustomer(), ilInfoScreenGUI\addPropertyTextinput(), ilObjSystemFolderGUI\changeHeaderTitleObject(), assErrorText\createErrorTextExport(), assErrorText\createErrorTextOutput(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilTable2GUI\deleteTemplate(), ilObjTest\deliverPDFfromHTML(), ilObjFileAccessSettingsGUI\editDiskQuotaMailTemplate(), ilContainerGUI\editPageContentObject(), ilObjPaymentSettingsGUI\editVendorObject(), ilBibItemGUI\fill(), ilWikiSearchBlockGUI\fillDataSection(), ilPCIIMPopupTableGUI\fillRow(), ilPCTabsTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilHelpTooltipTableGUI\fillRow(), ilLanguageExtTableGUI\fillRow(), assFileUploadFileTableGUI\fillRow(), ilAccessKeyTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilObjectTranslation2TableGUI\fillRow(), ilPortfolioTableGUI\fillRow(), ilAssessmentFolderLogAdministrationTableGUI\fillRow(), ilTrackedQuestionsTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilTaxonomyTableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilSCORM2004ExportTableGUI\fillRow(), ilTestFixedParticipantsTableGUI\fillRow(), ilTestParticipantsTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilBookmarkBlockGUI\fillRow(), ilMDCopyrightSelectionGUI\fillTemplate(), ilBookmarkAdministrationGUI\get_last(), ilCertificateAdapter\getBaseVariablesForPresentation(), ilCertificateAdapter\getBaseVariablesForPreview(), ilTestCertificateAdapter\getCertificateVariablesForPresentation(), ilSkillCertificateAdapter\getCertificateVariablesForPresentation(), ilCourseCertificateAdapter\getCertificateVariablesForPresentation(), ilExerciseCertificateAdapter\getCertificateVariablesForPresentation(), ilSCORMCertificateAdapter\getCertificateVariablesForPresentation(), ilTestCertificateAdapter\getCertificateVariablesForPreview(), ilSkillCertificateAdapter\getCertificateVariablesForPreview(), ilSCORMCertificateAdapter\getCertificateVariablesForPreview(), ilExerciseCertificateAdapter\getCertificateVariablesForPreview(), ilCourseCertificateAdapter\getCertificateVariablesForPreview(), ilObjAssessmentFolder\getFullPath(), ilFormPropertyGUI\getHiddenTag(), ilUserFilterGUI\getHTML(), ilTaggingGUI\getHTML(), ilBookmarkBlockGUI\getListRowData(), SurveyQuestionGUI\getMaterialOutput(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), assOrderingHorizontalGUI\getPreview(), assTextQuestionGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assKprimChoiceGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), assOrderingHorizontalGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), assQuestion\getSuggestedSolutionOutput(), ilTaggingGUI\getTaggingInputHTML(), assOrderingHorizontalGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assKprimChoiceGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), ilObjTest\getTestResult(), SurveyTextQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveyMatrixQuestionGUI\getWorkingForm(), ilNoteGUI\initNoteForm(), ilPreviewGUI\initPreview(), ilMailSearchGUI\initSearchForm(), ilRandomTestROInputGUI\insert(), ilHiddenInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilCopyrightInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTextWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilFileWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilFlashFileInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilObjPaymentSettingsGUI\InvoiceNumberObject(), ilMDEditorGUI\listAnnotation(), ilMDEditorGUI\listClassification(), ilMDEditorGUI\listEducational(), ilMDEditorGUI\listGeneral(), ilMDEditorGUI\listLifecycle(), ilMDEditorGUI\listMetaMetaData(), ilMDEditorGUI\listQuickEdit_scorm(), ilMDEditorGUI\listRelation(), ilMDEditorGUI\listRights(), ilMDEditorGUI\listTechnical(), ilObjAssessmentFolderGUI\logsObject(), SurveyQuestionGUI\material(), assQuestionGUI\outPageSelector(), ilTestPlayerAbstractGUI\outQuestionSummaryCmd(), assClozeTestGUI\populateNumericGapFormPart(), ilObjTestGUI\printobject(), ilGloAdvColSortInputGUI\render(), ilNonEditableValueGUI\render(), ilSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilPasswordInputGUI\render(), ilNumberInputGUI\render(), ilNestedOrderingGUI\renderAnswerOutput(), SurveyQuestionGUI\renderChart(), ilHierarchyFormGUI\renderChild(), ilTable2GUI\saveTemplate(), ilMailFormGUI\searchUsers(), ilPasswordAssistanceGUI\showAssistanceForm(), ilPurchaseBMFGUI\showCreditCard(), ilPurchaseBMFGUI\showDebitEntry(), ilSCORM2004ScoGUI\showExportList(), ilPurchaseBMFGUI\showPersonalData(), ilPurchaseBaseGUI\showPersonalData(), ilSearchGUI\showSearch(), ilLuceneUserSearchGUI\showSearchForm(), ilLuceneSearchGUI\showSearchForm(), ilObjSCORM2004LearningModuleGUI\showSequencing(), ilStartUpGUI\showUserMappingSelection(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), assFormulaQuestion\substituteVariables(), assQuestionGUI\suggestedsolution(), and assErrorText\toJSON().

{
if($a_strip)
{
$a_str = ilUtil::stripSlashes($a_str);
}
$a_str = htmlspecialchars($a_str);
// Added replacement of curly brackets to prevent
// problems with PEAR templates, because {xyz} will
// be removed as unused template variable
$a_str = str_replace("{", "&#123;", $a_str);
$a_str = str_replace("}", "&#125;", $a_str);
// needed for LaTeX conversion \\ in LaTeX is a line break
// but without this replacement, php changes \\ to \
$a_str = str_replace("\\", "&#92;", $a_str);
return $a_str;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References $result, insertLatexImages(), and isHTML().

Referenced by ilAssQuestionHintGUI\buildForm(), and ilAssQuestionHintRequestGUI\showHintCmd().

{
$result = $txt_output;
$is_html = self::isHTML($result);
if ($prepare_for_latex_output)
{
$result = ilUtil::insertLatexImages($result, "<span class\=\"latex\">", "<\/span>");
$result = ilUtil::insertLatexImages($result, "\[tex\]", "\[\/tex\]");
}
// removed: did not work with magic_quotes_gpc = On
if (!$is_html )
{
if(!$omitNl2BrWhenTextArea)
{
// if the string does not contain HTML code, replace the newlines with HTML line breaks
$result = preg_replace("/[\n]/", "<br />", $result);
}
}
else
{
// patch for problems with the <pre> tags in tinyMCE
if (preg_match_all("/(<pre>.*?<\/pre>)/ims", $result, $matches))
{
foreach ($matches[0] as $found)
{
$replacement = "";
if (strpos("\n", $found) === FALSE)
{
$replacement = "\n";
}
$removed = preg_replace("/<br\s*?\/>/ims", $replacement, $found);
$result = str_replace($found, $removed, $result);
}
}
}
if ($prepare_for_latex_output)
{
// replace special characters to prevent problems with the ILIAS template system
// eg. if someone uses {1} as an answer, nothing will be shown without the replacement
$result = str_replace("{", "&#123;", $result);
$result = str_replace("}", "&#125;", $result);
$result = str_replace("\\", "&#92;", $result);
}
return $result;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

printBacktrace

Parameters
int$a_limitlimit nr of lines

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

References $t.

{
$bt = debug_backtrace();
$cnt = 0;
foreach ($bt as $t)
{
if ($cnt != 0 && ($a_limit == 0 || $cnt <= $a_limit))
{
echo "<br>".$t["file"].", ".$t["function"]." [".$t["line"]."]";
}
$cnt++;
}
echo "<br>";
}
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 1980 of file class.ilUtil.php.

Referenced by isConvertVersionAtLeast().

{
if(preg_match("/([0-9]+)\.([0-9]+)\.([0-9]+)([\.|\-]([0-9]+))?/", $a_version, $match))
{
$version = str_pad($match[1], 2, 0, STR_PAD_LEFT).
str_pad($match[2], 2, 0, STR_PAD_LEFT).
str_pad($match[3], 2, 0, STR_PAD_LEFT).
str_pad($match[5], 2, 0, STR_PAD_LEFT);
return (int)$version;
}
}

+ Here is the caller graph for this function:

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

References $row, and $separator.

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

{
$resultarray = array();
foreach ($row as $rowindex => $entry)
{
$surround = FALSE;
if ($quoteAll)
{
$surround = TRUE;
}
if (strpos($entry, "\"") !== FALSE)
{
$entry = str_replace("\"", "\"\"", $entry);
$surround = TRUE;
}
if (strpos($entry, $separator) !== FALSE)
{
$surround = TRUE;
}
if ($compatibleWithMSExcel)
{
// replace all CR LF with LF (for Excel for Windows compatibility
$entry = str_replace(chr(13).chr(10), chr(10), $entry);
}
if ($surround)
{
if ($outUTF8)
{
$resultarray[$rowindex] = "\"" . $entry . "\"";
}
else
{
$resultarray[$rowindex] = utf8_decode("\"" . $entry . "\"");
}
}
else
{
if ($outUTF8)
{
$resultarray[$rowindex] = $entry;
}
else
{
$resultarray[$rowindex] = utf8_decode($entry);
}
}
}
return $resultarray;
}

+ Here is the caller graph for this function:

static ilUtil::quoteArray (   $a_array)
static

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

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

References $ilDB.

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

{
global $ilDB;
if(!is_array($a_array) or !count($a_array))
{
return array("''");
}
foreach($a_array as $k => $item)
{
$a_array[$k] = $ilDB->quote($item);
}
return $a_array;
}

+ Here is the caller graph for this function:

static ilUtil::randomhash ( )
static

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

{
return md5(rand(1,9999999) + str_replace(" ", "", (string) microtime()));
}
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 5156 of file class.ilUtil.php.

References $file, $size, and exit.

Referenced by ilWebAccessChecker\sendFile().

{
$fp = @fopen($file, 'rb');
$size = filesize($file); // File size
$length = $size; // Content length
$start = 0; // Start byte
$end = $size - 1; // End byte
// Now that we've gotten so far without errors we send the accept range header
/* At the moment we only support single ranges.
* Multiple ranges requires some more work to ensure it works correctly
* and comply with the spesifications: http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.2
*
* Multirange support annouces itself with:
* header('Accept-Ranges: bytes');
*
* Multirange content must be sent with multipart/byteranges mediatype,
* (mediatype = mimetype)
* as well as a boundry header to indicate the various chunks of data.
*/
header("Accept-Ranges: 0-$length");
// header('Accept-Ranges: bytes');
// multipart/byteranges
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.2
if (isset($_SERVER['HTTP_RANGE'])) {
$c_start = $start;
$c_end = $end;
// Extract the range string
list(, $range) = explode('=', $_SERVER['HTTP_RANGE'], 2);
// Make sure the client hasn't sent us a multibyte range
if (strpos($range, ',') !== false) {
// (?) Shoud this be issued here, or should the first
// range be used? Or should the header be ignored and
// we output the whole content?
header('HTTP/1.1 416 Requested Range Not Satisfiable');
header("Content-Range: bytes $start-$end/$size");
// (?) Echo some info to the client?
}
// If the range starts with an '-' we start from the beginning
// If not, we forward the file pointer
// And make sure to get the end byte if spesified
if ($range == '-') {
// The n-number of the last bytes is requested
$c_start = $size - substr($range, 1);
}
else {
$range = explode('-', $range);
$c_start = $range[0];
$c_end = (isset($range[1]) && is_numeric($range[1])) ? $range[1] : $size;
}
/* Check the range and make sure it's treated according to the specs.
* http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
*/
// End bytes can not be larger than $end.
$c_end = ($c_end > $end) ? $end : $c_end;
// Validate the requested range and return an error if it's not correct.
if ($c_start > $c_end || $c_start > $size - 1 || $c_end >= $size) {
header('HTTP/1.1 416 Requested Range Not Satisfiable');
header("Content-Range: bytes $start-$end/$size");
// (?) Echo some info to the client?
}
$start = $c_start;
$end = $c_end;
$length = $end - $start + 1; // Calculate new content length
fseek($fp, $start);
header('HTTP/1.1 206 Partial Content');
}
// Notify the client the byte range we'll be outputting
header("Content-Range: bytes $start-$end/$size");
header("Content-Length: $length");
// Start buffered download
$buffer = 1024 * 8;
while(!feof($fp) && ($p = ftell($fp)) <= $end) {
if ($p + $buffer > $end) {
// In case we're only outputtin a chunk, make sure we don't
// read past the length
$buffer = $end - $p + 1;
}
set_time_limit(0); // Reset time limit for big files
echo fread($fp, $buffer);
flush(); // Free up memory. Otherwise large files will trigger PHP's memory limit.
}
fclose($fp);
}

+ Here is the caller graph for this function:

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

References $file, and makeDir().

Referenced by ilFileSystemStorage\_copyDirectory(), ilDataSet\addRecordsXml(), ilExAssignment\cloneAssignmentsOfExercise(), ilSetup\cloneFromSource(), ilContObjParser\copyFileItems(), ilObjStyleSheet\copyImagesToDir(), ilContObjParser\copyMobFiles(), ilPlayerUtil\copyPlayerFilesToTargetDirectory(), ilPreview\copyPreviews(), ilObjStyleSheet\create(), ilFSStorageCourse\createArchiveOnlineVersion(), ilSCORM13Package\dbImportSco(), ilBookingObject\doClone(), ilObjFile\doCloneObject(), ilObjMediaObject\duplicate(), ilObjDlBook\export(), 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(), ilExerciseDataSet\importRecord(), ilMediaObjectDataSet\importRecord(), ilStyleImporter\importXmlRepresentation(), ilObjFileBasedLM\populateByDirectoy(), and ilObjSAHSLearningModule\populateByDirectoy().

{
// check if arguments are directories
if (!@is_dir($a_sdir) or
!@is_dir($a_tdir))
{
return FALSE;
}
// read a_sdir, copy files and copy directories recursively
$dir = opendir($a_sdir);
while($file = readdir($dir))
{
if ($file != "." and
$file != "..")
{
// directories
if (@is_dir($a_sdir."/".$file))
{
if (!@is_dir($a_tdir."/".$file))
{
if (!ilUtil::makeDir($a_tdir."/".$file))
return FALSE;
//chmod($a_tdir."/".$file, 0775);
}
if (!ilUtil::rCopy($a_sdir."/".$file,$a_tdir."/".$file))
{
return FALSE;
}
}
// files
if (@is_file($a_sdir."/".$file))
{
if (!copy($a_sdir."/".$file,$a_tdir."/".$file))
{
return FALSE;
}
if ($preserveTimeAttributes)
touch($a_tdir."/".$file, filectime($a_sdir."/".$file));
}
}
}
return TRUE;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Referenced by deliverFile(), and ilWebAccessChecker\sendFile().

{
$chunksize = 1*(1024*1024); // how many bytes per chunk
$buffer = '';
$handle = fopen($a_file, 'rb');
if ($handle === false)
{
return false;
}
while (!feof($handle))
{
$buffer = fread($handle, $chunksize);
print $buffer;
}
return fclose($handle);
}

+ Here is the caller graph for this function:

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 $log, exit, ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and ilUIHookPluginGUI\KEEP.

Referenced by ilLearningProgressGUI\__getNextClass(), ilStartUpGUI\_checkGoto(), ilObjExternalFeedGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjMailGUI\_goto(), ilObjPollGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjGroupGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilShopPurchaseGUI\addToShoppingCart(), ilObjiLincCourseGUI\addUserObject(), ilUserPasswordResetRequestTargetAdjustmentCase\adjust(), ilUserProfileIncompleteRequestTargetAdjustmentCase\adjust(), ilTermsOfServiceRequestTargetAdjustmentCase\adjust(), ilObjMediaCastGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjForumGUI\afterSave(), ilObjExerciseGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjCourseGUI\afterSave(), ilTestPlayerAbstractGUI\afterTestPassFinishedCmd(), ilObjiLincCourseGUI\agendaObject(), ilSetupGUI\applyCustomUpdates(), ilSetupGUI\applyHotfix(), ilSurveyExecutionGUI\backToRepository(), ilObjTestGUI\backToRepositoryObject(), ilRemoteObjectBaseGUI\callObject(), ilAuthOpenId\callProvider(), ilPurchaseBMFGUI\cancel(), ilPurchaseBaseGUI\cancel(), ilLMPageObjectGUI\cancel(), assQuestionGUI\cancel(), SurveyQuestionGUI\cancel(), ilBookmarkAdministrationGUI\cancel(), ilMailFormGUI\cancelMail(), ilObjCourseGUI\cancelMemberObject(), ilObjiLincCourseGUI\cancelMemberObject(), ilObjForumGUI\cancelObject(), ilSharedResourceGUI\cancelPassword(), assQuestionGUI\cancelSync(), ilSetupGUI\changeAccessMode(), ilSetupGUI\changeDefaultClient(), ilSetupGUI\changeMasterPassword(), ilSessionControl\checkCurrentSessionIsAllowed(), ilSessionControl\checkExpiredSession(), ilContainerStartObjectsGUI\checkPermission(), ilObjectGUI\checkPermission(), ilObjectGUI\cloneAllObject(), ilInternalLinkGUI\closeLinkHelp(), ilSetupGUI\cmdClient(), ilObjStyleSettingsGUI\confirmedDeleteObject(), ilObjiLincCourseGUI\confirmedRemoveMemberObject(), ilStartUpGUI\confirmRegistration(), ilObjectCopyGUI\copyMultipleNonContainer(), ilObjectCopyGUI\copySingleObject(), ilBookmarkAdministrationGUI\createBookmark(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilObjTestGUI\createQuestionObject(), ilPersonalSettingsGUI\deleteOwnAccount4(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilNewsItem\deliverMobFile(), ilSetupGUI\displayDeleteConfirmation(), ilImageMapEditorGUI\editImagemapForward(), ilErrorHandling\errorHandler(), ilObjMediaPoolGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), ilAdministrationGUI\forward(), ilObjWikiGUI\gotoPageObject(), ilObjItemGroupGUI\gotoParent(), ilObjWikiGUI\gotoStartPageObject(), ilMembershipRegistrationCodeUtils\handleCode(), ilAuthContainerCAS\handleLDAPDataSource(), ilAuthContainerRadius\handleLDAPDataSource(), ilNavigationHistoryGUI\handleNavigationRequest(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilSharedResourceGUI\hasAccess(), ilObjGlossaryGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObjectGUI\importFileObject(), ilObjSurveyGUI\importFileObject(), ilObjGroupGUI\importFileObject2(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilEditClipboardGUI\insert(), ilSetupGUI\installDatabase(), ilObjiLincClassroomGUI\joinClassroom(), ilObjiLincCourseGUI\joinObject(), ShibAuth\login(), ilAuthApache\login(), ilSetupGUI\loginClient(), ilAuthContainerRadius\loginObserver(), ilAuthContainerOpenId\loginObserver(), ilAuthContainerLDAP\loginObserver(), ilMailSearchCoursesGUI\mailCourses(), ilMailSearchGroupsGUI\mailGroups(), ilMailSearchGroupsGUI\mailMembers(), ilMailSearchCoursesGUI\mailMembers(), ilObjUserFolderGUI\mailObject(), ilMailingListsGUI\mailToList(), ilObjRoleGUI\mailToRoleObject(), ilMailAddressbookGUI\mailToUsers(), ilStartUpGUI\migrateAccount(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilTestExpressPageObjectGUI\nextQuestion(), ilTestOutputGUI\performCustomRedirect(), ilSetupGUI\performLogin(), ilSetupGUI\performMLogin(), ilAssQuestionHintRequestGUI\performRequestCmd(), ilObjSCORM2004LearningModuleGUI\preview(), ilTestExpressPageObjectGUI\prevQuestion(), ilObjQuestionPoolGUI\questionsObject(), ilObjTestGUI\questionsObject(), SurveyQuestionGUI\redirectAfterSaving(), ilObjExerciseGUI\redirectFeedbackMailObject(), ilObjLinkResourceGUI\redirectToLink(), ilTestExpressPageObjectGUI\redirectToQuestionPoolSelectionPage(), ilImprintGUI\renderFullscreen(), ilLMPageObjectGUI\save(), ilObjFileGUI\save(), assQuestionGUI\save(), ilObjStyleSettingsGUI\saveActiveStylesObject(), ilSetupGUI\saveBasicSettings(), ilSetupGUI\saveClientIni(), ilSetupGUI\saveContact(), ilSetupGUI\saveDbSlave(), ilMailFormGUI\saveDraft(), assQuestionGUI\saveEdit(), ilSetupGUI\saveLanguages(), ilObjStyleSettingsGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePersonalData(), ilSetupGUI\saveRegistration(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), ilObjStyleSettingsGUI\saveScopeObject(), ilBookmarkAdministrationGUI\sendmail(), ilObjContentObjectGUI\sendMailToBlockedUsers(), ilMembershipGUI\sendMailToSelectedUsers(), ilObjCourseGUI\sendMailToSelectedUsersObject(), ilObjGroupGUI\sendMailToSelectedUsersObject(), ilMailFormGUI\sendMessage(), ilObjAuthSettingsGUI\setAuthModeObject(), ilObjFileBasedLMGUI\showLearningModule(), ilStartUpGUI\showLogin(), ilRemoteObjectBaseGUI\showObject(), ilObjPollGUI\subscribe(), assQuestionGUI\sync(), ilSetupGUI\toggleClientList(), ilObjStyleSettingsGUI\toggleGlobalDefaultObject(), ilObjStyleSettingsGUI\toggleGlobalFixedObject(), ilObjPortfolioGUI\toRepository(), ilObjPollGUI\unsubscribe(), ilObjFileGUI\update(), ilSetupGUI\updateBasicSettings(), ilSetupGUI\updateDatabase(), ilObjiLincCourseGUI\updateMemberStatusObject(), ilObjComponentSettingsGUI\updatePlugin(), ilObjSAHSLearningModuleGUI\uploadObject(), ilPublicUserProfileGUI\validateUser(), and ilObjPollGUI\vote().

{
global $log, $PHP_SELF;
//echo "<br>".$a_script;
if (!is_int(strpos($a_script, "://")))
{
if (substr($a_script, 0, 1) != "/" && defined("ILIAS_HTTP_PATH"))
{
if (is_int(strpos($_SERVER["PHP_SELF"], "/setup/")))
{
$a_script = "setup/".$a_script;
}
$a_script = ILIAS_HTTP_PATH."/".$a_script;
}
}
//echo "<br>".$a_script; exit;
// include the user interface hook
global $ilPluginAdmin;
if (is_object($ilPluginAdmin))
{
$pl_names = $ilPluginAdmin->getActivePluginsForSlot(IL_COMP_SERVICE, "UIComponent", "uihk");
foreach ($pl_names as $pl)
{
$ui_plugin = ilPluginAdmin::getPluginObject(IL_COMP_SERVICE, "UIComponent", "uihk", $pl);
$gui_class = $ui_plugin->getUIClassInstance();
$resp = $gui_class->getHTML("Services/Utilities", "redirect", array("html" => $a_script));
if ($resp["mode"] != ilUIHookPluginGUI::KEEP)
{
$a_script = $gui_class->modifyHTML($a_script, $resp);
}
}
}
header("Location: ".$a_script);
exit();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References ilObjUser\_removeItemFromDesktops().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

{
$link = $matches[0];
$ref_id = $matches[2];
if ($ref_id > 0)
{
if ($obj_id > 0)
{
$title = ilObject::_lookupTitle($obj_id);
$link = "<a href=".$matches[1]." target=\"_self\">".$title."</a>";
}
}
return $link;
}

+ Here is the call graph for this function:

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

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

References KT_replaceParam().

{
foreach ($parametersArray as $paramName => $paramValue ) {
$url = ilUtil::KT_replaceParam($url, $paramName, $paramValue);
}
return $url;
}

+ Here is the call graph for this function:

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

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

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

{
if ($a_constrain_prop)
{
$size = " -geometry ".$a_width."x".$a_height." ";
}
else
{
$size = " -resize ".$a_width."x".$a_height."! ";
}
$convert_cmd = ilUtil::escapeShellArg($a_from)." ".$size.ilUtil::escapeShellArg($a_to);
ilUtil::execConvert($convert_cmd);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References $file.

Referenced by renameExecutables().

{
if ($a_dir == "/" || $a_dir == "" || is_int(strpos($a_dir, ".."))
|| trim($a_old_suffix) == "")
{
return false;
}
// check if argument is directory
if (!@is_dir($a_dir))
{
return false;
}
// read a_dir
$dir = opendir($a_dir);
while($file = readdir($dir))
{
if ($file != "." and
$file != "..")
{
// directories
if (@is_dir($a_dir."/".$file))
{
ilUtil::rRenameSuffix($a_dir."/".$file, $a_old_suffix, $a_new_suffix);
}
// files
if (@is_file($a_dir."/".$file))
{
// first check for files with trailing dot
if(strrpos($file,'.') == (strlen($file) - 1))
{
rename($a_dir.'/'.$file,substr($a_dir.'/'.$file,0,-1));
$file = substr($file,0,-1);
}
$path_info = pathinfo($a_dir."/".$file);
if (strtolower($path_info["extension"]) ==
strtolower($a_old_suffix))
{
$pos = strrpos($a_dir."/".$file, ".");
$new_name = substr($a_dir."/".$file, 0, $pos).".".$a_new_suffix;
rename($a_dir."/".$file, $new_name);
}
}
}
}
return true;
}

+ Here is the caller graph for this function:

static ilUtil::secureLink (   $a_str)
static

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

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

{
$a_str = str_ireplace("javascript", "jvscrpt", $a_str);
$a_str = str_ireplace(array("%00", "%0a", "%0d", "%1a", "&#00;", "&#x00;",
"&#0;", "&#x0;", "&#x0a;", "&#x0d;", "&#10;", "&#13;"), "-", $a_str);
return $a_str;
}

+ Here is the caller graph for this function:

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

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

{
if (ini_get("magic_quotes_gpc"))
{
return stripslashes($a_str);
}
else
{
return $a_str;
}
}

+ Here is the caller graph for this function:

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

Remove unsecure tags.

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

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

Referenced by ilPCQuestion\copyPoolQuestionIntoPage(), assKprimChoiceGUI\handleAnswerTextsSubmit(), ilUserDataSet\importRecord(), stripSlashes(), assSingleChoiceGUI\writeAnswerSpecificPostData(), and assMultipleChoiceGUI\writeAnswerSpecificPostData().

{
// check whether all allowed tags can be made secure
$only_secure = true;
$allow_tags = explode(">", $a_allow);
$sec_tags = ilUtil::getSecureTags();
$allow_array = array();
foreach($allow_tags as $allow)
{
if ($allow != "")
{
$allow = str_replace("<", "", $allow);
if (!in_array($allow, $sec_tags))
{
$only_secure = false;
}
$allow_array[] = $allow;
}
}
// default behaviour: allow only secure tags 1:1
if (($only_secure || $a_allow == "") && $a_strip_html)
{
if ($a_allow == "")
{
$allow_array = array ("b", "i", "strong", "em", "code", "cite",
"gap", "sub", "sup", "pre", "strike");
}
// this currently removes parts of strings like "a <= b"
// because "a <= b" is treated like "<spam onclick='hurt()'>ss</spam>"
$a_str = ilUtil::maskSecureTags($a_str, $allow_array);
$a_str = strip_tags($a_str); // strip all other tags
$a_str = ilUtil::unmaskSecureTags($a_str, $allow_array);
// a possible solution could be something like:
// $a_str = str_replace("<", "&lt;", $a_str);
// $a_str = str_replace(">", "&gt;", $a_str);
// $a_str = ilUtil::unmaskSecureTags($a_str, $allow_array);
//
// output would be ok then, but input fields would show
// "a &lt;= b" for input "a <= b" if data is brought back to a form
}
else
{
// only for scripts, that need to allow more/other tags and parameters
if ($a_strip_html)
{
$a_str = ilUtil::stripScriptHTML($a_str, $a_allow);
}
}
return $a_str;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References $tpl.

Referenced by ilLocalUserGUI\__checkGlobalRoles(), ilAssQuestionFeedbackPageObjectCommandForwarder\__construct(), ilOrgUnitSimpleImportGUI\__construct(), ilDataCollectionTableEditGUI\__construct(), ilOrgUnitSimpleUserImportGUI\__construct(), ilExtIdGUI\__construct(), ilAssQuestionHintPageObjectCommandForwarder\__construct(), ilLocalUserGUI\__construct(), ilDataCollectionFieldListGUI\__construct(), ilDataCollectionRecordViewGUI\__construct(), ilCourseArchivesGUI\__showArchivesMenu(), ilLocalUserGUI\__showRolesTable(), ilLPListOfObjectsGUI\__showUsersList(), ilChatroomSmilies\_checkSetup(), ilChatroomSmileyTask\_checkSetup(), ilUploadFiles\_copyUploadFile(), ilObjItemGroupGUI\_goto(), ilLMPageObjectGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilObjMailGUI\_goto(), ilObjectPluginGUI\_goto(), ilStructureObjectGUI\_goto(), ilGlossaryTermGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjFileGUI\_goto(), ilObjWikiGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjExerciseGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjGroupGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjCourseGUI\_goto(), ilObjCategoryGUI\_importCategories(), ilCalendarInboxGUI\acceptShared(), ilStructureObjectGUI\activatePages(), ilObjComponentSettingsGUI\activatePlugin(), ilDidacticTemplateSettingsGUI\activateTemplates(), ilCourseParticipantsGroupsGUI\add(), ilObjCourseGroupingGUI\add(), ilCourseRegistrationGUI\add(), ilConditionHandlerGUI\add(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilUnitConfigurationGUI\addCategory(), ilObjBlogGUI\addContributor(), ilObjGlossaryGUI\addDefinition(), ilObjExerciseGUI\addMembersObject(), ilForumModeratorsGUI\addModerator(), ilOrgUnitStaffGUI\addOtherRoles(), ilSurveyPageGUI\addQuestionToolbar(), ilLDAPSettingsGUI\addRoleAssignment(), ilAuthShibbolethSettingsGUI\addRoleAssignmentRule(), ilOrgUnitStaffGUI\addStaff(), ilContainerStartObjectsGUI\addStarterObject(), ilObjExerciseGUI\addTeamMemberActionObject(), ilObjGlossaryGUI\addTerm(), ilObjContentObjectGUI\addTooltip(), ilObjDlBookGUI\addTranslation(), ilObjBlogGUI\addUserFromAutoComplete(), ilObjExerciseGUI\addUserFromAutoCompleteObject(), ilObjRoleGUI\addUserObject(), ilObjGroupGUI\addUserObject(), ilObjPaymentSettingsGUI\addUserObject(), ilObjPaymentSettingsGUI\addVendorObject(), ilSurveyParticipantsGUI\adminAppraiseesCloseObject(), ilObjRoleTemplateGUI\adoptPermSaveObject(), ilObjRoleGUI\adoptPermSaveObject(), ilObjiLincCourseGUI\afterSave(), ilObjCloudGUI\afterSave(), ilObjCloudGUI\afterServiceAuth(), ilObjUserFolderGUI\appliedUsersObject(), ilConditionHandlerGUI\askDelete(), ilCalendarCategoryGUI\askDeleteAppointments(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCustomUserFieldsGUI\askDeleteField(), ilObjCourseGroupingGUI\askDeleteGrouping(), ilCourseObjectivesGUI\askDeleteObjective(), ilContainerStartObjectsGUI\askDeleteStarterObject(), ilLPListOfSettingsGUI\assign(), ilConditionHandlerGUI\assign(), ilPageEditorGUI\assignCharacteristicForm(), ilObjRoleGUI\assignDesktopItemObject(), ilObjGroupGUI\assignFromWaitingListObject(), ilObjSessionGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignMembersObject(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilLocalUserGUI\assignSave(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilObjGroupGUI\assignSubscribersObject(), ilObjSessionGUI\assignSubscribersObject(), ilObjCourseGUI\assignSubscribersObject(), ilObjCourseGUI\autoFillObject(), ilCalendarAppointmentGUI\bookconfirmed(), ilScorm2004Export\buildExportFilePDF(), ilRemoteObjectBaseGUI\callObject(), ilChatroomViewTask\cancelJoin(), ilCertificateGUI\certificateEditor(), ilPDNewsBlockGUI\changeFeedSettings(), ilPermission2GUI\changeOwner(), ilSetupGUI\changeSettingsType(), ilObjBookingPoolGUI\changeStatusObject(), ilOrgUnitTypeGUI\checkAccess(), ilSurveyExecutionGUI\checkAuth(), ilSurveyEvaluationGUI\checkEvaluationAccess(), ilAssQuestionHintsGUI\checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), ilAssQuestionHintsGUI\checkForSingleHintIdAndRedirectOnFailure(), ilDataCollectionTableEditGUI\checkInput(), ilPropertyFormGUI\checkInput(), ilDataCollectionFieldEditGUI\checkInput(), ilSharedResourceGUI\checkPassword(), ilObjWorkspaceFolderGUI\checkPassword(), ilContainerStartObjectsGUI\checkPermission(), ilLocalUserGUI\checkPermission(), ilObjectGUI\checkPermission(), assMatchingQuestion\checkSubmittedMatchings(), assFileUpload\checkUpload(), ilChatroom\checkUserPermissions(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilContainerGUI\cloneWizardPageObject(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilSurveyParticipantsGUI\confirmAdminAppraiseesCloseObject(), ilObjSessionGUI\confirmAssignFromWaitingListObject(), ilObjGroupGUI\confirmAssignFromWaitingListObject(), ilObjCourseGUI\confirmAssignFromWaitingListObject(), ilObjSessionGUI\confirmAssignSubscribersObject(), ilObjGroupGUI\confirmAssignSubscribersObject(), ilObjCourseGUI\confirmAssignSubscribersObject(), ilObjExerciseGUI\confirmDeassignMembersObject(), ilDidacticTemplateSettingsGUI\confirmDelete(), ilCalendarCategoryGUI\confirmDelete(), ilConsultationHoursGUI\confirmDelete(), ilSurveyParticipantsGUI\confirmDeleteAppraiseesObject(), ilCourseArchivesGUI\confirmDeleteArchives(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilUnitConfigurationGUI\confirmDeleteCategories(), ilAssQuestionHintsGUI\confirmDeleteCmd(), ilLPObjectStatisticsGUI\confirmDeleteData(), ilObjExerciseGUI\confirmDeleteDeliveredObject(), ilMemberExportGUI\confirmDeleteExportFile(), ilObjSurveyGUI\confirmDeleteExportFileObject(), ilObjectCustomUserFieldsGUI\confirmDeleteFields(), ilAdvancedMDSettingsGUI\confirmDeleteFields(), ilFileSystemGUI\confirmDeleteFile(), ilAdvancedMDSettingsGUI\confirmDeleteFiles(), ilObjSessionGUI\confirmDeleteFilesObject(), ilObjCourseGUI\confirmDeleteInfoFilesObject(), ilObjLinkResourceGUI\confirmDeleteLink(), ilObjGroupGUI\confirmDeleteMembersObject(), ilObjRepositorySettingsGUI\confirmDeleteNewItemGroup(), ilObjRoleFolderGUI\confirmDeleteObject(), ilObjUserFolderGUI\confirmdeleteObject(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilSurveyParticipantsGUI\confirmDeleteRatersObject(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilLDAPSettingsGUI\confirmDeleteRoleMapping(), ilLDAPSettingsGUI\confirmDeleteRules(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilLOEditorGUI\confirmDeleteTest(), ilPCIIMTriggerEditorGUI\confirmDeleteTrigger(), ilUnitConfigurationGUI\confirmDeleteUnits(), ilNewsItemGUI\confirmDeletionNewsItems(), ilObjBookingPoolGUI\confirmedBookingNumbersObject(), ilObjBookingPoolGUI\confirmedBookingObject(), ilBookmarkAdministrationGUI\confirmedMove(), ilCronManagerGUI\confirmedRun(), ilObjForumGUI\confirmMergeThreadsObject(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilObjSessionGUI\confirmRefuseFromListObject(), ilObjGroupGUI\confirmRefuseFromListObject(), ilObjCourseGUI\confirmRefuseFromListObject(), ilObjSessionGUI\confirmRefuseSubscribersObject(), ilObjGroupGUI\confirmRefuseSubscribersObject(), ilObjCourseGUI\confirmRefuseSubscribersObject(), ilObjMediaPoolGUI\confirmRemove(), ilObjBlogGUI\confirmRemoveContributor(), ilContainerGUI\confirmRemoveFromSystemObject(), ilPDSelectedItemsBlockGUI\confirmRemoveObject(), ilObjExerciseGUI\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(), ilObjMediaPoolGUI\copyToClipboard(), ilObjTestVerificationGUI\create(), ilObjSCORMVerificationGUI\create(), ilObjExerciseVerificationGUI\create(), ilObjCourseVerificationGUI\create(), ilBookmarkAdministrationGUI\createBookmark(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilFileSystemGUI\createDirectory(), ilPCFileListGUI\createFileItem(), ilOpenIdSettingsGUI\createProvider(), ilLDAPSettingsGUI\createRoleMapping(), ilSurveyParticipantsGUI\createSurveyCodesObject(), ilECSMappingSettingsGUI\cSaveOverview(), ilECSMappingSettingsGUI\cUpdateSettings(), ilObjWorkspaceFolderGUI\cut(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilObjLinkResourceGUI\deactivateLink(), ilObjComponentSettingsGUI\deactivatePlugin(), ilDidacticTemplateSettingsGUI\deactivateTemplates(), ilLPListOfSettingsGUI\deassign(), ilObjExerciseGUI\deassignMembersObject(), ilObjRoleGUI\deassignUserObject(), ilCalendarInboxGUI\declineShared(), ilOrgUnitTypeGUI\delete(), ilCourseArchivesGUI\delete(), ilDataCollectionTableEditGUI\delete(), ilCalendarCategoryGUI\delete(), ilConditionHandlerGUI\delete(), ilConsultationHoursGUI\delete(), ilCalendarCategoryGUI\deleteAppointments(), ilPCImageMapEditorGUI\deleteAreas(), ilImageMapEditorGUI\deleteAreas(), ilRegistrationSettingsGUI\deleteAssignment(), ilMailAttachmentGUI\deleteAttachments(), ilUnitConfigurationGUI\deleteCategories(), ilSurveyParticipantsGUI\deleteCodesConfirmObject(), ilObject2GUI\deleteConfirmation(), ilObject2GUI\deleteConfirmedObjects(), ilPaymentCouponGUI\deleteCoupon(), ilLPObjectStatisticsGUI\deleteData(), ilObjExerciseGUI\deleteDeliveredObject(), ilObjRoleGUI\deleteDesktopItemsObject(), ilCustomUserFieldsGUI\deleteField(), ilAdvancedMDSettingsGUI\deleteFields(), ilAdvancedMDSettingsGUI\deleteFiles(), ilObjSessionGUI\deleteFilesObject(), ilObjCourseGUI\deleteInfoFilesObject(), ilObjTaxonomyGUI\deleteItems(), SurveyQuestionGUI\deleteMaterial(), ilObjGroupGUI\deleteMembersObject(), ilObjCourseGUI\deleteMembersObject(), ilObjSkillManagementGUI\deleteNodes(), ilPaymentObjectGUI\deleteObject(), ilCourseObjectivesGUI\deleteObjectives(), ilRepUtilGUI\deleteObjects(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), ilOpenIdSettingsGUI\deleteProvider(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilAdvancedMDSettingsGUI\deleteRecords(), ilLDAPSettingsGUI\deleteRoleMapping(), ilLDAPSettingsGUI\deleteRules(), ilAuthShibbolethSettingsGUI\deleteRules(), ilSurveyParticipantsGUI\deleteSavedMessageObject(), ilContainerStartObjectsGUI\deleteStarterObject(), ilObjCourseGUI\deleteSubscribers(), ilDidacticTemplateSettingsGUI\deleteTemplates(), ilObjDlBookGUI\deleteTranslation(), ilTranslationGUI\deleteTranslations(), ilObjectTranslationGUI\deleteTranslations(), ilObjCategoryGUI\deleteTranslationsObject(), ilUnitConfigurationGUI\deleteUnits(), ilLocalUserGUI\deleteUsers(), ilObjCategoryGUI\deleteUsersObject(), ilObjPaymentSettingsGUI\deleteVendorsObject(), ilObjFileGUI\deleteVersions(), ilObjCourseGUI\deliverCertificateObject(), ilObjExerciseGUI\deliverFileObject(), ilNewsItem\deliverMobFile(), ilForumModeratorsGUI\detachModeratorRole(), ilCalendarCategoryGUI\details(), ilObjMediaCastGUI\determinePlaytimeObject(), ilObjExerciseGUI\directSubmitObject(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilSetupGUI\displayLanguages(), ilPageContentGUI\displayValidationError(), ilECSMappingSettingsGUI\dMap(), ilDataCollectionStandardField\doCreate(), ilPermissionGUI\doImportRole(), ilDataCollectionStandardField\doRead(), ilCourseArchivesGUI\downloadArchives(), ilObjCourseGUI\downloadArchivesObject(), ilMemberExportGUI\downloadExportFile(), ilObjSurveyGUI\downloadExportFileObject(), ilObjExerciseGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilObjExerciseGUI\downloadFileObject(), ilObjSystemFolderGUI\downloadJavaServerIniObject(), ilObjExerciseGUI\downloadObject(), ilECSMappingSettingsGUI\dSynchronizeTrees(), ilECSMappingSettingsGUI\dUpdateSettings(), ilECSMappingSettingsGUI\dUpdateTreeSettings(), ilCalendarCategoryGUI\edit(), ilConditionHandlerGUI\edit(), ilCourseObjectivesGUI\edit(), ilConsultationHoursGUI\edit(), ilPageObjectGUI\edit(), ilObjOrgUnitGUI\editAdvancedSettings(), ilObjUserFolderGUI\editAppliedUsersObject(), ilSurveyParticipantsGUI\editCodesObject(), ilObjLinkResourceGUI\editLink(), ilObjGroupGUI\editMembersObject(), ilObjCourseGUI\editMembersObject(), ilPaymentObjectGUI\editPayMethod(), ilObjExerciseGUI\editPeerReviewObject(), ilSurveyPhrasesGUI\editPhrase(), assMatchingQuestionGUI\editQuestion(), ilLDAPSettingsGUI\editRoleAssignment(), ilCloudPluginSettingsGUI\editSettings(), ilObjOrgUnitGUI\editSettings(), ilObjCategoryGUI\editTaxonomySettingsObject(), ilDidacticTemplateSettingsGUI\editTemplate(), ilLPListOfObjectsGUI\editUser(), ilMarkSchemaGUI\ensureMarkSchemaCanBeEdited(), ilSurveyEvaluationGUI\evaluation(), ilSurveyEvaluationGUI\evaluationuser(), ilUIPluginRouterGUI\executeCommand(), ilObjectActivationGUI\executeCommand(), ilSurveyPageGUI\executeCommand(), ilRadiusSettingsGUI\executeCommand(), ilObjCloudGUI\executeCommand(), ilLDAPSettingsGUI\executeCommand(), ilAuthShibbolethSettingsGUI\executeCommand(), ilCASSettingsGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilMemberExportGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilTestScoringGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilAdministrationGUI\executeCommand(), ilTestRandomQuestionSetConfigGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilPageObjectGUI\executeCommand(), ilSurveyEditorGUI\executeCreateQuestionObject(), ilAccountCodesGUI\exportCodes(), ilRegistrationSettingsGUI\exportCodes(), ilSurveyParticipantsGUI\exportCodesObject(), ilAdvancedMDSettingsGUI\exportRecords(), ilDidacticTemplateSettingsGUI\exportTemplate(), ilObjMediaCastGUI\extractPreviewImageObject(), ilTestScoringGUI\fetchActiveIdParameter(), ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), ilOrgUnitTypeAdvancedMetaDataFormGUI\fillObject(), ilOrgUnitTypeFormGUI\fillObject(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationType(), ilCourseRegistrationGUI\fillRegistrationType(), ilCourseObjectivesGUI\finalTestAssignment(), ilCourseObjectivesGUI\finalTestLimits(), ilShopShoppingCartGUI\finishPaypal(), ilOrgUnitStaffGUI\fromEmployeeToSuperior(), ilOrgUnitStaffGUI\fromSuperiorToEmployee(), ilUnitConfigurationGUI\getCategoryById(), ilObjCloudGUI\getFile(), ilObjectPermissionStatusGUI\getUser(), ilLPListOfSettingsGUI\groupMaterials(), ilMembershipRegistrationCodeUtils\handleCode(), ilECSObjectSettings\handleSettingsUpdate(), ilCalendarCategoryGUI\importAppointments(), ilSurveyParticipantsGUI\importExternalRecipientsFromFileObject(), ilSurveyParticipantsGUI\importExternalRecipientsFromTextObject(), ilBookmarkAdministrationGUI\importFile(), ilObjectGUI\importFileObject(), ilObjGroupGUI\importFileObject2(), ilAdvancedMDSettingsGUI\importRecord(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjSurveyGUI\infoScreen(), ilObjBibliographicGUI\infoScreenForward(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilSetupGUI\initClientDbForm(), ilObjSessionGUI\initContainer(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilObjFileGUI\initCreationForms(), ilPCSkillsGUI\initForm(), ilCloudPluginInitGUI\initGUI(), ilSurveyPageGUI\insertNewQuestion(), ilObjTestGUI\insertQuestionsAfterObject(), ilObjTestGUI\insertQuestionsBeforeObject(), ilSurveyParticipantsGUI\insertSavedMessageObject(), ilSetupGUI\installDatabase(), ilSurveyParticipantsGUI\inviteUserGroupObject(), ilRegistrationGUI\join(), ilPersonalDesktopGUI\jumpToBookmarks(), ilPersonalDesktopGUI\jumpToNotes(), ilObjGroupGUI\leaveObject(), ilObjCourseGUI\leaveObject(), SurveyQuestionGUI\linkChilds(), 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(), ilObjExerciseGUI\outCertificateObject(), ilTestPlayerAbstractGUI\outQuestionSummaryCmd(), ilTestOutputGUI\outWorkingForm(), ilDataCollectionDatatype\parseValue(), ilObjTestGUI\participantsObject(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilObjTaxonomyGUI\pasteItems(), ilObjQuestionPoolGUI\pasteObject(), ilMailFolderGUI\performAddSubFolder(), ilAssQuestionHintsGUI\performDeleteCmd(), ilPaymentCouponGUI\performDeleteCoupon(), ilMailFolderGUI\performDeleteSubFolder(), ilLocalUserGUI\performDeleteUsers(), ilObjPaymentSettingsGUI\performEditVendorObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjCourseGUI\performRemoveFromWaitingListObject(), ilMailFolderGUI\performRenameSubFolder(), ilRepositorySearchGUI\performSearch(), ilObjWikiGUI\performSearchObject(), ilObjPaymentSettingsGUI\performSearchSPObject(), ilObjRoleTemplateGUI\permObject(), ilObjSystemFolderGUI\printProxyStatus(), ilSetup\printProxyStatus(), ilSurveyEditorGUI\printViewObject(), ilObjExercise\processUploadedFile(), ilObjContentObjectGUI\publishExportFile(), ilSurveyEditorGUI\questionsObject(), ilObjExerciseGUI\redirectFeedbackMailObject(), ilObjComponentSettingsGUI\refreshLanguages(), ilObjLinkResourceGUI\refreshLinkCheck(), ilObjContentObjectGUI\refreshLinkCheck(), ilECSSettingsGUI\refreshParticipants(), ilObjGroupGUI\refuseFromListObject(), ilObjSessionGUI\refuseFromListObject(), ilObjCourseGUI\refuseFromListObject(), ilObjGroupGUI\refuseSubscribersObject(), ilObjSessionGUI\refuseSubscribersObject(), ilObjCourseGUI\refuseSubscribersObject(), ilLPListOfSettingsGUI\releaseMaterials(), ilCourseParticipantsGroupsGUI\remove(), ilObjBlogGUI\removeContributor(), ilOrgUnitStaffGUI\removeFromEmployees(), ilOrgUnitStaffGUI\removeFromRole(), ilOrgUnitStaffGUI\removeFromSuperiors(), ilObjCourseGUI\removeFromWaitingList(), ilObjCourseGUI\removeMembersObject(), ilRepUtilGUI\removeObjectsFromSystem(), ilObjTestGUI\removeQuestionsObject(), ilObjExerciseGUI\removeTeamMemberObject(), ilWikiPageGUI\renamePage(), ilRepUtilGUI\restoreObjects(), ilObjRoleFolderGUI\roleSearchFormObject(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjBookingPoolGUI\rsvInUseObject(), ilObjBookingPoolGUI\rsvNotInUseObject(), ilObjTestVerificationGUI\save(), ilObjExerciseVerificationGUI\save(), ilObjSCORMVerificationGUI\save(), ilObjCourseVerificationGUI\save(), ilCalendarUserSettingsGUI\save(), ilCalendarCategoryGUI\save(), ilObjLinkResourceGUI\save(), ilObjCalendarSettingsGUI\save(), ilRadiusSettingsGUI\save(), ilCASSettingsGUI\save(), ilRegistrationSettingsGUI\save(), ilMemberAgreementGUI\save(), SurveyQuestionGUI\save(), ilCalendarAppointmentGUI\save(), ilLDAPSettingsGUI\save(), ilObjPrivacySecurityGUI\save_privacy(), ilObjLinkResourceGUI\saveAddLink(), ilRegistrationSettingsGUI\saveAssignment(), ilObjExerciseGUI\saveAssignmentObject(), ilSetupGUI\saveBasicSettings(), ilObjExerciseGUI\saveBlogObject(), ilObjMediaCastGUI\saveCastItemObject(), ilUnitConfigurationGUI\saveCategory(), ilSetupGUI\saveClientIni(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilTestPasswordProtectionGUI\saveEnteredPasswordCmd(), 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(), ilObjPaymentSettingsGUI\saveInvoiceNumberObject(), ilSetupGUI\saveLanguages(), SurveyMatrixQuestionGUI\saveLayout(), ilAssQuestionHintsGUI\saveListOrderCmd(), ilObjUserFolderGUI\saveLoginnameSettingsObject(), ilObjSearchSettingsGUI\saveLuceneSettingsObject(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilMarkSchemaGUI\saveMarks(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilOrgUnitTypeFormGUI\saveObject(), ilOrgUnitTypeCustomIconsFormGUI\saveObject(), ilContainerReferenceGUI\saveObject(), ilObjGroupGUI\saveObject(), ilObjSessionGUI\saveObject(), ilObjRoleGUI\saveObject(), ilConditionHandlerGUI\saveObligatoryList(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilConditionHandlerGUI\saveObligatorySettings(), ilPersonalSettingsGUI\savePassword(), ilObjPaymentSettingsGUI\savePaypalSettingsObject(), ilPersonalProfileGUI\savePersonalData(), ilPersonalProfileGUI\saveProfile(), ilObjSurveyGUI\savePropertiesObject(), ilSetupGUI\saveProxy(), ilObjSystemFolderGUI\saveProxyObject(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilAdvancedMDSettingsGUI\saveRecord(), ilSetupGUI\saveRegistration(), ilRegistrationSettingsGUI\saveRoleAccessLimitations(), ilLDAPSettingsGUI\saveRoleSelection(), ilConsultationHoursGUI\saveSequence(), ilLPListOfSettingsGUI\saveSettings(), ilECSParticipantSettingsGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilLOEditorGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilObjectCopyGUI\saveSource(), ilObjectCopyGUI\saveTarget(), ilLOEditorGUI\saveTest(), ilShopTopicsGUI\saveTopic(), ilTranslationGUI\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(), ilObjBibliographicGUI\sendFile(), ilMemberAgreementGUI\sendInfoMessage(), ilObjContentObjectGUI\sendMailToBlockedUsers(), ilMembershipGUI\sendMailToSelectedUsers(), ilObjCourseGUI\sendMailToSelectedUsersObject(), ilObjGroupGUI\sendMailToSelectedUsersObject(), ilObjExerciseGUI\sendMembersObject(), ilLDAPSettingsGUI\serverList(), ilObjCloudGUI\serviceAuth(), ilSetting\set(), ilObjAuthSettingsGUI\setAuthModeObject(), ilImageMapEditorGUI\setLink(), ilStructureObjectGUI\setPageLayout(), ilObjContentObjectGUI\setPageLayout(), ilObjExerciseGUI\setSelectedBlogObject(), ilObjExerciseGUI\setSelectedPortfolioObject(), ilImageMapEditorGUI\setShape(), ilCalendarCategoryGUI\shareAssign(), ilCalendarCategoryGUI\shareAssignRoles(), ilCalendarCategoryGUI\shareDeassign(), ilCalendarCategoryGUI\sharePerformSearch(), ilCalendarCategoryGUI\shareSearch(), ilLPObjectStatisticsGUI\showAccessGraph(), ilStartUpGUI\showCodeForm(), ilObjBibliographicGUI\showContent(), ilLPObjectStatisticsGUI\showDailyGraph(), ilRepUtilGUI\showDeleteConfirmation(), ilShopPurchaseGUI\showDetails(), ilObjBibliographicGUI\showDetails(), ilAssQuestionHintGUI\showFormCmd(), ilObjTestDynamicQuestionSetConfigGUI\showFormCmd(), ilObjectCopyGUI\showItemSelection(), ilLPObjectStatisticsGUI\showLearningProgressGraph(), ilStartUpGUI\showLogin(), ilOrgUnitStaffGUI\showOtherRoles(), ilPageObjectGUI\showPage(), ilObjExerciseGUI\showPersonalPeerReviewObject(), ilLMPresentationGUI\showPrintView(), ilOrgUnitStaffGUI\showStaff(), ilOrgUnitStaffGUI\showStaffRec(), ilLPObjectStatisticsGUI\showTypesGraph(), ilStartUpGUI\showUserMappingSelection(), ilLPListOfObjectsGUI\showUserObjectMatrix(), ilCourseContentGUI\showUserTimings(), ilOrgUnitSimpleImportGUI\startImport(), ilOrgUnitSimpleUserImportGUI\startImport(), ilObjSCORMLearningModuleGUI\stopUserOfflineMode(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), ilPasswordAssistanceGUI\submitAssistanceForm(), ilPasswordAssistanceGUI\submitUsernameAssistanceForm(), assFormulaQuestionResult\substituteFormula(), SurveyQuestionGUI\syncCopies(), ilCalendarCategoryGUI\synchroniseCalendar(), ilCalendarCategoryGUI\unshare(), ilObjectActivationGUI\update(), ilCalendarCategoryGUI\update(), ilCalendarAppointmentGUI\update(), ilADTBasedObjectGUI\updateAction(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilObjUserFolderGUI\updateAppliedUsersObject(), ilObjExerciseGUI\updateAssignmentObject(), ilObjExerciseGUI\updateAssignmentTextObject(), ilSetupGUI\updateBasicSettings(), ilBookmarkAdministrationGUI\updateBookmark(), ilBookmarkAdministrationGUI\updateBookmarkFolder(), ilECSSettingsGUI\updateCommunities(), ilConditionHandlerGUI\updateCondition(), ilObjBibliographicGUI\updateCustom(), ilObjPaymentSettingsGUI\updateDefaultCurrencyObject(), ilObjectCustomUserFieldsGUI\updateField(), ilCustomUserFieldsGUI\updateFields(), ilAdvancedMDSettingsGUI\updateFields(), ilCourseObjectivesGUI\updateFinalTestAssignment(), ilCourseObjectivesGUI\updateFinalTestLimits(), ilMDEditorGUI\updateGeneral(), ilConsultationHoursGUI\updateGroup(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilObjLinkResourceGUI\updateLinks(), ilCourseObjectivesGUI\updateMaterialAssignment(), ilObjGroupGUI\updateMembersObject(), ilObjCourseGUI\updateMembersObject(), ilConsultationHoursGUI\updateMulti(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjRoleGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjSessionGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjUserGUI\updateObjectOld(), ilObjExerciseGUI\updatePeerReviewObject(), ilObjComponentSettingsGUI\updatePlugin(), ilSCORM2004ScoGUI\updateProperties(), ilOpenIdSettingsGUI\updateProvider(), ilMDEditorGUI\updateQuickEdit(), ilAdvancedMDSettingsGUI\updateRecord(), ilLDAPSettingsGUI\updateRoleAssignment(), ilAuthShibbolethSettingsGUI\updateRoleAssignmentRule(), ilLDAPSettingsGUI\updateRoleMapping(), ilRegistrationSettingsGUI\updateRoles(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentLimits(), ilCloudPluginSettingsGUI\updateSettings(), ilObjOrgUnitGUI\updateSettings(), ilConsultationHoursGUI\updateSettings(), ilChatroomSmileyTask\updateSmiliesObject(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilCourseContentGUI\updateTimings(), ilECSSettingsGUI\updateTitle(), ilContainerReferenceGUI\updateTitleObject(), ilObjectServiceSettingsGUI\updateToolSettings(), ilLPListOfObjectsGUI\updateUser(), ilCourseContentGUI\updateUserTimings(), assOrderingQuestionGUI\uploadanswers(), ilCalendarCategoryGUI\uploadAppointments(), ilFileSystemGUI\uploadFile(), ilObjExerciseGUI\uploadFileObject(), ilObjExerciseGUI\uploadMultiFeedbackObject(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjTestGUI\uploadTstObject(), ilPersonalProfileGUI\uploadUserPicture(), ilObjUserGUI\uploadUserPictureObject(), ilObjExerciseGUI\uploadZipObject(), ilLPListOfObjectsGUI\userDetails(), ilObjUserFolderGUI\usrExportCsvObject(), ilObjUserFolderGUI\usrExportX86Object(), ilObjUserFolderGUI\usrExportXmlObject(), ilObjPollGUI\validateCustom(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), ilCustomUserFieldsGUI\validateForm(), ilObjOrgUnitGUI\view(), ilObjLanguageExtGUI\viewObject(), assKprimChoiceGUI\writePostData(), and assFormulaQuestionGUI\writePostData().

{
global $tpl;
$tpl->setMessage("failure", $a_info, $a_keep);
}

+ Here is the caller graph for this function:

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

References $tpl.

Referenced by ilPurchaseBaseGUI\__buildLocator(), ilSurveySkillThresholdsTableGUI\__construct(), ilWorkspaceShareTableGUI\__construct(), ilRepositorySearchGUI\__performCourseSearch(), ilRepositorySearchGUI\__performGroupSearch(), ilRepositorySearchGUI\__performRoleSearch(), ilRepositorySearchGUI\__performUserSearch(), ilObjLinkResourceGUI\__prepareOutput(), ilObjRoleGUI\__prepareOutput(), ilObjiLincCourseGUI\__search(), ilPaymentTrusteeGUI\__search(), ilPaymentStatisticGUI\__search(), ilObjPaymentSettingsGUI\__search(), ilUserSearchFilter\__searchObjects(), ilObjPaymentSettingsGUI\__searchSP(), ilPurchaseBaseGUI\__showShoppingCart(), ilChatroomSmilies\_checkSetup(), ilChatroomSmileyTask\_checkSetup(), ilUploadFiles\_copyUploadFile(), ilObjSAHSLearningModuleGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjTestGUI\_goto(), ilPersonalSettingsGUI\abortDeleteOwnAccount(), ilObjectTranslationGUI\activateContentMultilinguality(), ilObjStyleSettingsGUI\activateObject(), ilMailFolderGUI\add(), ilObjFileBasedLMGUI\addBibItemObject(), ilObjContentObjectGUI\addBibItemObject(), ilECSSettingsGUI\addCategoryMapping(), ilObjPaymentSettingsGUI\addCustomerObject(), ilObjTestGUI\addDefaultsObject(), ilPaymentObjectGUI\addObject(), ilObjTestGUI\addParticipantsObject(), assTextQuestionGUI\addSuggestedSolution(), ilShopPurchaseGUI\addToShoppingCart(), ilPaymentTrusteeGUI\addTrustee(), ilPaymentTrusteeGUI\addUser(), ilObjiLincCourseGUI\addUserObject(), ilObjRoleGUI\addUserObject(), ilObjPaymentSettingsGUI\addUserObject(), ilMailSearchGroupsGUI\adoptMembers(), ilMailSearchCoursesGUI\adoptMembers(), ilObjiLincCourseGUI\afterSave(), ilSetupGUI\applyCustomUpdates(), ilObjTestGUI\applyDefaultsObject(), ilSetupGUI\applyHotfix(), assImagemapQuestionGUI\areaEditor(), ilSkillProfileGUI\assignLevel(), ilPersonalSkillsGUI\assignMaterial(), assImagemapQuestionGUI\back(), ilPermissionGUI\blockRoles(), arConnectorDB\buildQuery(), ilObjiLincUserGUI\cancel(), ilObjiLincClassroomGUI\cancel(), ilObjSCORMLearningModuleGUI\cancel(), ilObjStyleSheetGUI\cancelCharacteristicDeletionObject(), ilObjiLincClassroomGUI\cancelDeleteClassroom(), ilObjSurveyGUI\cancelDeleteExportFileObject(), ilObjStyleSettingsGUI\cancelDeleteObject(), ilObjStyleSettingsGUI\cancelDeletePgObject(), ilSurveyParticipantsGUI\cancelDeleteSelectedUserDataObject(), ilObjSCORMLearningModuleGUI\cancelDeleteTracking(), ilObjiLincCourseGUI\canceledObject(), SurveyQuestionGUI\cancelExplorer(), ilObjiLincCourseGUI\cancelMemberObject(), ilObjSearchSettingsGUI\cancelObject(), ilObjForumGUI\cancelObject(), ilObjStyleSheetGUI\cancelObject(), ilShopShoppingCartGUI\cancelPaypal(), ilObjSCORMLearningModuleGUI\cancelStopUserOfflineMode(), SurveyQuestionGUI\cancelSync(), ilSetupGUI\changeAccessMode(), ilSetupGUI\changeDefaultClient(), ilMailFolderGUI\changeFolder(), ilSetupGUI\changeMasterPassword(), ilSetupGUI\changeSettingsType(), ilMailAddressbookGUI\checkInput(), ilObjCourseGUI\checkLicenses(), ilTestPlayerAbstractGUI\checkOnlineTestAccess(), assOrderingQuestion\checkSaveData(), ilObjPaymentSettingsGUI\checkShopActivationObject(), ilContainerGUI\cloneAllObject(), ilSetupGUI\cloneSaveSource(), ilObjForumGUI\cloneWizardPageObject(), ilSurveyParticipantsGUI\codesObject(), ilObjExerciseGUI\confirmAssignmentsDeletionObject(), ilMailingListsGUI\confirmDelete(), ilMailAddressbookGUI\confirmDelete(), ilShopNewsGUI\confirmDelete(), ilConsultationHoursGUI\confirmDelete(), ilObjPollGUI\confirmDeleteAllVotes(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilObjMDSettingsGUI\confirmDeleteEntries(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilMailFolderGUI\confirmDeleteMails(), ilMailingListsGUI\confirmDeleteMembers(), ilSkillProfileGUI\confirmDeleteProfiles(), ilShopTopicsGUI\confirmDeleteTopic(), ilObjPaymentSettingsGUI\confirmDeleteVatObject(), ilExportGUI\confirmDeletion(), ilObjSkillManagementGUI\confirmedDelete(), ilObjTaxonomyGUI\confirmedDelete(), ilObjSCORM2004LearningModuleGUI\confirmedDelete(), ilObjiLincClassroomGUI\confirmedDeleteClassroom(), ilObjiLincCourseGUI\confirmedRemoveMemberObject(), ilObjHelpSettingsGUI\confirmHelpModulesDeletion(), ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilBasicSkillGUI\confirmLevelDeletion(), ilBasicSkillGUI\confirmLevelResourcesRemoval(), ilObjForumGUI\confirmMergeThreadsObject(), ilPortfolioRepositoryGUI\confirmPortfolioDeletion(), ilObjPortfolioBaseGUI\confirmPortfolioPageDeletion(), ilConsultationHoursGUI\confirmRejectBooking(), ilObjWikiGUI\confirmRemoveImportantPagesObject(), ilObjectTranslationGUI\confirmRemoveLanguages(), ilSkillSelfEvaluationGUI\confirmSelfEvaluationDeletion(), ilSettingsTemplateGUI\confirmSettingsTemplateDeletion(), ilPersonalSkillsGUI\confirmSkillRemove(), ilObjMediaObjectGUI\confirmSrtDeletionObject(), ilPCTabsGUI\confirmTabsDeletion(), ilDidacticTemplateGUI\confirmTemplateSwitch(), ilSkillProfileGUI\confirmUserRemoval(), ilSurveyConstraintsGUI\constraintsObject(), ilSurveyConstraintsGUI\constraintStep1Object(), ilObjBlogGUI\contributors(), ilObjMediaCastGUI\convertFileObject(), ilObjectCopyGUI\copyContainer(), ilSkillTreeNodeGUI\copyItems(), ilStructureObjectGUI\copyItems(), ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilObjContentObjectGUI\copyItems(), ilObjSurveyQuestionPoolGUI\copyObject(), ilObjQuestionPoolGUI\copyObject(), ilContainerGUI\copyObject(), ilObjContentObjectGUI\copyPage(), ilObjPortfolioBaseGUI\copyPageForm(), ilObjTestGUI\copyQuestionObject(), ilSurveyEditorGUI\copyQuestionsToPoolObject(), ilObjExerciseGUI\createBlogObject(), ilBookmarkAdministrationGUI\createBookmark(), ilSurveyConstraintsGUI\createConstraintsObject(), ilObjSurveyQuestionPoolGUI\createExportFileObject(), ilContainerReferenceGUI\createObject(), ilSurveyEditorGUI\createQuestionblockObject(), ilObjTestGUI\createQuestionPoolAndCopyObject(), ilTestExportGUI\createTestArchiveExport(), ilSkillTreeNodeGUI\cutItems(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilContainerGUI\cutObject(), ilObjSCORMLearningModuleGUI\decreaseAttempts(), ilObjPollGUI\deleteAllVotes(), ilECSSettingsGUI\deleteCategoryMappings(), ilObjStyleSheetGUI\deleteCharacteristicConfirmationObject(), ilPaymentCouponGUI\deleteCodes(), ilSurveyParticipantsGUI\deleteCodesObject(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilObjTestGUI\deleteDefaultsObject(), ilObjMDSettingsGUI\deleteEntries(), ilShopShoppingCartGUI\deleteItem(), ilObjAssessmentFolderGUI\deleteLogObject(), ilPDMailBlockGUI\deleteMail(), ilMarkSchemaGUI\deleteMarkSteps(), ilObjStyleSheetGUI\deleteMediaQueryConfirmationObject(), ilPaymentObjectGUI\deleteObject(), ilObjPaymentSettingsGUI\deleteObjectObject(), ilPersonalSettingsGUI\deleteOwnAccount1(), ilSurveyPhrasesGUI\deletePhrase(), ilPaymentObjectGUI\deletePrice(), ilObjPaymentSettingsGUI\deletePriceObject(), ilSkillProfileGUI\deleteProfiles(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjQuestionPoolGUI\deleteQuestionsObject(), ilSurveyParticipantsGUI\deleteSingleUserResultsObject(), ilObjTestGUI\deleteSingleUserResultsObject(), ilPaymentStatisticGUI\deleteStatistic(), ilObjPaymentSettingsGUI\deleteStatisticObject(), ilObjStyleSheetGUI\deleteTemplateConfirmationObject(), ilPaymentTrusteeGUI\deleteTrustee(), ilObjPaymentSettingsGUI\deleteVendorsObject(), ilMailFolderGUI\deliverFile(), ilObjExerciseGUI\deliverFileObject(), ilObjExerciseGUI\deliverUnzipObject(), ilTestEvaluationGUI\detailedEvaluation(), ilSetupGUI\displayClientList(), ilSetupGUI\displayDatabaseSlave(), ilSetupGUI\displayDeleteConfirmation(), ilBookmarkAdministrationGUI\displayHeader(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilSetupGUI\displaySessions(), ilSetupGUI\displayTools(), ilDataCollectionRecordViewGUI\doExtReplace(), ilObjSurveyQuestionPoolGUI\downloadExportFileObject(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilContainerGUI\downloadMultipleObjects(), ilPageObjectGUI\edit(), ilObjUserFolderGUI\editAppliedUsersObject(), ilObjExerciseGUI\editAssignmentTextObject(), ilECSSettingsGUI\editCategoryMapping(), ilObjPaymentSettingsGUI\editDetailsObject(), ilMailFolderGUI\editFolder(), ilObjWikiGUI\editImportantPagesObject(), ilImageMapEditorGUI\editMapArea(), ilObjBookingPoolGUI\editObject(), ilContainerReferenceGUI\editObject(), ilPaymentObjectGUI\editPayMethod(), ilObjExerciseGUI\editPeerReviewObject(), ilObjFileAccessSettingsGUI\editPreviewSettings(), ilObjContentObjectGUI\editPublicSection(), ilObjHelpSettingsGUI\editSettings(), ilObjBlogAdministrationGUI\editSettings(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilObjPaymentSettingsGUI\editVendorObject(), ilObjDataCollectionGUI\emptyInfo(), ilTestPlayerAbstractGUI\endingTimeReached(), ilTermDefinitionEditorGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjExerciseGUI\executeCommand(), ilMailGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilObjQuestionPoolSettingsGeneralGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjTestSettingsGeneralGUI\executeCommand(), ilObjTestSettingsScoringResultsGUI\executeCommand(), ilObjTestDynamicQuestionSetConfigGUI\executeCommand(), ilQuestionEditGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), ilECSSettingsGUI\exportMappings(), ilObjSurveyQuestionPoolGUI\exportQuestionObject(), ilObjQuestionPoolGUI\exportQuestionObject(), ilObjSCORMLearningModuleGUI\exportSelectionUsers(), ilObjMediaCastGUI\extractPreviewImageObject(), ilExportIDTableGUI\fillRow(), ilPaymentAdminGUI\forwardToDefault(), ilPurchaseBaseGUI\getBill(), ilPurchaseBMFGUI\getCreditCard(), ilPurchaseBMFGUI\getDebitEntry(), ilNewItemGroupTableGUI\getGroups(), ilBookingObjectsTableGUI\getItems(), ilPurchaseBMFGUI\getPaymentType(), ilPurchaseBMFGUI\getPersonalData(), ilPurchaseBaseGUI\getPersonalData(), ilImagemapPreview\getPreviewFilename(), ilObjiLincCourse\getSubItems(), assFormulaQuestionGUI\getTestOutput(), ilObjectPermissionStatusGUI\getUser(), ilTestRandomQuestionSetConfigGUI\handleConfigurationStateMessages(), ilObjSurveyGUI\handleWriteAccess(), ilObjSCORMLearningModuleGUI\import(), ilPaymentCouponGUI\importCodes(), 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(), ilSurveyEditorGUI\insertQuestionsObject(), ilObjTestGUI\insertQuestionsObject(), ilObjTestGUI\insertRandomSelectionObject(), ilObjiLincCourseGUI\joinObject(), ilSetupGUI\jumpToFirstUnfinishedSetupStep(), ilContainerGUI\linkObject(), ilPCInteractiveImageGUI\listContentPopups(), ilObjRoleGUI\listDesktopItemsObject(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilSkillRootGUI\listSkills(), ilPersonalSkillsGUI\listSkillsForAdd(), ilObjTaxonomyGUI\listTaxonomies(), ilSkillRootGUI\listTemplates(), ilObjectTranslationGUI\listTranslations(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjCategoryGUI\listUsersObject(), ilObjiLincCourseGUI\listUsersRoleObject(), ilContainerGUI\lockObject(), ilObjAssessmentFolderGUI\logsObject(), ilMailSearchCoursesGUI\mail(), ilMailSearchGroupsGUI\mail(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilMailingListsGUI\mailToList(), ilMailAddressbookGUI\mailToUsers(), ilObjExerciseGUI\membersObject(), ilObjForumGUI\mergeThreadsObject(), ilBookmarkAdministrationGUI\move(), ilObjContentObjectGUI\moveChapter(), ilObjTaxonomyGUI\moveItems(), ilObjSurveyQuestionPoolGUI\moveObject(), ilObjQuestionPoolGUI\moveObject(), ilObjContentObjectGUI\movePage(), ilObjTestGUI\movePageObject(), ilSurveyEditorGUI\moveQuestionsObject(), moveUploadedFile(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilObjPaymentSettingsGUI\objectsObject(), ilLMPageGUI\onFeedbackEditingForwarding(), ilPaymentObjectGUI\ORg_updatePrice(), ilObjLanguageFolderGUI\out(), ilTestEvaluationGUI\outCorrectSolution(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), assQuestionGUI\outQuestionType(), assQuestionGUI\outSolutionExplorer(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilObjTestGUI\participantsObject(), ilObjSurveyQuestionPoolGUI\pasteObject(), ilObjQuestionPoolGUI\pasteObject(), ilPaymentObjectGUI\performAddPrice(), ilObjPaymentSettingsGUI\performAddPriceObject(), ilMailFolderGUI\performAddSubFolder(), ilAdvancedSearchGUI\performAdvMDSearch(), ilMailingListsGUI\performDelete(), ilShopNewsGUI\performDelete(), ilMailAddressbookGUI\performDelete(), ilPaymentObjectGUI\performDelete(), ilPaymentStatisticGUI\performDelete(), ilPaymentCouponGUI\performDeleteCodes(), ilPaymentStatisticGUI\performDeleteDeassignCrs(), ilMailingListsGUI\performDeleteMembers(), ilObjPaymentSettingsGUI\performDeleteObject(), ilPaymentObjectGUI\performDeletePrice(), ilObjPaymentSettingsGUI\performDeletePriceObject(), ilMailFolderGUI\performDeleteSubFolder(), ilShopTopicsGUI\performDeleteTopic(), ilPaymentTrusteeGUI\performDeleteTrustee(), ilObjPaymentSettingsGUI\performDeleteVatObject(), ilObjPaymentSettingsGUI\performDeleteVendorsObject(), ilObjPaymentSettingsGUI\performEditVendorObject(), ilMailFolderGUI\performEmptyTrash(), ilObjMailGUI\performImportObject(), ilObjPaymentSettingsGUI\performObjectDeleteObject(), ilObjForumGUI\performPostActivationObject(), ilMailFolderGUI\performRenameSubFolder(), ilShopAdvancedSearchGUI\performSearch(), ilAdvancedSearchGUI\performSearch(), ilPaymentTrusteeGUI\performSearch(), ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilShopGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilPaymentStatisticGUI\performSearch(), ilObjPaymentSettingsGUI\performSearchSPObject(), ilSurveyPhrasesGUI\phrases(), ilTestPlayerAbstractGUI\populateKioskHead(), ilImprintGUI\postOutputProcessing(), ilWikiPageGUI\preview(), ilObjBlogGUI\preview(), ilSurveyEvaluationGUI\printEvaluation(), ilObjTestGUI\printobject(), ilSurveyEditorGUI\questionsObject(), ilObjTestGUI\questionsObject(), ilECSSettingsGUI\readAll(), ilTestOutputGUI\redirectQuestionCmd(), ilObjSessionGUI\registerObject(), ilSetupGUI\reloadControlStructure(), ilObjectTranslationGUI\removeLanguages(), ilObjTestGUI\removeParticipantObject(), ilSurveyEditorGUI\removeQuestionsObject(), ilCronManagerGUI\render(), ilBookingScheduleGUI\render(), ilObjPollGUI\render(), ilSessionStatisticsGUI\render(), ilObjBlogGUI\render(), ilSurveyPageGUI\renderPage(), ilAssQuestionPreviewGUI\resetCmd(), ilShopGUI\resetFilter(), ilObjPaymentSettingsGUI\resetFilterObject(), ilPaymentObjectGUI\resetObjectFilter(), ilObjPaymentSettingsGUI\resetObjectFilterObject(), ilAssQuestionHintsGUI\resetOrderingClipboardCmd(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjRoleFolderGUI\roleSearchObject(), ilObjFileGUI\rollbackVersion(), ilObjiLincClassroomGUI\save(), ilObjiLincUserGUI\save(), ilDataCollectionFieldEditGUI\save(), ilECSSettingsGUI\save(), ilObjSearchSettingsGUI\saveAdvancedLuceneSettingsObject(), ilMailingListsGUI\saveAssignmentForm(), ilObjStyleSheetGUI\saveCharacteristicObject(), ilObjTestGUI\saveClientIPObject(), ilPaymentCouponGUI\saveCodeForm(), ilPaymentCouponGUI\saveCouponForm(), ilObjPaymentSettingsGUI\saveCustomerObject(), ilObjFileAccessSettingsGUI\saveDownloadingSettings(), ilMailFormGUI\saveDraft(), ilObjMDSettingsGUI\saveEntry(), ilECSSettingsGUI\saveExportMappings(), ilAccountRegistrationGUI\saveForm(), ilObjTestSettingsGeneralGUI\saveFormCmd(), ilObjStyleSheetGUI\saveHideStatusObject(), ilECSSettingsGUI\saveImportMappings(), ilObjectTranslationGUI\saveLanguages(), ilSetupGUI\saveLanguages(), ilObjSearchSettingsGUI\saveLuceneSettingsObject(), ilObjExternalToolsSettingsGUI\saveMathJaxObject(), ilShopNewsGUI\saveNews(), ilObjStyleSettingsGUI\saveObject(), ilObjUserGUI\saveObject(), ilObjGroupGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilObjSessionGUI\saveObject(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilObjTestGUI\saveOrderAndObligationsObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjPaymentSettingsGUI\savePayMethodsObject(), assNumeric\savePreviewData(), assFileUpload\savePreviewData(), ilObjSCORMLearningModuleGUI\saveProperties(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjTestSettingsScoringResultsGUI\saveResultMiscOptionsSettings(), ilSkillSelfEvaluationGUI\saveSelfEvaluation(), ilShopNewsGUI\saveSettings(), ilLPListOfSettingsGUI\saveSettings(), ilObjSearchSettingsGUI\saveSettingsObject(), ilShopPersonalSettingsGUI\saveSorting(), ilObjAdvancedEditingGUI\saveTags(), ilObjPaymentSettingsGUI\saveVatObject(), ilObjFileAccessSettingsGUI\saveWebDAVSettings(), assFileUpload\saveWorkingData(), ilMailSearchGUI\search(), ilLuceneAdvancedSearchGUI\search(), ilMailFormGUI\search(), ilObjSurveyAdministrationGUI\searchObject(), ilObjiLincCourseGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilObjectCopyGUI\searchSource(), ilObjDlBookGUI\searchTranslation(), ilPaymentStatisticGUI\searchUser(), ilObjExerciseGUI\selectBlogObject(), ilObjRoleGUI\selectDesktopItemObject(), ilPCMediaObjectGUI\selectObjectReference(), ilConditionHandlerGUI\selector(), ilObjExerciseGUI\selectPortfolioObject(), ilPurchaseBMFGUI\sendCreditCard(), ilPurchaseBMFGUI\sendDebitEntry(), ilConsultationHoursGUI\sendInfoAboutUnassignedUsers(), ilMailFormGUI\sendMessage(), ilObjWikiGUI\setAsStartPageObject(), ilObjAuthSettingsGUI\setAuthModeObject(), ilShopShoppingCartGUI\setCoupon(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilSetup\setSessionSettings(), ilMailSearchGroupsGUI\share(), ilMailSearchCoursesGUI\share(), ilCalendarSubscriptionGUI\show(), ilObjectCustomUserFieldsGUI\show(), ilRegistrationGUI\show(), ilObjDlBookGUI\showAbstract(), ilLPObjectStatisticsGUI\showAggregationInfo(), ilMailingListsGUI\showAssignmentForm(), ilPurchaseBaseGUI\showBillConfirm(), ilShopBoughtObjectsGUI\showBillHistory(), ilPaymentCouponGUI\showCodes(), ilPermissionGUI\showConfirmBlockRole(), ilPaymentCouponGUI\showCoupons(), ilPurchaseBMFGUI\showCreditCard(), ilLPObjectStatisticsGUI\showCronJobInfo(), ilPurchaseBMFGUI\showDebitEntry(), ilShopPurchaseGUI\showDetails(), ilLMPresentationGUI\showDownloadList(), ilObjContentObjectGUI\showEntrySelector(), ilMailFormGUI\showForm(), ilObjTestDynamicQuestionSetConfigGUI\showFormCmd(), ilShopBoughtObjectsGUI\showItems(), ilShopShoppingCartGUI\showItems(), ilObjectCopyGUI\showItemSelection(), ilObjSessionGUI\showJoinRequestButton(), ilMarkSchemaGUI\showMarkSchema(), ilMailSearchGroupsGUI\showMembers(), ilMailSearchCoursesGUI\showMembers(), ilObjTermsOfServiceGUI\showMissingDocuments(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), ilObjExerciseGUI\showMultiFeedbackObject(), ilPaymentStatisticGUI\showObjectSelector(), ilObjPaymentSettingsGUI\showObjectSelectorObject(), ilObjExerciseGUI\showParticipantObject(), ilObjPollGUI\showParticipants(), ilObjPollGUI\showParticipantVotes(), ilPersonalSettingsGUI\showPassword(), ilContainerGUI\showPasswordInstructionObject(), ilPurchaseBMFGUI\showPaymentType(), ilPurchaseBMFGUI\showPersonalData(), ilPurchaseBaseGUI\showPersonalData(), ilPersonalProfileGUI\showPersonalData(), ilObjPrivacySecurityGUI\showPrivacy(), ilRepositorySelectorInputGUI\showRepositorySelection(), ilMailSearchGUI\showResults(), ilLuceneAdvancedSearchGUI\showSavedResults(), ilLuceneSearchGUI\showSavedResults(), ilPaymentObjectGUI\showSelectedObject(), ilObjectCopyGUI\showSourceSelectionTree(), ilPaymentStatisticGUI\showStatistics(), ilObjectCopyGUI\showTargetSelectionTree(), ilObjWikiGUI\showTemplateSelectionObject(), ilShopGUI\showTopicsContent(), ilRepUtilGUI\showTrashTable(), ilPaymentTrusteeGUI\showTrustees(), ilObjTestGUI\showUserResults(), ilObjSystemFolderGUI\showVcsInformationObject(), ilTestEvaluationGUI\singleResults(), ilSkillSelfEvaluationGUI\startSelfEvaluation(), ilObjPaymentSettingsGUI\statisticObject(), ilObjExerciseGUI\submissionScreenObject(), ilObjExerciseGUI\submissionScreenTeamObject(), assQuestionGUI\suggestedsolution(), assFlashQuestionGUI\suggestRange(), assFormulaQuestionGUI\suggestRange(), ilSetupGUI\switchTree(), ilOrgUnitSimpleUserImportGUI\testImport(), ilObjTestGUI\timingObject(), ilSetupGUI\toggleClientList(), ilSurveyEditorGUI\unfoldQuestionblockObject(), ilShopShoppingCartGUI\unlockBMFObjectsInShoppingCart(), ilShopNewsGUI\update(), ilPaymentTrusteeGUI\update(), ilSkillProfileGUI\update(), ilECSSettingsGUI\update(), ilECSSettingsGUI\updateCategoryMapping(), ilObjiLincClassroomGUI\updateClassroom(), ilSetupGUI\updateDatabase(), ilPaymentObjectGUI\updateDetails(), ilObjPaymentSettingsGUI\updateDetailsObject(), ilObjMDSettingsGUI\updateEntry(), ilAdvancedMDSettingsGUI\updateField(), ilObjiLincCourseGUI\updateMemberStatusObject(), ilObjiLincCourseGUI\updateObject(), ilObjStyleSheetGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjExerciseGUI\updatePeerReviewObject(), ilObjExerciseGUI\updatePeerReviewTextObject(), ilObjComponentSettingsGUI\updatePluginDB(), ilPaymentObjectGUI\updatePrice(), ilObjPaymentSettingsGUI\updatePriceObject(), ilSCORM2004ScoGUI\updateProperties(), ilPageLayoutGUI\updateProperties(), ilSkillSelfEvaluationGUI\updateSelfEvaluation(), ilPaymentStatisticGUI\updateStatistic(), ilObjPaymentSettingsGUI\updateStatisticObject(), ilObjTaxonomyGUI\updateTaxNode(), ilObjPaymentSettingsGUI\updateVatObject(), ilObjMailGUI\uploadObject(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjTestGUI\uploadTstObject(), ilObjContentObject\validatePages(), ilObjPaymentSettingsGUI\vendorsObject(), ilPDNotesGUI\view(), ilObjPortfolioBaseGUI\view(), ilObjLanguageExtGUI\viewObject(), ilObjWikiGUI\viewPageObject(), assSingleChoiceGUI\writeQuestionSpecificPostData(), and assMultipleChoiceGUI\writeQuestionSpecificPostData().

{
global $tpl;
$tpl->setMessage("info", $a_info, $a_keep);
}

+ Here is the caller graph for this function:

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

Send Question to Screen.

Parameters
stringmessage
booleanif true message is kept in session

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

References $tpl.

Referenced by ilRegistrationGUI\addCommandButtons(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCourseObjectivesGUI\askDeleteObjective(), ilObjCourseGUI\askResetObject(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilDidacticTemplateSettingsGUI\confirmDelete(), ilCourseArchivesGUI\confirmDeleteArchives(), ilMemberExportGUI\confirmDeleteExportFile(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilObjSurveyGUI\confirmDeleteExportFileObject(), ilObjRoleGUI\confirmDeleteRoleObject(), ilObjSurveyGUI\confirmResetTemplateObject(), ilAdministrationCommandGUI\delete(), ilObjTestGUI\deleteAllUserDataObject(), ilSurveyPageGUI\deleteBlock(), ilPaymentCouponGUI\deleteCoupon(), ilObjPaymentSettingsGUI\deleteObjectObject(), ilSurveyPhrasesGUI\deletePhrase(), ilObjQuestionPoolGUI\deleteQuestionsObject(), ilSurveyParticipantsGUI\deleteSingleUserResultsObject(), ilObjPaymentSettingsGUI\deleteStatisticObject(), ilObjCourseGUI\deleteSubscribers(), ilObjPaymentSettingsGUI\deleteVendorsObject(), ilObjFileGUI\deleteVersions(), ilConfirmationGUI\getHTML(), ilObjCourseGUI\redirectLocToTestConfirmation(), ilObjiLincCourseGUI\removeMemberObject(), ilSurveyEditorGUI\removeQuestionsObject(), ilObjBookingPoolGUI\rsvConfirmCancelAggregationObject(), and ilObjGroupGUI\updateObject().

{
global $tpl;
$tpl->setMessage("question", $a_info, $a_keep);
}

+ Here is the caller graph for this function:

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

References $tpl.

Referenced by ilChatroomSmilies\_checkSetup(), ilChatroomSmileyTask\_checkSetup(), ilObjCategoryGUI\_importCategories(), ilCalendarInboxGUI\acceptShared(), ilECSSettingsGUI\activate(), ilAuthLoginPageEditorGUI\activate(), ilObjSCORM2004LearningModuleGUI\activateExpertMode(), ilObjHelpSettingsGUI\activateModule(), ilObjStyleSettingsGUI\activateObject(), ilLOEditorGUI\activateObjectives(), ilObjComponentSettingsGUI\activatePlugin(), ilDidacticTemplateSettingsGUI\activateTemplates(), ilWikiPageGUI\activateWikiPageRating(), ilWikiPageTemplateGUI\add(), ilCourseParticipantsGroupsGUI\add(), ilObjCourseGroupingGUI\add(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilSurveyParticipantsGUI\addAppraisee(), ilRegistrationSettingsGUI\addAssignment(), ilUnitConfigurationGUI\addCategory(), ilPageEditorGUI\addChangeComment(), ilObjBlogGUI\addContributor(), ilSurveyParticipantsGUI\addExternalRaterObject(), SurveyQuestionGUI\addGIT(), assQuestionGUI\addGIT(), ilCourseArchivesGUI\addHTMLArchive(), ilObjWikiGUI\addImportantPageObject(), ilObjExerciseGUI\addMembersObject(), ilForumModeratorsGUI\addModerator(), ilPCIIMTriggerEditorGUI\addNewArea(), ilObjRepositorySettingsGUI\addNewItemGroupSeparator(), ilOrgUnitStaffGUI\addOtherRoles(), ilWikiPageTemplateGUI\addPageTemplateFromPageAction(), ilMailSearchGroupsGUI\addPermission(), ilMailSearchGUI\addPermission(), ilMailSearchCoursesGUI\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(), ilObjExerciseGUI\addTeamMemberActionObject(), ilPDSelectedItemsBlockGUI\addToDeskObject(), ilObjBibliographicGUI\addToDeskObject(), ilContainerGUI\addToDeskObject(), ilObjBlogGUI\addToDeskObject(), ilObjContentObjectGUI\addTooltip(), ilObjDlBookGUI\addTranslation(), ilUnitConfigurationGUI\addUnit(), ilObjRoleGUI\addUserObject(), ilObjGroupGUI\addUserObject(), ilObjPaymentSettingsGUI\addVendorObject(), ilCourseArchivesGUI\addXMLArchive(), ilSurveyParticipantsGUI\adminAppraiseesCloseObject(), ilLPObjectStatisticsGUI\adminSync(), ilSessionStatisticsGUI\adminSync(), ilObjRoleTemplateGUI\adoptPermSaveObject(), ilObjRoleFolderGUI\adoptPermSaveObject(), ilObjRoleGUI\adoptPermSaveObject(), ilObjExerciseGUI\adoptTeamAssignmentsObject(), ilObjectGUI\afterImport(), ilObjPollGUI\afterSave(), ilObjBlogGUI\afterSave(), ilObjItemGroupGUI\afterSave(), ilObjBookingPoolGUI\afterSave(), ilObjMediaCastGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjPortfolioTemplateGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjectPluginGUI\afterSave(), ilObjTaxonomyGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjPortfolioGUI\afterSave(), ilObjDataCollectionGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjForumGUI\afterSave(), ilObjExerciseGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjTestGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjectGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjCloudGUI\afterServiceAuth(), ilObjectGUI\afterUpdate(), ilObjTestGUI\applyDefaultsObject(), ilSurveyParticipantsGUI\appraiseeCloseObject(), ilObjBlogGUI\approve(), ilLPListOfSettingsGUI\assign(), ilConditionHandlerGUI\assign(), ilObjCourseGroupingGUI\assignCourse(), ilObjRoleGUI\assignDesktopItemObject(), ilObjGroupGUI\assignFromWaitingListObject(), ilObjSessionGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignFromWaitingListObject(), ilSkillProfileGUI\assignLevelToProfile(), ilObjGroupGUI\assignMemberObject(), ilObjCourseGUI\assignMembersObject(), ilLocalUserGUI\assignSave(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilObjGroupGUI\assignSubscribersObject(), ilObjSessionGUI\assignSubscribersObject(), ilObjCourseGUI\assignSubscribersObject(), ilSkillProfileGUI\assignUser(), ilObjCourseGUI\autoFillObject(), ilWikiPageGUI\blockWikiPage(), ilCalendarAppointmentGUI\bookconfirmed(), ilTestRandomQuestionSetConfigGUI\buildQuestionStageCmd(), ilCalendarAppointmentGUI\cancelConfirmed(), ilRegistrationGUI\cancelSubscriptionRequest(), ilECSMappingSettingsGUI\cDeleteRulesOfNode(), ilCertificateGUI\certificateEditor(), ilObjRoleGUI\changeExistingObjectsObject(), ilPDNewsBlockGUI\changeFeedSettings(), ilPermission2GUI\changeOwner(), ilObjBookingPoolGUI\changeStatusObject(), ilConditionHandlerGUI\chi_update(), ilContainerGUI\clearObject(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilBookmarkAdministrationGUI\confirm(), ilObjUserFolderGUI\confirmaccessFreeObject(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjUserFolderGUI\confirmactivateObject(), ilBlogPostingGUI\confirmBlogPostingDeletion(), ilObjUserFolderGUI\confirmdeactivateObject(), ilSurveyParticipantsGUI\confirmDeleteAllUserDataObject(), ilObjTestGUI\confirmDeleteAllUserResultsObject(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilObjUserFolderGUI\confirmdeleteObject(), ilSurveyPhrasesGUI\confirmDeletePhrase(), ilObjSurveyQuestionPoolGUI\confirmDeleteQuestionsObject(), ilObjQuestionPoolGUI\confirmDeleteQuestionsObject(), ilSurveyParticipantsGUI\confirmDeleteSelectedUserDataObject(), ilObjTestGUI\confirmDeleteSelectedUserDataObject(), ilObjFileGUI\confirmDeleteVersions(), ilCronManagerGUI\confirmedActivate(), ilCronManagerGUI\confirmedDeactivate(), ilObjContentObjectGUI\confirmedDelete(), ilBookmarkAdministrationGUI\confirmedMove(), ilPDSelectedItemsBlockGUI\confirmedRemove(), ilCronManagerGUI\confirmedReset(), ilObjTestSettingsGeneralGUI\confirmedResetTemplateCmd(), ilCronManagerGUI\confirmedRun(), ilPDSelectedItemsBlockGUI\confirmedUnsubscribe(), ilSurveyEditorGUI\confirmRemoveQuestionsObject(), ilObjTestGUI\confirmRemoveQuestionsObject(), SurveyQuestionGUI\confirmSavePhrase(), ilWikiPageGUI\confirmWikiPageDeletion(), ilPageContentGUI\copy(), ilObjStyleSheetGUI\copyCharacteristicsObject(), ilObjectCopyGUI\copyContainer(), ilPageEditorGUI\copyLinkedMediaToClipboard(), ilObjectCopyGUI\copyMultipleNonContainer(), ilObjPortfolioBaseGUI\copyPage(), ilSurveyPageGUI\copyQuestion(), ilObjTestGUI\copyQuestionObject(), ilObjRoleFolderGUI\copyRoleObject(), ilPageEditorGUI\copySelected(), ilObjectCopyGUI\copySingleObject(), ilDidacticTemplateSettingsGUI\copyTemplate(), ilObjMediaPoolGUI\copyToClipboard(), ilPCMediaObjectGUI\copyToClipboard(), ilECSSettingsGUI\cp(), ilObjBibliographicAdminLibrariesGUI\create(), ilOrgUnitTypeGUI\create(), ilPCInteractiveImageGUI\create(), ilCustomUserFieldsGUI\create(), ilPCMediaObjectGUI\create(), ilObjExerciseGUI\createAdoptedTeamObject(), ilAccountCodesGUI\createCodes(), ilRegistrationSettingsGUI\createCodes(), ilFileSystemGUI\createDirectory(), ilExportGUI\createExportFile(), ilObjWikiGUI\createPageUsingTemplateObject(), ilObjPortfolioGUI\createPortfolioFromTemplateProcess(), ilObjExerciseGUI\createPortfolioObject(), ilOpenIdSettingsGUI\createProvider(), ilLDAPSettingsGUI\createRoleMapping(), ilObjExerciseGUI\createSingleMemberTeamObject(), ilSurveyParticipantsGUI\createSurveyCodesObject(), ilObjExerciseGUI\createTeamObject(), ilECSMappingSettingsGUI\cSaveOverview(), ilECSMappingSettingsGUI\cUpdateSettings(), ilPageContentGUI\cut(), ilSurveyPageGUI\cutQuestion(), ilPageEditorGUI\cutSelected(), ilECSMappingSettingsGUI\dDeleteTree(), ilECSSettingsGUI\deactivate(), ilObjBlogGUI\deactivateAdmin(), ilObjectTranslationGUI\deactivateContentMultiLang(), ilObjLinkResourceGUI\deactivateLink(), ilObjHelpSettingsGUI\deactivateModule(), ilLOEditorGUI\deactivateObjectives(), ilObjComponentSettingsGUI\deactivatePlugin(), ilDidacticTemplateSettingsGUI\deactivateTemplates(), ilWikiPageGUI\deactivateWikiPageRating(), ilLPListOfSettingsGUI\deassign(), ilObjExerciseGUI\deassignMembersObject(), ilObjRoleGUI\deassignUserObject(), ilCalendarInboxGUI\declineShared(), ilDataCollectionRecordEditGUI\delete(), ilRatingCategoryGUI\delete(), ilOrgUnitTypeGUI\delete(), ilCourseArchivesGUI\delete(), ilBookingObjectGUI\delete(), ilBookingScheduleGUI\delete(), ilCalendarCategoryGUI\delete(), ilConditionHandlerGUI\delete(), ilCalendarAppointmentGUI\delete(), ilConsultationHoursGUI\delete(), ilObjPaymentSettingsGUI\deleteAddressesForPaymethodsObject(), ilCalendarCategoryGUI\deleteAppointments(), ilSurveyParticipantsGUI\deleteAppraiseesObject(), ilPCImageMapEditorGUI\deleteAreas(), ilImageMapEditorGUI\deleteAreas(), ilRegistrationSettingsGUI\deleteAssignment(), ilObjExerciseGUI\deleteAssignmentsObject(), ilUnitConfigurationGUI\deleteCategories(), ilAccountCodesGUI\deleteCodes(), ilRegistrationSettingsGUI\deleteCodes(), ilSurveyParticipantsGUI\deleteCodesObject(), ilObject2GUI\deleteConfirmedObjects(), ilSurveyConstraintsGUI\deleteConstraintsObject(), ilLPObjectStatisticsGUI\deleteData(), ilObjExerciseGUI\deleteDeliveredObject(), ilObjRoleGUI\deleteDesktopItemsObject(), ilObjMDSettingsGUI\deleteEntries(), ilCalendarAppointmentGUI\deleteExclude(), ilMemberExportGUI\deleteExportFile(), ilSCORM2004ScoGUI\deleteExportFile(), ilObjSCORM2004LearningModuleGUI\deleteExportFile(), ilObjSurveyGUI\deleteExportFileObject(), ilCustomUserFieldsGUI\deleteField(), ilDataCollectionFieldListGUI\deleteFields(), ilObjectCustomUserFieldsGUI\deleteFields(), ilAdvancedMDSettingsGUI\deleteFields(), ilFileSystemGUI\deleteFile(), ilAdvancedMDSettingsGUI\deleteFiles(), ilConsultationHoursGUI\deleteGroup(), ilObjCourseGroupingGUI\deleteGrouping(), ilObjCourseGUI\deleteInfoFilesObject(), arGUI\deleteItems(), ilBasicSkillGUI\deleteLevel(), ilObjLinkResourceGUI\deleteLinks(), ilObjAssessmentFolderGUI\deleteLogObject(), SurveyQuestionGUI\deleteMaterial(), ilObjGroupGUI\deleteMembersObject(), ilObjContentObjectGUI\deleteMenuEntry(), ilTestRandomQuestionSetConfigGUI\deleteMultipleSourcePoolDefinitionsCmd(), ilObjRepositorySettingsGUI\deleteNewItemGroup(), ilCourseObjectivesGUI\deleteObjectives(), ilLOEditorGUI\deleteObjectives(), ilRepUtilGUI\deleteObjects(), ilPCInteractiveImageGUI\deleteOverlays(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), ilPCInteractiveImageGUI\deletePopups(), ilObjPortfolioBaseGUI\deletePortfolioPages(), ilPortfolioRepositoryGUI\deletePortfolios(), ilOpenIdSettingsGUI\deleteProvider(), ilSurveyParticipantsGUI\deleteRatersObject(), ilAdvancedMDSettingsGUI\deleteRecords(), ilLDAPSettingsGUI\deleteRoleMapping(), ilObjRoleFolderGUI\deleteRoleObject(), ilLDAPSettingsGUI\deleteRules(), ilAuthShibbolethSettingsGUI\deleteRules(), ilSurveyParticipantsGUI\deleteSavedMessageObject(), ilSkillSelfEvaluationGUI\deleteSelfEvaluation(), ilSettingsTemplateGUI\deleteSettingsTemplate(), ilTestRandomQuestionSetConfigGUI\deleteSingleSourcePoolDefinitionCmd(), ilObjMediaObjectGUI\deleteSrtFilesObject(), ilContainerStartObjectsGUI\deleteStarterObject(), ilObjStyleSettingsGUI\deleteSysStyleCatAssignmentsObject(), ilObjTaxonomyGUI\deleteTaxonomy(), ilDidacticTemplateSettingsGUI\deleteTemplates(), ilLOEditorGUI\deleteTest(), ilObjContentObjectGUI\deleteTooltips(), ilObjDlBookGUI\deleteTranslation(), ilPCIIMTriggerEditorGUI\deleteTrigger(), ilUnitConfigurationGUI\deleteUnits(), ilDataCollectionRecordViewViewdefinitionGUI\deleteView(), ilObjExerciseGUI\deliverFileObject(), ilForumModeratorsGUI\detachModeratorRole(), ilObjMediaCastGUI\determinePlaytimeObject(), ilObjExerciseGUI\directSubmitObject(), ilSurveyParticipantsGUI\disinviteUserGroupObject(), ilOrgUnitSimpleImportGUI\displayImportResults(), ilOrgUnitSimpleUserImportGUI\displayImportResults(), ilECSMappingSettingsGUI\dMap(), ilECSSettingsGUI\doDelete(), ilPermissionGUI\doImportRole(), ilECSMappingSettingsGUI\dSynchronizeTree(), ilECSMappingSettingsGUI\dUpdateSettings(), ilECSMappingSettingsGUI\dUpdateTreeSettings(), ilSurveyEditorGUI\executeCopyQuestionsToPoolObject(), ilObjExternalFeedGUI\exitSave(), ilObjSCORM2004LearningModuleGUI\exportHTML(), ilObjSCORM2004LearningModuleGUI\exportHTMLOne(), ilAdvancedMDSettingsGUI\exportRecords(), ilObjSCORM2004LearningModuleGUI\exportScorm12(), ilObjSCORM2004LearningModuleGUI\exportScorm2004_3rd(), ilObjSCORM2004LearningModuleGUI\exportScorm2004_4th(), ilTable2GUI\fillFooter(), ilObjPortfolioGUI\finalize(), ilObjBlogGUI\finalize(), ilShopShoppingCartGUI\finishPaypal(), ilObjContentObjectGUI\fixTree(), ilOrgUnitStaffGUI\fromEmployeeToSuperior(), ilOrgUnitStaffGUI\fromSuperiorToEmployee(), ilLPListOfSettingsGUI\groupMaterials(), ilObjBookingPoolGUI\handleBookingSuccess(), ilMembershipRegistrationCodeUtils\handleCode(), ilWikiPageGUI\hideAdvancedMetaData(), ilSurveyParticipantsGUI\importAccessCodesActionObject(), ilSurveyParticipantsGUI\importExternalRecipientsFromFileObject(), ilSurveyParticipantsGUI\importExternalRecipientsFromTextObject(), ilExternalFeedBlockGUI\importFile(), ilBookmarkAdministrationGUI\importFile(), ilObjFolderGUI\importFileObject(), ilObjGlossaryGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObjectGUI\importFileObject(), ilObjSurveyGUI\importFileObject(), ilObjGroupGUI\importFileObject2(), ilLocalUnitConfigurationGUI\importGlobalCategories(), ilObjStyleSettingsGUI\importPageLayoutObject(), ilPersonalProfileGUI\importPersonalData(), ilAdvancedMDSettingsGUI\importRecord(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjUserFolderGUI\importUsersObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilSetupGUI\initClientDbForm(), ilSurveyEditorGUI\insertQuestionblocksObject(), ilSurveyEditorGUI\insertQuestions(), ilTestExpressPageObjectGUI\insertQuestions(), ilObjTestGUI\insertQuestionsAfterObject(), ilObjTestGUI\insertQuestionsBeforeObject(), ilSurveyEditorGUI\insertQuestionsObject(), ilObjTestGUI\insertQuestionsObject(), ilObjTestGUI\insertRandomSelectionObject(), ilSurveyParticipantsGUI\insertSavedMessageObject(), ilSetupGUI\installDatabase(), ilSurveyParticipantsGUI\inviteUserGroupObject(), ilObjSessionGUI\joinObject(), ilContainerGUI\keepObjectsInClipboardObject(), ilRegistrationGUI\leaveWaitingList(), SurveyQuestionGUI\linkChilds(), assQuestionGUI\linkChilds(), ilSurveyParticipantsGUI\mailRatersActionObject(), ilSurveyExecutionGUI\mailUserResults(), ilObjSurveyGUI\mailUserResultsObject(), ilObjLanguageExtGUI\maintainExecuteObject(), ilObjBibliographic\moveFile(), ilSurveyPageGUI\movePage(), ilObjTestGUI\moveQuestionsObject(), ilObjStyleSettingsGUI\moveUserStylesObject(), ilSurveyPageGUI\multiCopy(), ilSurveyPageGUI\multiCut(), ilObjExerciseGUI\orderAssignmentsByDeadlineObject(), ilObjStyleSheetGUI\pasteCharacteristicsObject(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardBeforeCmd(), ilObjTaxonomyGUI\pasteItems(), ilObjQuestionPoolGUI\pasteObject(), ilContainerGUI\pasteObject(), ilAssQuestionHintsGUI\performDeleteCmd(), ilObjRoleGUI\performDeleteRoleObject(), ilLocalUserGUI\performDeleteUsers(), ilObjCategoryGUI\performDeleteUsersObject(), ilObjPaymentSettingsGUI\performDeleteVatObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjCourseGUI\performRemoveFromWaitingListObject(), ilObjCourseGUI\performUnsubscribeObject(), ilObjRoleTemplateGUI\permSaveObject(), ilObjRoleGUI\permSaveObject(), ilSetup\printProxyStatus(), ilObjExercise\processUploadedFile(), ilObjLinkResourceGUI\refreshLinkCheck(), ilObjContentObjectGUI\refreshLinkCheck(), ilECSSettingsGUI\refreshParticipants(), ilObjGroupGUI\refuseApplicantsObject(), ilObjGroupGUI\refuseFromListObject(), ilObjSessionGUI\refuseFromListObject(), ilObjCourseGUI\refuseFromListObject(), ilObjGroupGUI\refuseSubscribersObject(), ilObjSessionGUI\refuseSubscribersObject(), ilObjCourseGUI\refuseSubscribersObject(), ilCalendarAppointmentGUI\register(), ilObjSessionGUI\registerObject(), ilConsultationHoursGUI\rejectBooking(), ilLPListOfSettingsGUI\releaseMaterials(), ilPageObjectGUI\releasePageLock(), ilCourseParticipantsGroupsGUI\remove(), ilWikiPageTemplateGUI\remove(), ilObjMediaPoolGUI\remove(), ilObjBlogGUI\removeContributor(), ilPDSelectedItemsBlockGUI\removeFromDeskObject(), ilObjBibliographicGUI\removeFromDeskObject(), ilContainerGUI\removeFromDeskObject(), ilObjBlogGUI\removeFromDeskObject(), ilObjForumGUI\removeFromDeskObject(), ilOrgUnitStaffGUI\removeFromEmployees(), ilOrgUnitStaffGUI\removeFromRole(), ilOrgUnitStaffGUI\removeFromSuperiors(), ilObjCourseGUI\removeFromWaitingList(), ilObjWikiGUI\removeImportantPagesObject(), ilBasicSkillGUI\removeLevelResources(), ilObjContentObjectGUI\removeLMGlossary(), ilPersonalSkillsGUI\removeMaterial(), ilObjCourseGUI\removeMembersObject(), ilRepUtilGUI\removeObjectsFromSystem(), ilWikiPageTemplateGUI\removePageTemplateFromPageAction(), ilWorkspaceAccessGUI\removePermission(), ilObjRoleFolderGUI\removeRolePermissionsObject(), ilSurveySkillGUI\removeSkillFromQuestion(), ilPersonalSkillsGUI\removeSkills(), ilPDTaggingBlockGUI\removeTagsWithoutAccess(), ilObjExerciseGUI\removeTeamMemberObject(), ilObjUserGUI\removeUserPictureObject(), ilSkillProfileGUI\removeUsers(), ilFileSystemGUI\renameFile(), ilWikiPageGUI\renamePage(), ilObjContentObjectGUI\resetNumberOfTries(), ilObjCourseGUI\resetObject(), ilObjExerciseGUI\resetPeerReviewObject(), ilObjSurveyGUI\resetTemplateObject(), ilRepUtilGUI\restoreObjects(), ilObjFileGUI\rollbackVersion(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjBookingPoolGUI\rsvInUseObject(), ilObjBookingPoolGUI\rsvNotInUseObject(), ilCalendarUserSettingsGUI\save(), ilRatingCategoryGUI\save(), ilDataCollectionFieldListGUI\save(), ilCalendarCategoryGUI\save(), ilOpenIdSettingsGUI\save(), ilDataCollectionRecordListViewdefinitionGUI\save(), ilObjCertificateSettingsGUI\save(), ilObjCalendarSettingsGUI\save(), ilBookingObjectGUI\save(), ilSkillProfileGUI\save(), arGUI\save(), ilRadiusSettingsGUI\save(), ilBookingScheduleGUI\save(), ilCASSettingsGUI\save(), ilRegistrationSettingsGUI\save(), ilAuthShibbolethSettingsGUI\save(), ilObjFileGUI\save(), ilDataCollectionTableEditGUI\save(), ilSkillTreeNodeGUI\save(), SurveyQuestionGUI\save(), ilDataCollectionRecordEditGUI\save(), ilDataCollectionFieldEditGUI\save(), ilCalendarAppointmentGUI\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(), ilRegistrationSettingsGUI\saveAssignment(), ilObjExerciseGUI\saveAssignmentObject(), ilObjExerciseGUI\saveAssignmentOrderObject(), ilSetupGUI\saveBasicSettings(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjSystemFolderGUI\saveBenchSettingsObject(), ilObjPaymentSettingsGUI\saveBillingMailObject(), ilObjPortfolioTemplateGUI\saveBlog(), ilObjPortfolioGUI\saveBlog(), ilObjExerciseGUI\saveBlogObject(), ilUnitConfigurationGUI\saveCategory(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), ilSetupGUI\saveClientIni(), ilObjExerciseGUI\saveCommentsObject(), ilSetupGUI\saveContact(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjMDSettingsGUI\saveCopyrightSettings(), ilTestRandomQuestionSetConfigGUI\saveCreateSourcePoolDefinitionFormCmd(), ilObjRepositorySettingsGUI\saveCustomIcons(), ilSetupGUI\saveDbSlave(), ilSurveyEditorGUI\saveDefineQuestionblockObject(), ilObjFileAccessSettingsGUI\saveDiskQuotaMailTemplate(), 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(), ilObjExerciseGUI\saveGradesObject(), ilObjWikiGUI\saveGradingObject(), ilConsultationHoursGUI\saveGroup(), ilObjSystemFolderGUI\saveHeaderTitleObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjContentObjectGUI\saveHelpMapping(), ilObjSystemFolderGUI\saveHTTPSObject(), ilPageObjectGUI\saveInitialOpenedContent(), ilTaggingGUI\saveInput(), ilSurveyParticipantsGUI\saveInvitationStatusObject(), ilObjPaymentSettingsGUI\saveInvoiceNumberObject(), ilObjItemGroupGUI\saveItemAssignment(), ilExportGUI\saveItemSelection(), ilObjSystemFolderGUI\saveJavaServerObject(), ilLMPageObjectGUI\saveLayout(), SurveyMatrixQuestionGUI\saveLayout(), ilBasicSkillGUI\saveLevel(), ilBasicSkillGUI\saveLevelResource(), ilObjLinkResourceGUI\saveLinkCheck(), ilObjContentObjectGUI\saveLinkCheck(), ilAssQuestionHintsGUI\saveListOrderCmd(), ilAuthLoginPageEditorGUI\saveLoginInfo(), ilObjUserFolderGUI\saveLoginnameSettingsObject(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilLDAPSettingsGUI\saveMapping(), ilMarkSchemaGUI\saveMarks(), ilObjSessionGUI\saveMaterialsObject(), ilObjectCustomUserFieldsGUI\saveMember(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilObjRepositorySettingsGUI\saveModules(), ilObjExerciseGUI\saveMultiFeedbackObject(), ilObjUserFolderGUI\saveNewAccountMailObject(), ilObjLanguageExtGUI\saveNewEntryObject(), ilObjRepositorySettingsGUI\saveNewItemGroup(), ilObjRepositorySettingsGUI\saveNewItemGroupOrder(), ilObjCourseGUI\saveNotificationObject(), ilObjGroupGUI\saveNotificationObject(), ilObjRecoveryFolderGUI\saveObject(), ilObjAdvancedEditingGUI\saveObject(), ilObjSurveyAdministrationGUI\saveObject(), ilObjAssessmentFolderGUI\saveObject(), ilObjMailGUI\saveObject(), ilObjTypeDefinitionGUI\saveObject(), ilObjRoleTemplateGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjUserGUI\saveObject(), ilObjGroupGUI\saveObject(), ilObjMediaObjectGUI\saveObject(), ilObjRoleGUI\saveObject(), ilObjRoleFolderGUI\saveObject(), ilLOEditorGUI\saveObjectiveCreation(), ilConditionHandlerGUI\saveObligatoryList(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilSurveyEditorGUI\saveObligatoryObject(), ilObjSurveyQuestionPoolGUI\saveObligatoryObject(), ilConditionHandlerGUI\saveObligatorySettings(), ilMailOptionsGUI\saveOptions(), ilUnitConfigurationGUI\saveOrder(), ilSkillTreeNodeGUI\saveOrder(), ilObjWikiGUI\saveOrderingAndIndentObject(), ilObjMediaCastGUI\saveOrderObject(), ilObjPortfolioBaseGUI\savePage(), ilContainerGUI\savePageContentObject(), ilStructureObjectGUI\savePageLayout(), ilObjContentObjectGUI\savePageLayout(), ilObjStyleSettingsGUI\savePageLayoutTypesObject(), ilPersonalSettingsGUI\savePassword(), ilWorkspaceAccessGUI\savePasswordForm(), ilContainerGUI\savePasswordObject(), ilObjPaymentSettingsGUI\savePayMethodsObject(), ilObjPaymentSettingsGUI\savePaypalSettingsObject(), ilPermissionGUI\savePermissions(), ilPersonalProfileGUI\savePersonalData(), ilPCInteractiveImageGUI\savePopups(), ilObjPortfolioBaseGUI\savePortfolioPagesOrdering(), ilObjFileAccessSettingsGUI\savePreviewSettings(), ilPersonalProfileGUI\saveProfile(), ilInfoScreenGUI\saveProgress(), ilObjFileBasedLMGUI\saveProperties(), ilObjContentObjectGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjGlossaryGUI\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(), ilObjStyleSettingsGUI\saveScopeObject(), ilObjAuthSettingsGUI\saveScriptObject(), ilCalendarCategoryGUI\saveSelection(), ilPersonalSkillsGUI\saveSelfEvaluation(), ilConsultationHoursGUI\saveSequence(), ilObjSCORM2004LearningModuleGUI\saveSequencing(), ilMembershipAdministrationGUI\saveSettings(), ilObjWebResourceAdministrationGUI\saveSettings(), ilObjExerciseAdministrationGUI\saveSettings(), ilLPListOfSettingsGUI\saveSettings(), ilObjMediaObjectsSettingsGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilECSParticipantSettingsGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilLOEditorGUI\saveSettings(), ilObjSkillManagementGUI\saveSettings(), ilObjRepositorySettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilObjAssessmentFolderGUI\saveSettingsObject(), ilObjUserTrackingGUI\saveSettingsObject(), ilObjSurveyAdministrationGUI\saveSettingsObject(), ilObjRoleFolderGUI\saveSettingsObject(), ilObjWikiGUI\saveSettingsObject(), ilObjMediaCastGUI\saveSettingsObject(), ilSettingsTemplateGUI\saveSettingsTemplate(), assImagemapQuestionGUI\saveShape(), ilTestSkillQuestionAssignmentsGUI\saveSkillPointsCmd(), ilTestSkillLevelThresholdsGUI\saveSkillThresholdsCmd(), ilObjAuthSettingsGUI\saveSOAPObject(), ilCourseObjectivesGUI\saveSorting(), ilShopTopicsGUI\saveSorting(), ilObjTaxonomyGUI\saveSorting(), ilLOEditorGUI\saveSorting(), ilObjLinkResourceGUI\saveSorting(), ilContainerStartObjectsGUI\saveSortingObject(), ilContainerGUI\saveSortingObject(), ilTestRandomQuestionSetConfigGUI\saveSourcePoolDefinitionListCmd(), ilObjExerciseGUI\saveStatusObject(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), ilObjStyleSettingsGUI\saveStyleCatAssignmentObject(), ilObjContentObjectGUI\saveStyleSettings(), ilObjPortfolioBaseGUI\saveStyleSettings(), ilObjSCORM2004LearningModuleGUI\saveStyleSettings(), ilObjGlossaryGUI\saveStyleSettings(), ilObjBlogGUI\saveStyleSettings(), ilObjStyleSettingsGUI\saveStyleSettingsObject(), ilObjWikiGUI\saveStyleSettingsObject(), ilContainerGUI\saveStyleSettingsObject(), ilLDAPSettingsGUI\saveSyncronizationSettings(), ilPCTabsGUI\saveTabs(), ilObjAdvancedEditingGUI\saveTags(), ilInfoScreenGUI\saveTags(), ilObjTaxonomyGUI\saveTaxNode(), ilWikiPageTemplateGUI\saveTemplateSettings(), ilObjGlossaryGUI\saveTerm(), ilLOEditorGUI\saveTest(), ilObjForumGUI\saveThreadSortingObject(), ilSurveySkillThresholdsGUI\saveThresholds(), ilPortfolioRepositoryGUI\saveTitles(), ilObjContentObjectGUI\saveTooltips(), ilShopTopicsGUI\saveTopic(), ilShopTopicsGUI\saveTopicsSettings(), ilTranslationGUI\saveTranslations(), ilObjectTranslationGUI\saveTranslations(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilUnitConfigurationGUI\saveUnit(), ilObjFileGUI\saveUnzip(), ilObjFileAccessSettingsGUI\saveUploadSettings(), ilObjSystemFolderGUI\saveWebServicesObject(), ilObjPersonalDesktopSettingsGUI\saveWsp(), ilObjContentObjectGUI\selectLMGlossary(), ilPersonalSkillsGUI\selectMaterial(), ilSurveySkillGUI\selectSkillForQuestion(), ilSurveyParticipantsGUI\sendCodesMailObject(), ilObjExerciseGUI\sendMembersObject(), ilPCTableGUI\setAlignment(), ilObjWikiGUI\setAsStartPageObject(), ilObjAuthSettingsGUI\setAuthModeObject(), ilSurveyParticipantsGUI\setCodeLanguageObject(), ilPortfolioRepositoryGUI\setDefault(), ilImageMapEditorGUI\setHighlight(), ilObjCourseGUI\setLPSyncObject(), ilObjHelpSettingsGUI\setMode(), ilObjExerciseGUI\setSelectedBlogObject(), ilObjExerciseGUI\setSelectedPortfolioObject(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilObjLanguageExtGUI\settingsObject(), ilPCTableGUI\setWidths(), ilCalendarCategoryGUI\shareAssign(), ilCalendarCategoryGUI\shareAssignRoles(), ilCalendarCategoryGUI\shareDeassign(), ilStartUpGUI\showLogin(), ilObjPollGUI\subscribe(), assQuestionGUI\suggestedsolution(), ilAuthLoginPageEditorGUI\switchIPE(), ilAuthLoginPageEditorGUI\switchRTE(), ilDidacticTemplateGUI\switchTemplate(), SurveyQuestionGUI\sync(), SurveyQuestionGUI\syncCopies(), ilCalendarCategoryGUI\synchroniseCalendar(), ilObjTestGUI\timingObject(), ilObjStyleSettingsGUI\toggleGlobalDefaultObject(), ilObjStyleSettingsGUI\toggleGlobalFixedObject(), ilWikiPageGUI\unblockWikiPage(), ilSurveyEditorGUI\unfoldQuestionblockObject(), ilWikiPageGUI\unhideAdvancedMetaData(), ilShopShoppingCartGUI\unlockPAYPALObjectsInShoppingCart(), ilObjContentObjectGUI\unlockQuestion(), ilCalendarAppointmentGUI\unregister(), ilObjSessionGUI\unregisterObject(), ilPortfolioRepositoryGUI\unsetDefault(), ilCalendarCategoryGUI\unshare(), ilObjPollGUI\unsubscribe(), ilObjGroupGUI\unsubscribeObject(), ilFileSystemGUI\unzipFile(), ilFMSettingsGUI\update(), ilExtIdGUI\update(), ilCronManagerGUI\update(), ilObjBibliographicAdminLibrariesGUI\update(), ilRatingCategoryGUI\update(), ilOrgUnitTypeGUI\update(), ilBookingScheduleGUI\update(), ilObjectActivationGUI\update(), ilBookingObjectGUI\update(), ilObjCourseGroupingGUI\update(), ilPCDataTableGUI\update(), ilPCInteractiveImageGUI\update(), ilCalendarCategoryGUI\update(), ilSkillTreeNodeGUI\update(), ilCustomUserFieldsGUI\update(), ilObjFileGUI\update(), ilCalendarAppointmentGUI\update(), ilADTBasedObjectGUI\updateAction(), ilWikiPageGUI\updateAdvancedMetaData(), ilObjOrgUnitGUI\updateAdvancedSettings(), ilOrgUnitTypeGUI\updateAMD(), ilMDEditorGUI\updateAnnotation(), ilObjUserFolderGUI\updateAppliedUsersObject(), ilImageMapEditorGUI\updateAreas(), ilPCImageMapEditorGUI\updateAreas(), ilObjExerciseGUI\updateAssignmentObject(), ilObjExerciseGUI\updateAssignmentTextObject(), ilObjAuthSettingsGUI\updateAuthModeDeterminationObject(), ilObjAuthSettingsGUI\updateAuthRolesObject(), ilSetupGUI\updateBasicSettings(), ilMDEditorGUI\updateClassification(), ilSurveyParticipantsGUI\updateCodesObject(), ilECSSettingsGUI\updateCommunities(), ilConditionHandlerGUI\updateCondition(), ilObjCourseGUI\updateCourseIconsObject(), ilOrgUnitTypeGUI\updateCustomIcons(), ilBlogPostingGUI\updateDate(), ilMDEditorGUI\updateEducational(), ilObjMDSettingsGUI\updateEntry(), 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(), 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(), ilObjCourseGUI\updateMemberObject(), ilObjSessionGUI\updateMembersObject(), ilObjGroupGUI\updateMembersObject(), ilObjCourseGUI\updateMembersObject(), ilObjContentObjectGUI\updateMenuEntry(), ilMDEditorGUI\updateMetaMetaData(), ilConsultationHoursGUI\updateMulti(), ilObjRepositorySettingsGUI\updateNewItemGroup(), ilObjRoleTemplateGUI\updateObject(), ilContainerReferenceGUI\updateObject(), ilRemoteObjectBaseGUI\updateObject(), ilObjRootFolderGUI\updateObject(), ilObjSurveyQuestionPoolGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjRoleGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjSessionGUI\updateObject(), ilObjQuestionPoolGUI\updateObject(), ilObjUserGUI\updateObjectOld(), ilRatingCategoryGUI\updateOrder(), ilObjCourseGUI\updateParticipantsStatus(), ilObjComponentSettingsGUI\updatePlugin(), ilOpenIdSettingsGUI\updateProvider(), 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(), ilObjOrgUnitGUI\updateSettings(), ilObjTaxonomyGUI\updateSettings(), ilConsultationHoursGUI\updateSettings(), ilObjSearchSettingsGUI\updateSettingsObject(), ilSettingsTemplateGUI\updateSettingsTemplate(), ilSkillTemplateReferenceGUI\updateSkillTemplateReference(), ilObjPaymentSettingsGUI\updateStatisticObject(), ilObjGroupGUI\updateStatusObject(), ilRegistrationGUI\updateSubscriptionRequest(), ilAdvancedMDSettingsGUI\updateSubstitutions(), ilObjCategoryGUI\updateTaxonomySettingsObject(), ilMDEditorGUI\updateTechnical(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilObjForumGUI\updateThreadObject(), ilCourseContentGUI\updateTimings(), ilBlogPostingGUI\updateTitle(), ilContainerReferenceGUI\updateTitleObject(), ilLPListOfSettingsGUI\updateTLT(), ilObjectServiceSettingsGUI\updateToolSettings(), ilPCIIMTriggerEditorGUI\updateTrigger(), ilLPListOfObjectsGUI\updateUser(), ilCourseContentGUI\updateUserTimings(), ilCalendarCategoryGUI\uploadAppointments(), ilFileSystemGUI\uploadFile(), ilObjHelpSettingsGUI\uploadHelpFile(), ilObjLanguageExtGUI\uploadObject(), ilPCInteractiveImageGUI\uploadOverlayImages(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), ilContainerGUI\useNewEditorObject(), and ilSurveySkillDeterminationGUI\writeSkills().

{
global $tpl;
$tpl->setMessage("success", $a_info, $a_keep);
}

+ Here is the caller graph for this function:

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

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

References $_COOKIE, and IL_COOKIE_PATH.

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

{
/*
if(!(bool)$a_set_cookie_invalid) $expire = IL_COOKIE_EXPIRE;
else $expire = time() - (365*24*60*60);
*/
// Temporary fix for feed.php
if(!(bool)$a_set_cookie_invalid) $expire = 0;
else $expire = time() - (365*24*60*60);
// setcookie() supports 5th parameter
// only for php version 5.2.0 and above
if( version_compare(PHP_VERSION, '5.2.0', '>=') )
{
// PHP version >= 5.2.0
setcookie( $a_cookie_name, $a_cookie_value, $expire,
IL_COOKIE_PATH, IL_COOKIE_DOMAIN, IL_COOKIE_SECURE, IL_COOKIE_HTTPONLY
);
}
else
{
// PHP version < 5.2.0
setcookie( $a_cookie_name, $a_cookie_value, $expire,
IL_COOKIE_PATH, IL_COOKIE_DOMAIN, IL_COOKIE_SECURE
);
}
if((bool)$a_also_set_super_global) $_COOKIE[$a_cookie_name] = $a_cookie_value;
}

+ Here is the caller graph for this function:

static ilUtil::setPathStr (   $a_path)
static

??? public

Parameters
string

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

{
if ("" != $a_path && "/" != substr($a_path, -1))
{
$a_path .= "/";
//$a_path = substr($a_path,1);
}
//return getcwd().$a_path;
return $a_path;
}
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 1450 of file class.ilUtil.php.

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

Referenced by ilObject\_writeDescription(), ilObject\create(), ilBookmarkAdministrationGUI\delete(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilNewsForContextTableGUI\fillRow(), ilLDAPRoleMappingTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilHACPExplorer\formatObject(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilAICCExplorer\formatObject(), ilWorkspaceExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilSCORMExplorer\formatObject(), ilExplorer\formatObject(), ilContainer\getCompleteDescriptions(), ilObjLinkResourceListGUI\getDescription(), ilPDNotesBlockGUI\getListRowData(), ilMailNotification\getObjectTitle(), ilCalendarEntry\getPresentationTitle(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilLocator(), ilObjWikiGUI\initSettingsForm(), ilWikiPageTemplateGUI\listTemplates(), ilChartDataSpider\parseGlobalOptions(), ilMainMenuGUI\renderEntry(), ilBenchmark\save(), ilObjExerciseGUI\saveCommentForLearnersObject(), ilObject\setDescription(), ilObject\setTitle(), and ilGlossaryDefinition\shortenShortText().

{
include_once("./Services/Utilities/classes/class.ilStr.php");
if (ilStr::strLen($a_str) > $a_len)
{
if ($a_next_blank)
{
$len = ilStr::strPos($a_str, " ", $a_len);
}
else
{
$len = $a_len;
}
// BEGIN WebDAV
// - Shorten names in the middle, before the filename extension
// Workaround for Windows WebDAV Client:
// Use the unicode ellipsis symbol for shortening instead of
// three full stop characters.
if ($a_keep_extension)
{
$p = strrpos($a_str, '.'); // this messes up normal shortening, see bug #6190
}
if ($p === false || $p == 0 || strlen($a_str) - $p > $a_len)
{
$a_str = ilStr::subStr($a_str,0,$len);
if ($a_dots)
{
$a_str .= "\xe2\x80\xa6"; // UTF-8 encoding for Unicode ellipsis character.
}
}
else
{
if ($a_dots)
{
$a_str = ilStr::subStr($a_str,0,$len - (strlen($a_str) - $p + 1))."\xe2\x80\xa6".substr($a_str, $p);
}
else
{
$a_str = ilStr::subStr($a_str,0,$len - (strlen($a_str) - $p + 1)).substr($a_str, $p);
}
}
}
return $a_str;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

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

{
include_once("./Services/Utilities/classes/class.ilStr.php");
$str_arr = explode(" ", $a_str);
for ($i = 0; $i < count($str_arr); $i++)
{
if (ilStr::strLen($str_arr[$i]) > $a_len)
{
$str_arr[$i] = ilStr::subStr($str_arr[$i], 0, $a_len);
if ($a_dots)
{
$str_arr[$i].= "...";
}
}
}
return implode($str_arr, " ");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

{
global $array_sortby,$array_sortorder;
if(!isset($array_sortby))
{
// occured in: setup -> new client -> install languages -> sorting of languages
$array_sortby = 0;
}
// this comparison should give optimal results if
// locale is provided and mb string functions are supported
if ($array_sortorder == "asc")
{
return ilStr::strCmp($a[$array_sortby], $b[$array_sortby]);
}
if ($array_sortorder == "desc")
{
return !ilStr::strCmp($a[$array_sortby], $b[$array_sortby]);
return strcoll(ilStr::strToUpper($b[$array_sortby]), ilStr::strToUpper($a[$array_sortby]));
}
}

+ Here is the call graph for this function:

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

{
global $array_sortby,$array_sortorder;
if ($array_sortorder == "asc")
{
return $a["$array_sortby"] > $b["$array_sortby"];
}
if ($array_sortorder == "desc")
{
return $a["$array_sortby"] < $b["$array_sortby"];
}
}
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 3334 of file class.ilUtil.php.

References stableSortArray().

Referenced by ilBenchmarkTableGUI\__construct(), ilTaxonomyTableGUI\__construct(), ilSkillCatTableGUI\__construct(), ilContainerSessionsContentGUI\__showMaterials(), ilCourseObjectiveMaterials\_getAssignableMaterials(), ilExport\_getLastExportFileDate(), ilExport\_getLastExportFileInformation(), ilNewsItem\_getNewsItemsOfUser(), ilTemplate\addILIASFooter(), ilCalendarSchedule\calculate(), ilColumnGUI\determineBlocks(), ilLMTracker\determineProgressStatus(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\exportData(), ilObjExercise\exportGradesExcel(), ilObjCourseGUI\fetchPrintMemberData(), ilObjCourseGUI\fetchPrintSubscriberData(), ilPollBlockGUI\fillRow(), ilExAssignmentListTextTableGUI\fillRow(), ilTaxonomyNode\fixOrderNumbers(), ilDataLoader\generateCourses(), ilExAssignment\getAdoptableTeamAssignments(), ilNewsItem\getAggregatedChildNewsData(), ilNewsItem\getAggregatedNewsData(), ilObjSurvey\getAllRelations(), ilItemGroupItems\getAssignableItems(), ilCalendarSelectionBlockGUI\getCalendars(), ilShoppingCartTableGUI\getCartHTML(), ilPersonalSkillExplorerGUI\getChildsOfNode(), ilModulesTableGUI\getComponents(), ilPortfolioPageGUI\getCoursesOfUser(), ilBenchmarkTableGUI\getDataByFirstTable(), ilSessionMaterialsTableGUI\getDataFromDb(), ilFSStorageExercise\getFiles(), ilObjectDefinition\getGroupedRepositoryObjectTypes(), ilNewItemGroupTableGUI\getGroups(), ilDataCollectionNReferenceField\getHTML(), ilTable2GUI\getHTML(), ilTestManScoringParticipantsTableGUI\getInternalyOrderedDataValues(), ilPCImageMapTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilPCIIMTriggerTableGUI\getItems(), ilObjBlogGUI\getKeywords(), ilBookingReservation\getListByDate(), ilItemGroupItemsTableGUI\getMaterials(), ilPageObject\getRecentChanges(), ilObjMediaCast\getSortedItemsArray(), ilObjCourse\getSubItems(), ilObjectDefinition\getSubObjects(), ilObjectDefinition\getSubObjectsRecursively(), ilTagging\getTagsForUser(), ilObjectActivation\getTimingsAdministrationItems(), ilObjectGUI\initDidacticTemplate(), ilPCQuestionGUI\insert(), ilObjectListGUI\insertPreconditions(), ilPCParagraph\linkTermsInDom(), ilObjAssessmentFolderGUI\logsObject(), ilObjGroupGUI\membersGalleryObject(), ilObjCourseGUI\membersGalleryObject(), ilObjectAddNewItemGUI\parsePersonalWorkspace(), ilObjectAddNewItemGUI\parseRepository(), ilObjRoleTemplateGUI\permObject(), ilObjRoleGUI\permObject(), ilTreeExplorerGUI\preloadChilds(), ilObjStyleSettings\read(), ilContainerContentGUI\renderPageEmbeddedBlocks(), ilSkillTreeNode\saveChildsOrder(), ilObjStyleSheet\saveMediaQueryOrder(), ilObjWiki\saveOrderingAndIndentation(), ilWikiPageGUI\searchWikiLinkAC(), ilObjExerciseGUI\showParticipantObject(), ilLMPresentationGUI\showPrintView(), ilTableGUI\sortData(), ilContainerSorting\sortItems(), ilLinkResourceItems\sortItems(), ilExplorer\sortNodes(), ilContainerSorting\sortOrderDefault(), ilCourseObjectiveQuestionAssignmentTableGUI\sortQuestions(), ilShopResultPresentationGUI\sortResult(), ilContainerSorting\sortSubItems(), ilAdvancedMDSettingsGUI\updateSubstitutions(), and ilObjTypeDefinitionGUI\viewObject().

{
include_once("./Services/Utilities/classes/class.ilStr.php");
// BEGIN WebDAV: Provide a 'stable' sort algorithm
if (! $a_keep_keys) {
return self::stableSortArray($array,$a_array_sortby,$a_array_sortorder,$a_numeric,$a_keep_keys);
}
// END WebDAV Provide a 'stable' sort algorithm
global $array_sortby,$array_sortorder;
$array_sortby = $a_array_sortby;
if ($a_array_sortorder == "desc")
{
$array_sortorder = "desc";
}
else
{
$array_sortorder = "asc";
}
if($a_numeric)
{
if ($a_keep_keys)
{
uasort($array, array("ilUtil", "sort_func_numeric"));
}
else
{
usort($array, array("ilUtil", "sort_func_numeric"));
}
}
else
{
if ($a_keep_keys)
{
uasort($array, array("ilUtil", "sort_func"));
}
else
{
usort($array, array("ilUtil", "sort_func"));
}
}
//usort($array,"ilUtil::sort_func");
return $array;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

References mergesort().

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

{
global $array_sortby,$array_sortorder;
$array_sortby = $a_array_sortby;
if ($a_array_sortorder == "desc")
{
$array_sortorder = "desc";
}
else
{
$array_sortorder = "asc";
}
// Create a copy of the array values for sorting
$sort_array = array_values($array);
if($a_numeric)
{
ilUtil::mergesort($sort_array, array("ilUtil", "sort_func_numeric"));
}
else
{
ilUtil::mergesort($sort_array, array("ilUtil", "sort_func"));
}
return $sort_array;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::stripOnlySlashes (   $a_str)
static

strip slashes if magic qoutes is enabled

Parameters
stringstring

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

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

{
if (ini_get("magic_quotes_gpc"))
{
$a_str = stripslashes($a_str);
}
return $a_str;
}

+ Here is the caller graph for this function:

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

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

{
//$a_str = strip_tags($a_str, $a_allow);
$negativestr = "a,abbr,acronym,address,applet,area,b,base,basefont,".
"bdo,big,blockquote,body,br,button,caption,center,cite,code,col,".
"colgroup,dd,del,dfn,dir,div,dl,dt,em,fieldset,font,form,frame,".
"frameset,h1,h2,h3,h4,h5,h6,head,hr,html,i,iframe,img,input,ins,isindex,kbd,".
"label,legend,li,link,map,menu,meta,noframes,noscript,object,ol,".
"optgroup,option,p,param,q,s,samp,script,select,small,span,".
"strike,strong,style,sub,sup,table,tbody,td,textarea,tfoot,th,thead,".
"title,tr,tt,u,ul,var";
$a_allow = strtolower ($a_allow);
$negatives = explode(",",$negativestr);
$outer_old_str = "";
while($outer_old_str != $a_str)
{
$outer_old_str = $a_str;
foreach ($negatives as $item)
{
$pos = strpos($a_allow, "<$item>");
// remove complete tag, if not allowed
if ($pos === false)
{
$old_str = "";
while($old_str != $a_str)
{
$old_str = $a_str;
$a_str = preg_replace("/<\/?\s*$item(\/?)\s*>/i", "", $a_str);
$a_str = preg_replace("/<\/?\s*$item(\/?)\s+([^>]*)>/i", "", $a_str);
}
}
}
}
if ($a_rm_js)
{
// remove all attributes if an "on..." attribute is given
$a_str = preg_replace("/<\s*\w*(\/?)(\s+[^>]*)?(\s+on[^>]*)>/i", "", $a_str);
// remove all attributes if a "javascript" is within tag
$a_str = preg_replace("/<\s*\w*(\/?)\s+[^>]*javascript[^>]*>/i", "", $a_str);
// remove all attributes if an "expression" is within tag
// (IE allows something like <b style='width:expression(alert(1))'>test</b>)
$a_str = preg_replace("/<\s*\w*(\/?)\s+[^>]*expression[^>]*>/i", "", $a_str);
}
return $a_str;
}

+ Here is the caller graph for this function:

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

References secureString().

Referenced by ilShopTopicsGUI\__construct(), ilUserSearchFilter\__parseQueryString(), ilSearchGUI\__parseQueryString(), ilRepositorySearchGUI\__parseQueryString(), ilAdvancedSearchGUI\__performContentSearch(), ilAdvancedSearchGUI\__performEntitySearch(), ilAdvancedSearchGUI\__performGeneralSearch(), ilAdvancedSearchGUI\__performKeywordSearch(), ilAdvancedSearchGUI\__performLifecycleSearch(), ilAdvancedSearchGUI\__performTaxonSearch(), ilAdvancedSearchGUI\__performTitleSearch(), ilObjiLincCourseGUI\__search(), ilPaymentTrusteeGUI\__search(), ilPaymentStatisticGUI\__search(), ilObjPaymentSettingsGUI\__search(), ilObjPaymentSettingsGUI\__searchSP(), ilObjUserGUI\_goto(), ilPCParagraph\_input2xml(), ilObjFile\_lookupFileName(), ilObjFileAccess\_lookupVersion(), ilChatroomBanTask\active(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilPageEditorGUI\addChangeComment(), ilObjGlossaryGUI\addDefinition(), ilObjGlossaryGUI\addTerm(), ilObjContentObjectGUI\addTooltip(), ilPCInteractiveImage\addTriggerArea(), ilObjPaymentSettingsGUI\addVendorObject(), ilPageEditorGUI\assignCharacteristic(), ilObjRole\assignData(), ilSkillProfileGUI\assignUser(), ilObjRoleGUI\changeExistingObjectsObject(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilSetup\checkDataDirSetup(), ilMailQuickFilterInputGUI\checkInput(), ilFormulaInputGUI\checkInput(), ilNonEditableValueGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilGloAdvColSortInputGUI\checkInput(), ilBirthdayInputGUI\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(), ilMailAddressbookGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilExplorerSelectInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilCopyrightInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), ilTRBLBorderStyleInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilCheckboxInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilLinkInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilDurationInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilObjLinkResourceGUI\checkLinkInput(), ilSetup\checkLogSetup(), ilSetup\checkToolsSetup(), ilNestedSetXML\clean(), 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(), ilObjExerciseGUI\deleteAssignmentsObject(), ilMailAttachmentGUI\deleteAttachments(), ilFileSystemGUI\deleteFile(), ilPCInteractiveImageGUI\deleteOverlays(), ilInitialisation\determineClient(), ilChatroomUploadFileTask\displayLinkToUploadedFile(), ilObjSurveyGUI\doAutoCompleteObject(), ilFileSystemGUI\downloadFile(), ilObjLanguageExtGUI\downloadObject(), ilPCParagraphGUI\edit(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilObjAuthSettingsGUI\editSOAPObject(), ilChatroomClearTask\executeDefault(), ilChatroomPostMessageTask\executeDefault(), ilObjContentObjectGUI\exportHTML(), ilFileSystemGUI\extCommand(), ilWikiSearchBlockGUI\fillDataSection(), ilExportIDTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilPaymentCouponGUI\generateCodes(), ilObjTermsOfServiceGUI\getAcceptedContentAsynch(), ilPurchaseBMFGUI\getCreditCard(), ilPurchaseBMFGUI\getDebitEntry(), ilCertificateGUI\getFormFieldsFromPOST(), ilObjUser\getFullname(), ilUserLPTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilSCORM2004TrackingItemsTableGUI\getItems(), ilSCORMTrackingItemsTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), assAnswerCloze\getNumericValueFromText(), ilNumberInputGUI\getPostValueForComparison(), assTextQuestion\getSolutionSubmit(), assClozeTest\getSolutionSubmit(), ilUserTableGUI\getUserIdsForFilter(), ilClozeGapInputBuilderGUI\getValue(), ilClozeGapInputBuilderGUI\getValueCombination(), ilPCParagraph\handleAjaxContent(), ilObjSessionGUI\handleFileUpload(), ilObjFileGUI\handleFileUpload(), ilObjForumGUI\handleFormInput(), ilADTDateSearchUtil\handleTextInputPost(), ilPaymentCouponGUI\importCodes(), ilPCTable\importHtml(), ilInitialisation\initLanguage(), ilLuceneUserSearchGUI\initUserSearchCache(), ilLuceneSearchGUI\initUserSearchCache(), ilSearchGUI\initUserSearchCache(), ilAdvancedSearchGUI\initUserSearchCache(), ilMDEditorGUI\keywordAutocomplete(), ilBlogPostingGUI\keywordAutocomplete(), ilFileSystemGUI\listFiles(), ilCalendarAppointmentGUI\load(), ilObjSessionGUI\load(), ilObjGroupGUI\load(), ilECSUser\loadFromGET(), ilLDAPRoleGroupMappingSettings\loadFromPost(), ilECSSettingsGUI\loadFromPost(), ilCalendarAppointmentGUI\loadNotificationRecipients(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilRecurrenceInputGUI\loadRecurrence(), ilCalendarAppointmentGUI\loadRecurrenceSettings(), ilObjSessionGUI\loadRecurrenceSettings(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), ilAuthContainerSOAP\loginObserver(), ilMailSearchGUI\lookupRecipientAsync(), ilMailFormGUI\lookupRecipientAsync(), ilObjLanguageExtGUI\maintainExecuteObject(), ilStartUpGUI\migrateAccount(), ilCSVReader\open(), assQuestionGUI\outChapterSelector(), assQuestionGUI\outPageSelector(), ilShopAdvancedSearchGUI\parseQueryString(), ilPaymentObjectGUI\performAddPrice(), ilObjPaymentSettingsGUI\performAddPriceObject(), ilMailFolderGUI\performAddSubFolder(), ilMailingListsGUI\performDelete(), ilMailingListsGUI\performDeleteMembers(), ilMailFolderGUI\performRenameSubFolder(), ilPaymentTrusteeGUI\performSearch(), ilShopGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilPaymentStatisticGUI\performSearch(), ilObjWikiGUI\performSearchObject(), ilObjPaymentSettingsGUI\performSearchSPObject(), 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(), ilShopController\redirect(), ilLuceneUserSearchGUI\remoteSearch(), ilLuceneSearchGUI\remoteSearch(), ilAdvancedSearchGUI\remoteSearch(), ilSearchGUI\remoteSearch(), ilLuceneAdvancedSearchGUI\remoteSearch(), ilFileSystemGUI\renameFile(), ilFileSystemGUI\renameFileForm(), ilTable2GUI\restoreTemplate(), 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(), ilMailingListsGUI\saveAssignmentForm(), ilObjSystemFolderGUI\saveBenchSettingsObject(), ilPaymentCouponGUI\saveCodeForm(), ilObjExerciseGUI\saveCommentForLearnersObject(), ilObjExerciseGUI\saveCommentsObject(), ilPaymentCouponGUI\saveCouponForm(), ilDAVCronDiskQuota\saveCustomSettings(), ilCronDeleteInactiveUserAccounts\saveCustomSettings(), ilGlossaryTermGUI\saveDefinition(), ilObjFileAccessSettingsGUI\saveDiskQuotaMailTemplate(), ilObjFileAccessSettingsGUI\saveDownloadingSettings(), ilObjMDSettingsGUI\saveEntry(), ilObjContentObjectGUI\saveExportIds(), ilObjTestSettingsGeneralGUI\saveGeneralProperties(), ilObjExerciseGUI\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(), ilObjGroupGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilMailOptionsGUI\saveOptions(), ilContainerGUI\savePageContentObject(), ilStructureObjectGUI\savePageLayout(), ilObjContentObjectGUI\savePageLayout(), ilPersonalSettingsGUI\savePassword(), ilObjPaymentSettingsGUI\savePaypalSettingsObject(), ilPersonalProfileGUI\savePersonalData(), ilObjPortfolioBaseGUI\savePortfolioPagesOrdering(), ilPersonalProfileGUI\saveProfile(), ilPCFileListGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjSurveyGUI\savePropertiesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilRatingGUI\saveRating(), ilObjTaggingSettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjAssessmentFolderGUI\saveSettingsObject(), ilObjTaxonomyGUI\saveSorting(), ilObjExerciseGUI\saveStatusObject(), ilObjContentObjectGUI\saveStyleSettings(), ilObjPortfolioBaseGUI\saveStyleSettings(), ilObjSCORM2004LearningModuleGUI\saveStyleSettings(), ilObjGlossaryGUI\saveStyleSettings(), ilObjBlogGUI\saveStyleSettings(), ilObjWikiGUI\saveStyleSettingsObject(), ilContainerGUI\saveStyleSettingsObject(), ilLDAPSettingsGUI\saveSyncronizationSettings(), ilObjContentObjectGUI\saveTooltips(), ilShopTopicsGUI\saveTopic(), ilTranslationGUI\saveTranslations(), ilObjectTranslationGUI\saveTranslations(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), SurveyTextQuestion\saveUserInput(), ilObjFileAccessSettingsGUI\saveWebDAVSettings(), assClozeTest\saveWorkingData(), ilObjiLincCourseGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilObjExerciseGUI\selectAssignmentObject(), ilObjExerciseGUI\selectParticipantObject(), ilPCTableGUI\setAlignment(), ilImageMapEditorGUI\setHighlight(), ilObjHelpSettingsGUI\setMode(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilPCTableGUI\setProperties(), ilLDAPRoleGroupMappingSetting\setRoleByName(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilPCTableGUI\setWidths(), ilCalendarCategoryGUI\sharePerformSearch(), ilPaymentCouponGUI\showCodeImport(), ilPaymentCouponGUI\showCodes(), ilPaymentCouponGUI\showCoupons(), ilRegistrationGUI\showCustomFields(), ilPaymentCouponGUI\showObjects(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\showTrackingItemsBySco(), ilObjSCORM2004LearningModuleGUI\showTrackingItemsBySco(), ilObjTaggingSettingsGUI\showUsers(), stripSlashesArray(), stripSlashesRecursive(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), ilPageObjectGUI\switchToLanguage(), ilSetup\testLatex(), ilFileSystemGUI\unzipFile(), ilPCQuestionOverviewGUI\update(), ilPCSourceCodeGUI\update(), ilPCResourcesGUI\update(), ilPCInteractiveImageGUI\update(), ilPCTabsGUI\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(), ilObjCourseGUI\updateObject(), ilObjUserGUI\updateObjectOld(), ilObjExerciseGUI\updatePeerReviewCommentsObject(), ilObjExerciseGUI\updatePeerReviewObject(), ilObjExerciseGUI\updatePeerReviewTextObject(), ilPaymentObjectGUI\updatePrice(), ilObjPaymentSettingsGUI\updatePriceObject(), ilSCORM2004ScoGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), ilMDEditorGUI\updateQuickEdit_scorm(), ilMDEditorGUI\updateQuickEdit_scorm_propagate(), ilAdvancedMDSettingsGUI\updateRecords(), ilMDEditorGUI\updateRelation(), ilMDEditorGUI\updateRights(), ilChatroomSmileyTask\updateSmiliesObject(), ilRegistrationGUI\updateSubscriptionRequest(), ilMDEditorGUI\updateTechnical(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilFileSystemGUI\uploadFile(), ilObjLanguageExtGUI\uploadObject(), ilChatroomSmileyTask\uploadSmileyObject(), ilObjMediaObjectGUI\uploadSubtitleFileObject(), ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().

{
if (ini_get("magic_quotes_gpc"))
{
$a_str = stripslashes($a_str);
}
//echo "<br><br>-".$a_strip_html."-".htmlentities($a_str);
//echo "<br>-".htmlentities(ilUtil::secureString($a_str, $a_strip_html, $a_allow));
return ilUtil::secureString($a_str, $a_strip_html, $a_allow);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Strip slashes from array and sub-arrays.

Definition at line 2624 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(), ilAnswerWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), and assClozeTestGUI\writeAnswerSpecificPostData().

{
if (is_array($a_data))
{
foreach ($a_data as $k => $v)
{
if (is_array($v))
{
$a_data[$k] = ilUtil::stripSlashesRecursive($v, $a_strip_html, $a_allow);
}
else
{
$a_data[$k] = ilUtil::stripSlashes($v, $a_strip_html, $a_allow);
}
}
}
else
{
$a_data = ilUtil::stripSlashes($a_data, $a_strip_html, $a_allow);
}
return $a_data;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Referenced by ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilObjCategoryGUI\_importCategoriesForm(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCourseObjectivesGUI\askDeleteObjective(), ilCourseArchivesGUI\confirmDeleteArchives(), ilMemberExportGUI\confirmDeleteExportFile(), ilObjTypeDefinitionGUI\displayList(), ilObjObjectFolderGUI\displayList(), ilRegistrationSettingsGUI\editEmailAssignments(), ilObjMediaObjectGUI\editFilesObject(), ilObjTypeDefinitionGUI\editObject(), ilRegistrationSettingsGUI\editRoleAccessLimitations(), ilRegistrationSettingsGUI\editRoles(), ilCourseContentGUI\editTimings(), ilObjSessionGUI\eventsListObject(), ilObjUserFolderGUI\exportObject(), ilCourseObjectiveQuestionsTableGUI\fillRow(), ilObjRoleGUI\listDesktopItemsObject(), ilSessionOverviewGUI\listSessions(), ilObjRoleTemplateGUI\permObject(), ilTableGUI\render(), ilSCORM2004ScoGUI\sahs_questions(), ilSCORM2004ScoGUI\sco_resources(), ilShopShoppingCartGUI\showCouponInput(), ilGlossaryPresentationGUI\showDownloadList(), ilLMPresentationGUI\showDownloadList(), ilMemberExportGUI\showFileList(), ilObjAICCLearningModuleGUI\showTrackingItems(), ilStructureObjectGUI\subchap(), ilCourseArchivesGUI\view(), and ilObjFileAccessSettingsGUI\viewDiskQuotaReport().

{
if (!($a_num % 2))
{
return $a_css1;
}
else
{
return $a_css2;
}
}

+ Here is the caller graph for this function:

static ilUtil::tf2yn (   $a_tf)
static
static ilUtil::timearray2string (   $duration)
static

Return a string of time periods.

Parameters
mixed$durationAn array of named segments
Returns
string

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

References $lng.

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

{
global $lng;
if (!is_array($duration))
{
return false;
}
foreach ($duration as $key => $value) {
// Plural
if ($value > 1)
{
$segment_name = $key;
$segment_name = $lng->txt($segment_name);
$segment = $value . ' ' . $segment_name;
}
else
{
$segment_name = substr($key, 0, -1);
$segment_name = $lng->txt($segment_name);
$segment = $value . ' ' . $segment_name;
}
$array[] = $segment;
}
$len = count($array);
if ($len>3)
{
$array=array_slice($array,0,(3-$len));
}
$str = implode(', ', $array);
return $str;
}

+ Here is the caller graph for this function:

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

{
$target = array();
$existing_sub_key_values = array();
foreach ($array as $key=>$sub_array)
{
if (!in_array($sub_array[$sub_key], $existing_sub_key_values))
{
$existing_sub_key_values[] = $sub_array[$sub_key];
$target[$key] = $sub_array;
}
}
return $target;
}
static ilUtil::unmaskAttributeTag (   $a_str,
  $tag,
  $tag_att 
)
static

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

References $ilLog.

Referenced by unmaskSecureTags().

{
global $ilLog;
while (eregi("&lt;($tag $tag_att$tag_att=\"(([\$@!*()~;,_0-9A-z/:=%\\.&#?+\\-])*)\")&gt;",
$a_str, $found))
{
$un = array(".", "-", "+", "?", '$', "*", "(", ")");
$esc = array();
foreach($un as $v)
{
$esc[] = "\\".$v;
}
$ff = str_replace($un, $esc, $found[1]);
$old_str = $a_str;
$a_str = eregi_replace("&lt;".$ff."&gt;",
"<$tag $tag_att=\"".ilUtil::secureLink($found[2])."\">", $a_str);
if ($old_str == $a_str)
{
$ilLog->write("ilUtil::unmaskA-".htmlentities($old_str)." == ".
htmlentities($a_str));
return $a_str;
}
}
$a_str = str_replace("&lt;/$tag&gt;", "</$tag>", $a_str);
return $a_str;
}

+ Here is the caller graph for this function:

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

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

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

Referenced by secureString().

{
foreach ($allow_array as $t)
{
switch($t)
{
case "a":
$a_str = ilUtil::unmaskAttributeTag($a_str, "a", "href");
break;
case "img":
$a_str = ilUtil::unmaskAttributeTag($a_str, "img", "src");
break;
case "p":
case "div":
$a_str = ilUtil::unmaskTag($a_str, $t, array(
array("param" => "align", "value" => "left"),
array("param" => "align", "value" => "center"),
array("param" => "align", "value" => "justify"),
array("param" => "align", "value" => "right")
));
break;
default:
$a_str = ilUtil::unmaskTag($a_str, $t);
break;
}
}
return $a_str;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References $t.

Referenced by unmaskSecureTags().

{
$a_str = str_replace("&lt;".$t."&gt;", "<".$t.">", $a_str);
$a_str = str_replace("&lt;/".$t."&gt;", "</".$t.">", $a_str);
if (is_array($fix_param))
{
foreach ($fix_param as $p)
{
$k = $p["param"];
$v = $p["value"];
$a_str = str_replace("&lt;$t $k=\"$v\"&gt;",
"<"."$t $k=\"$v\"".">", $a_str);
}
}
return $a_str;
}

+ Here is the caller graph for this function:

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

References $result.

{
$vars = preg_split(
'/([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff^|]*)\|/',
$data,
-1,
PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE
);
$result = array();
for($i = 0; $vars[$i]; $i++)
{
$result[$vars[$i++]] = unserialize($vars[$i]);
}
return $result;
}
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 1745 of file class.ilUtil.php.

References $file, delDir(), escapeShellArg(), execQuoted(), ilTempnam(), makeDir(), and ilFileUtils\recursive_dirscan().

Referenced by ilObjCategoryGUI\_importCategories(), ilExportContainer\addSubitems(), ilExAssignment\downloadAllDeliveredFiles(), ilSurveyExporter\getXmlRepresentation(), ilObjStyleSheet\import(), ilCertificate\importCertificate(), ilObjGlossaryGUI\importFileObject(), ilObjContentObject\importFromZipFile(), ilImport\importObject(), ilObjSurveyQuestionPool\importObject(), ilObjSurvey\importObject(), ilSCORM2004ScoGUI\importSave(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilObjSCORM2004LearningModuleGUI\preview(), ilFileUtils\processZipFile(), ilFileDataGroup\unpackImportFile(), ilFileDataCourse\unpackImportFile(), ilFileSystemGUI\unzipFile(), ilExAssignment\uploadMultiFeedbackFile(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjQuestionPoolGUI\uploadQplObject(), and ilObjTestGUI\uploadTstObject().

{
if (!is_file($a_file))
{
return;
}
// if flat, move file to temp directory first
if ($a_flat)
{
$tmpdir = ilUtil::ilTempnam();
ilUtil::makeDir($tmpdir);
copy($a_file, $tmpdir.DIRECTORY_SEPARATOR.basename($a_file));
$orig_file = $a_file;
$a_file = $tmpdir.DIRECTORY_SEPARATOR.basename($a_file);
$origpathinfo = pathinfo($orig_file);
}
$pathinfo = pathinfo($a_file);
$dir = $pathinfo["dirname"];
$file = $pathinfo["basename"];
// unzip
$cdir = getcwd();
chdir($dir);
$unzip = PATH_TO_UNZIP;
// the following workaround has been removed due to bug
// http://www.ilias.de/mantis/view.php?id=7578
// since the workaround is quite old, it may not be necessary
// anymore, alex 9 Oct 2012
/*
// workaround for unzip problem (unzip of subdirectories fails, so
// we create the subdirectories ourselves first)
// get list
$unzipcmd = "-Z -1 ".ilUtil::escapeShellArg($file);
$arr = ilUtil::execQuoted($unzip, $unzipcmd);
$zdirs = array();
foreach($arr as $line)
{
if(is_int(strpos($line, "/")))
{
$zdir = substr($line, 0, strrpos($line, "/"));
$nr = substr_count($zdir, "/");
//echo $zdir." ".$nr."<br>";
while ($zdir != "")
{
$nr = substr_count($zdir, "/");
$zdirs[$zdir] = $nr; // collect directories
//echo $dir." ".$nr."<br>";
$zdir = substr($zdir, 0, strrpos($zdir, "/"));
}
}
}
asort($zdirs);
foreach($zdirs as $zdir => $nr) // create directories
{
ilUtil::createDirectory($zdir);
}
*/
// real unzip
if (!$overwrite)
{
}
else
{
$unzipcmd = "-o ".ilUtil::escapeShellArg($file);
}
ilUtil::execQuoted($unzip, $unzipcmd);
chdir($cdir);
// if flat, get all files and move them to original directory
if ($a_flat)
{
include_once("./Services/Utilities/classes/class.ilFileUtils.php");
$filearray = array();
ilFileUtils::recursive_dirscan($tmpdir, $filearray);
if (is_array($filearray["file"]))
{
foreach ($filearray["file"] as $k => $f)
{
if (substr($f, 0, 1) != "." && $f != basename($orig_file))
{
copy($filearray["path"][$k].$f, $origpathinfo["dirname"].DIRECTORY_SEPARATOR.$f);
}
}
}
ilUtil::delDir($tmpdir);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

scan file for viruses and clean files if possible

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

References $lng, and ilVirusScannerFactory\_getInstance().

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

{
global $lng;
if (IL_VIRUS_SCANNER != "None")
{
require_once("./Services/VirusScanner/classes/class.ilVirusScannerFactory.php");
if (($vs_txt = $vs->scanFile($a_file, $a_orig_name)) != "")
{
if ($a_clean && (IL_VIRUS_CLEAN_COMMAND != ""))
{
$clean_txt = $vs->cleanFile($a_file, $a_orig_name);
if ($vs->fileCleaned())
{
$vs_txt.= "<br />".$lng->txt("cleaned_file").
"<br />".$clean_txt;
$vs_txt.= "<br />".$lng->txt("repeat_scan");
if (($vs2_txt = $vs->scanFile($a_file, $a_orig_name)) != "")
{
return array(false, nl2br($vs_txt)."<br />".$lng->txt("repeat_scan_failed").
"<br />".nl2br($vs2_txt));
}
else
{
return array(true, nl2br($vs_txt)."<br />".$lng->txt("repeat_scan_succeded"));
}
}
else
{
return array(false, nl2br($vs_txt)."<br />".$lng->txt("cleaning_failed"));
}
}
else
{
return array(false, nl2br($vs_txt));
}
}
}
return array(true,"");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

zips given directory/file into given zip.file

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

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

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

{
$cdir = getcwd();
if($compress_content)
{
$a_dir .="/*";
$pathinfo = pathinfo($a_dir);
chdir($pathinfo["dirname"]);
}
$pathinfo = pathinfo($a_file);
$dir = $pathinfo["dirname"];
$file = $pathinfo["basename"];
if(!$compress_content)
{
chdir($dir);
}
$zip = PATH_TO_ZIP;
if(!$zip)
{
chdir($cdir);
return false;
}
if (is_array($a_dir))
{
$source = "";
foreach($a_dir as $dir)
{
$name = basename($dir);
$source.= " ".ilUtil::escapeShellArg($name);
}
}
else
{
$name = basename($a_dir);
if (trim($name) != "*")
{
$source = ilUtil::escapeShellArg($name);
}
else
{
$source = $name;
}
}
$zipcmd = "-r ".ilUtil::escapeShellArg($a_file)." ".$source;
ilUtil::execQuoted($zip, $zipcmd);
chdir($cdir);
return true;
}

+ 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: