ILIAS  release_4-3 Revision
 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)

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.
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)
 ??? 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 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="")
 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 addSlashes ($a_str)
 add slashes if magic qoutes is disabled don't use that for db inserts/updates! use prepareDBString instead
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)
 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 ()
 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$

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 4691 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 4668 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 4961 of file class.ilUtil.php.

References $ilIliasIniFile, and ilContext\usesHTTP().

Referenced by ilPurchaseBaseGUI\__sendBill(), ilSoapClient\__setServer(), ilMail\_getAutoGeneratedMessageString(), ilMail\_getInstallationSignature(), ilShopBoughtObjectsGUI\createBill(), ilMailSummaryNotification\send(), ilDiskQuotaSummaryNotification\send(), and ilCronCourseGroupNotification\sendMail().

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

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

Referenced by ilObjSurveyQuestionPool\_getAvailableQuestionpools(), ilObjQuestionPool\_getAvailableQuestionpools(), ilObjTest\_getAvailableTests(), ilDataLoader\assignUsersAsCourseMembers(), ilCronWebResourceCheck\check(), ilECSSettingsGUI\exportImported(), ilDataLoader\generateCalendarEntries(), ilDataLoader\generateFiles(), ilCourseGroupingAssignmentTableGUI\getItems(), ilObjSurvey\getQuestionblocksTable(), ilECSSettingsGUI\imported(), 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 4956 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 4718 of file class.ilUtil.php.

References $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(), 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::addSlashes (   $a_str)
static

add slashes if magic qoutes is disabled don't use that for db inserts/updates! use prepareDBString instead

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

{
if (ini_get("magic_quotes_gpc"))
{
return $a_str;
}
else
{
return addslashes($a_str);
}
}
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 3961 of file class.ilUtil.php.

References $data.

Referenced by ilPermission2GUI\__showPermissionsCreateSection(), ilObjUserGUI\__showRolesTable(), ilObjiLincCourseGUI\__showSearchGroupTable(), ilLMStatisticsGUI\__showSearchGroupTable(), ilObjiLincCourseGUI\__showSearchRoleTable(), ilLMStatisticsGUI\__showSearchRoleTable(), ilObjiLincCourseGUI\__showSearchUserTable(), ilLMStatisticsGUI\__showSearchUserTable(), ilObjContentObjectGUI\editPublicSection(), ilFeedbackGUI\fbList(), ilPublicSectionSelector\formatObject(), 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 3147 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 1469 of file class.ilUtil.php.

Referenced by ilPCParagraph\_input2xml(), 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 4429 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 661 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 605 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 1934 of file class.ilUtil.php.

References escapeShellArg(), and execConvert().

Referenced by ilMediaItem\copyOriginal(), assOrderingQuestionImport\fromXML(), ilObjMediaObject\generatePreviewPic(), assSingleChoice\generateThumbForFile(), assMultipleChoice\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 1662 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 1837 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 4101 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 3488 of file class.ilUtil.php.

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

{
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 2447 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(), ilSetup\cloneFromSource(), ilFileDataShop\deassignFileFromPaymentObject(), ilObjAICCLearningModule\delete(), ilObjMediaObject\delete(), ilFileDataExercise\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(), ilObjTestGUI\deleteExportFileObject(), ilObjSurveyGUI\deleteExportFileObject(), ilFileSystemGUI\deleteFile(), ilObjMediaObjectGUI\deleteFileObject(), ilObjQuestionPool\deleteQuestionpool(), assQuestion\deleteSuggestedSolutions(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilCertificate\deliverExportFileXML(), ilObjFile\doDelete(), ilFileDataExercise\downloadAllDeliveredFiles(), ilExAssignment\downloadAllDeliveredFiles(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilExAssignment\downloadMultipleFiles(), ilExport\exportEntity(), ilObjGlossary\exportHTML(), ilObjFileBasedLMGUI\exportHTML(), ilObjContentObject\exportHTML(), ilExportContainer\exportObject(), ilExport\exportObject(), ilObjUser\exportPersonalData(), ilObjContentObject\exportSCORM(), 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\removeTestResults(), ilObjTest\removeTestResultsForUser(), assMultipleChoice\saveToDb(), assSingleChoice\saveToDb(), ilObjFileGUI\saveUnzip(), assSingleChoice\syncImages(), assMultipleChoice\syncImages(), assQuestion\syncSuggestedSolutionFiles(), ilFileDataImportMail\unlinkLast(), ilFileDataImportGroup\unlinkLast(), unzip(), ilSetup\updateNewClient(), 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 2068 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(), ilObjSurveyGUI\exportAllCodesObject(), ilLMPresentationGUI\exportbibinfo(), ilAccountCodesGUI\exportCodes(), ilPaymentCouponGUI\exportCodes(), ilRegistrationSettingsGUI\exportCodes(), ilObjSurveyGUI\exportCodesObject(), ilSessionOverviewGUI\exportCSV(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilECSSettingsGUI\exportImported(), ilObjAssessmentFolderGUI\exportLogObject(), ilNoteGUI\exportNotesHTML(), ilECSSettingsGUI\exportReleased(), ilObjSCORMLearningModule\exportSelected(), ilObjSCORMLearningModule\exportSelectedRaw(), 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 2131 of file class.ilUtil.php.

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

Referenced by ilTestExport\aggregatedResultsToExcel(), ilShopBoughtObjectsGUI\createBill(), ilObjTestVerificationGUI\deliver(), ilObjExerciseVerificationGUI\deliver(), ilCertificate\deliverExportFileXML(), ilBookingObjectGUI\deliverInfo(), ilBookingObjectGUI\deliverPostFile(), ilExportGUI\download(), ilFileDataExercise\downloadAllDeliveredFiles(), ilExAssignment\downloadAllDeliveredFiles(), ilCourseArchivesGUI\downloadArchives(), ilObjCourseGUI\downloadArchivesObject(), ilObjBlogGUI\downloadExcAssFile(), ilObjPortfolioGUI\downloadExcAssFile(), ilObjBlogGUI\downloadExcSubFile(), ilObjPortfolioGUI\downloadExcSubFile(), ilSCORM2004ScoGUI\downloadExportFile(), ilGlossaryPresentationGUI\downloadExportFile(), ilObjGroup\downloadExportFile(), ilObjSCORM2004LearningModuleGUI\downloadExportFile(), ilLMPresentationGUI\downloadExportFile(), ilObjSurveyQuestionPoolGUI\downloadExportFileObject(), ilObjTestGUI\downloadExportFileObject(), ilObjUserFolderGUI\downloadExportFileObject(), ilObjSurveyGUI\downloadExportFileObject(), ilObjExerciseGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilFileSystemGUI\downloadFile(), ilObjExerciseGUI\downloadFileObject(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilObjFolderGUI\downloadFolderObject(), ilObjMediaCastGUI\downloadItemObject(), ilExAssignment\downloadMultipleFiles(), ilObjContentObjectGUI\downloadPDFFile(), ilSCORM2004ScoGUI\downloadResource(), ilExAssignment\downloadSingleFile(), ilObjDlBook\export(), ilObjBlogGUI\export(), ilObjPortfolioGUI\export(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilObjStyleSettingsGUI\exportLayoutObject(), ilObjQuestionPoolGUI\exportQuestionObject(), ilObjStyleSheetGUI\exportStyleObject(), ilTestExport\exportToExcel(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilLMPresentationGUI\offlineexport(), ilDataCollectionRecordListGUI\sendFile(), ilObjFile\sendFile(), ilWebAccessChecker\sendFile(), ilObjSessionGUI\sendFileObject(), ilObjCourseGUI\sendFileObject(), 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 4887 of file class.ilUtil.php.

References $size.

Referenced by ilObjSAHSLearningModuleAccess\_lookupDiskUsage(), ilObjMediaCastAccess\_lookupDiskUsage(), ilObjFileBasedLMAccess\_lookupDiskUsage(), ilObjFileAccess\_lookupDiskUsage(), ilFileDataMail\_lookupDiskUsageOfUser(), ilFileDataExercise\downloadAllDeliveredFiles(), and ilExAssignment\downloadAllDeliveredFiles().

{
$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 3168 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 3651 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 3726 of file class.ilUtil.php.

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

{
$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;
return ($days + 25570 + ($difference / 86400));
}

+ Here is the caller graph for this function:

static ilUtil::execConvert (   $args)
static

execute convert command

Parameters
string$args

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

References execQuoted().

Referenced by ilObjUser\_uploadPersonalPicture(), convertImage(), ilImagemapPreview\createPreview(), ilObjMediaObject\generatePreviewPic(), resizeImage(), ilContainer\saveIcons(), ilObjBlog\uploadImage(), ilObjPoll\uploadImage(), ilObjPortfolio\uploadImage(), ilPersonalProfileGUI\uploadUserPicture(), and ilObjUserGUI\uploadUserPictureObject().

{
ilUtil::execQuoted(PATH_TO_CONVERT, $args);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

exec command and fix spaces on windows

Parameters
string$cmd
string$args
Returns
array

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

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

Referenced by CreateIsoFromFolder(), ilFFmpeg\exec(), execConvert(), htmlfile2pdf(), isConvertVersionAtLeast(), 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;
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 3100 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 468 of file class.ilUtil.php.

Referenced by ilLearningProgressBaseGUI\__showEditUser(), ilObjCourseGUI\__showWaitingList(), ilObjCategoryGUI\_importCategoriesForm(), ilObjUserFolderGUI\appliedUsersObject(), ilObjCategoryGUI\assignRolesObject(), ilECSNodeMappingCmsExplorer\buildFormItem(), ilPasteIntoMultipleItemsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilWorkspaceExplorer\buildFormItem(), ilObjForumGUI\cloneWizardPageObject(), ilObjUserFolderGUI\editAppliedUsersObject(), ilRegistrationSettingsGUI\editEmailAssignments(), ilObjUserGUI\editOldObject(), ilRegistrationSettingsGUI\editRoles(), ilObjExternalToolsSettingsGUI\editSocialBookmarksObject(), ilFeedbackGUI\fbList(), ilMailAttachmentTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilObjForumGUI\getUserNotificationTableData(), ilLMStatisticsGUI\listUsersGroup(), ilObjiLincCourseGUI\listUsersGroupObject(), ilLMStatisticsGUI\listUsersRole(), ilObjiLincCourseGUI\listUsersRoleObject(), ilObjRoleGUI\listUsersRoleObject(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilObjSessionGUI\materialsObject(), ilObjPaymentSettingsGUI\payMethodsObject(), ilPaymentTrusteeGUI\performSearch(), ilNestedListInputGUI\render(), ilLDAPSettingsGUI\roleMapping(), ilLMStatisticsGUI\search(), ilObjiLincCourseGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilMemberExportGUI\show(), ilMailAddressbookGUI\showAddressbook(), ilMemberAgreementGUI\showAgreement(), ilPaymentCouponGUI\showCodes(), ilShopAdvancedSearchGUI\showForm(), ilMailingListsGUI\showMailingLists(), ilMailingListsGUI\showMembersList(), ilPaymentCouponGUI\showObjects(), ilMailSearchGUI\showResults(), ilPaymentTrusteeGUI\showTrustees(), ilStartUpGUI\showUserAgreement(), ilLDAPSettingsGUI\userMapping(), 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 519 of file class.ilUtil.php.

Referenced by ilPasteIntoMultipleItemsExplorer\buildFormItem().

{
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;
}

+ Here is the caller graph for this function:

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 582 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 
)
static

??? public

Parameters
string
string
string
Returns
string

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

Referenced by ilObjRoleGUI\adoptPermObject(), ilECSNodeMappingCmsExplorer\buildFormItem(), ilForumMoveTopicsExplorer\buildFormItem(), ilECSNodeMappingLocalExplorer\buildFormItem(), ilWorkspaceExplorer\buildFormItem(), ilObjiLincCourseGUI\changeMemberObject(), ilObjPaymentSettingsGUI\currenciesObject(), ilObjRoleTemplateGUI\permObject(), ilLMStatisticsGUI\searchUserForm(), ilObjiLincCourseGUI\searchUserFormObject(), ilFeedbackGUI\showBarometer(), ilFeedbackGUI\showBarometerById(), ilShopPurchaseGUI\showDetails(), and ilObjRootFolderGUI\showSortingSettings().

{
$str = '<input ';
if($onclick)
{
$str .= ('onclick="'.$onclick.'"');
}
$str .= (" type=\"radio\" name=\"".$varname."\"");
if ($checked == 1)
{
$str .= " checked=\"checked\"";
}
$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 357 of file class.ilUtil.php.

References $lng, $size, and if.

Referenced by ilRegistrationSettingsGUI\__buildAccessLimitationSelection(), ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilMDEditorGUI\__buildDaysSelect(), ilObjCategoryGUI\__buildFilterSelect(), ilObjUserGUI\__buildFilterSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), ilMDEditorGUI\__buildMonthsSelect(), ilPermission2GUI\__buildRoleFilterSelect(), ilRegistrationSettingsGUI\__buildRoleSelection(), ilObjUserFolderGUI\__buildUserFilterSelect(), ilMDEditorGUI\__fillSubelements(), ilObjExerciseGUI\__getDateSelect(), ilObjUserFolderGUI\__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(), ilFeedbackGUI\addBarometer(), ilRecurrenceInputGUI\buildMonthlyByDaySelection(), ilRecurrenceInputGUI\buildMonthlyByMonthDaySelection(), ilCopyWizardExplorer\buildSelect(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), ilObjiLincCourseGUI\changeMemberObject(), ilObjContentObjectGUI\chapters(), ilObjSystemFolderGUI\checkObject(), ilPCParagraphGUI\edit(), ilFeedbackGUI\edit(), ilObjTypeDefinitionGUI\editObject(), ilObjAuthSettingsGUI\editSOAPObject(), ilTable2GUI\fillActionRow(), ilImportantPagesTableGUI\fillRow(), ilPCImageMapTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilECSCommunityTableGUI\fillRow(), ilPCIIMTriggerTableGUI\fillRow(), ilImageMapTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilFeedbackGUI\getDateSelect(), ilTable2GUI\getLinkbar(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjContentObjectGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\initStylePropertiesForm(), ilObjWikiGUI\initStylePropertiesForm(), ilObjGlossaryGUI\initStylePropertiesForm(), ilContainerGUI\initStylePropertiesForm(), ilLocationInputGUI\insert(), ilRecurrenceInputGUI\insert(), ilObjContentObjectGUI\pages(), ilLDAPSettingsGUI\prepareMappingSelect(), ilLDAPSettingsGUI\prepareRoleSelect(), ilObjSCORMLearningModuleGUI\properties(), ilDurationInputGUI\render(), ilCourseArchivesGUI\selectArchiveLanguage(), ilPCSourcecodeGUI\setTemplateText(), ilMemberAgreementGUI\showCourseDefinedFields(), ilObjContentObjectGUI\showEntrySelector(), ilShopAdvancedSearchGUI\showForm(), ilInfoScreenGUI\showLearningProgress(), ilInternalLinkGUI\showLinkHelp(), ilPageObjectGUI\showPage(), ilObjUserFolderGUI\showPossibleSubObjects(), ilObjRoleFolderGUI\showPossibleSubObjects(), ilBookmarkAdministrationGUI\showPossibleSubObjects(), ilObjectGUI\showPossibleSubObjects(), ilPaymentTrusteeGUI\showTrustees(), ilStructureObjectGUI\subchap(), ilStructureObjectGUI\view(), ilObjFileAccessSettingsGUI\viewDiskQuotaReport(), and ilObjLanguageExtGUI\viewObject().

{
global $lng;
if ($multiple == true)
{
$multiple = " multiple=\"multiple\"";
}
else
{
$multiple = "";
$size = 0;
}
if ($style_class != "")
{
$class = " class=\"".$style_class."\"";
}
else
{
$class = "";
}
$attributes = "";
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 3860 of file class.ilUtil.php.

References $ret, and ilSecuritySettings\_getInstance().

Referenced by ilAccountRegistrationGUI\__createUser(), ilShopUtils\_createRandomUserAccount(), ilStartUpGUI\confirmRegistration(), ShibAuth\generateLogin(), ilPasswordInputGUI\insert(), ShibAuth\login(), and ilAuthContainerSOAP\loginObserver().

{
$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";
$consonants = "bcdfghjklmnpqrstvwxyz";
$numbers = "1234567890";
$special = "_.+?#-*@!$%~";
$pw = "";
// position for number
if ($security->isPasswordCharsAndNumbersEnabled())
{
$num_pos = rand(0, $length - 1);
}
// position for special character
if ($security->isPasswordSpecialCharsEnabled())
{
$spec_pos = rand(0, $length - 1);
if ($security->isPasswordCharsAndNumbersEnabled())
{
if ($num_pos == $spec_pos) // not same position for number/special
{
if ($spec_pos > 0)
{
$spec_pos -= 1;
}
else
{
$spec_pos += 1;
}
}
}
}
for ($j=0; $j < $length; $j++)
{
if ($security->isPasswordCharsAndNumbersEnabled() && $num_pos == $j)
{
$pw.= $numbers[rand(0,strlen($numbers)-1)];
}
else if ($security->isPasswordSpecialCharsEnabled() && $spec_pos == $j)
{
$pw.= $special[rand(0,strlen($special)-1)];
}
else
{
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;
}
}
}
$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 2235 of file class.ilUtil.php.

Referenced by ilTestExport\aggregatedResultsToCSV(), ilTestExport\aggregatedResultsToExcel(), deliverData(), deliverFile(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilFileDataExercise\downloadAllDeliveredFiles(), ilExAssignment\downloadAllDeliveredFiles(), ilObjFolderGUI\downloadFolderObject(), ilExAssignment\downloadMultipleFiles(), ilObjSurveyGUI\exportAllCodesObject(), ilTestEvaluationGUI\exportCertificate(), ilObjSurveyGUI\exportCodesObject(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilObjExercise\exportGradesExcel(), ilCOPageHTMLExport\exportHTMLFileDirect(), ilTestExport\exportToCSV(), ilTestExport\exportToExcel(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilVerificationObject\getOfflineFilename(), ilDataCollectionDatatype\parseValue(), 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 1622 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 1872 of file class.ilUtil.php.

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

get data directory (outside webspace)

Definition at line 1589 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(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjUserFolder\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(), ilObjContentObject\getDataDirectory(), ilObjUserFolder\getExportDirectory(), ilObjContentObject\getExportDirectory(), ilObjSurveyQuestionPool\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilObjTest\getExportDirectory(), ilObjSurvey\getExportDirectory(), ilScorm2004Export\getExportDirectoryForType(), ilObjUserFolderGUI\getImportDir(), ilObjContentObject\getImportDirectory(), ilObjGlossary\getImportDirectory(), ilObjSurveyQuestionPool\getImportDirectory(), ilObjSurvey\getImportDirectory(), ilFSStorageMail\getRelativePathExMailDirectory(), ilChatroomUploadFileTask\getUploadPath(), ilMediaItem\getWorkDirectory(), ilTempnam(), ilFileSystemStorage\init(), ilOpenIdSettings\initConsumer(), ilOpenIdSettings\initTempDir(), ilPropertyFormGUI\keepFileUpload(), ilTestQuestionPoolExporter\lookupExportDirectory(), ilXmlExporter\lookupExportDirectory(), and ilPropertyFormGUI\rebuildUploadedFiles().

{
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 2494 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(), ilObjUser\getPersonalDataExportFile(), ilCertificate\importCertificate(), ilObjContentObject\importFromZipFile(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), and ilFileDataForum\unlinkFilesByMD5Filenames().

{
$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 4644 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 3449 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":
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 165 of file class.ilUtil.php.

Referenced by ilObjMediaObject\_getURL(), SurveyTextQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), ilAuthApache\login(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserResultsOverview(), ilObjTestGUI\printobject(), and ilObjSurveyGUI\printViewObject().

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

References $ilCtrl, $ilUser, $img, ilStyleDefinition\getCurrentMasterStyle(), ilStyleDefinition\getCurrentSkin(), and ilStyleDefinition\getCurrentStyle().

Referenced by ilPDMailBlockGUI\__construct(), ilPDSysMessageBlockGUI\__construct(), ilChatroomBlockGUI\__construct(), ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), ilLearningProgressBaseGUI\__getLegendHTML(), ilCourseContentGUI\__renderUserItem(), ilObjRoleGUI\__setHeader(), ilObjLinkResourceGUI\__setLocator(), ilObjUserFolderGUI\__showAppliedUsersTable(), ilObjectGUI\__showClipboardTable(), ilObjCourseGUI\__showDeleteSubscriberTable(), ilCourseObjectivePresentationGUI\__showHideLinks(), ilCourseObjectivePresentationGUI\__showLearningMaterials(), ilCourseObjectivePresentationGUI\__showObjectives(), ilObjectStatusGUI\__showObjectSummaryTable(), ilObjCourseGUI\__showRemoveFromWaitingListTable(), ilObjCategoryGUI\__showRolesTable(), ilObjUserGUI\__showRolesTable(), ilObjiLincCourseGUI\__showSearchGroupTable(), ilLMStatisticsGUI\__showSearchGroupTable(), ilObjiLincCourseGUI\__showSearchRoleTable(), ilLMStatisticsGUI\__showSearchRoleTable(), ilObjiLincCourseGUI\__showSearchUserTable(), ilLMStatisticsGUI\__showSearchUserTable(), ilObjCategoryGUI\__showUsersTable(), ilObjCourseGUI\__showWaitingListTable(), ilPermanentLinkGUI\_getBookmarksSelectionList(), ilObject\_getIcon(), ilLearningProgressBaseGUI\_getImagePathForStatus(), ilObjUser\_getPersonalPicturePath(), ilPCTableGUI\_renderTable(), ilFeedbackGUI\addBarometer(), ilGlossaryTermGUI\addDefinition(), ilContainerObjectiveGUI\addFooterRow(), ilContainerSessionsContentGUI\addFooterRow(), ilWikiPageGUI\addHeaderAction(), ilObjDataCollectionGUI\addHeaderAction(), ilShopPurchaseGUI\addHeaderRow(), ilShopResultPresentationGUI\addHeaderRow(), ilContainerContentGUI\addHeaderRow(), ilPDSelectedItemsBlockGUI\addHeaderRow(), ilContainerGUI\addHeaderRow(), ilInfoScreenGUI\addObjectSections(), ilPDSelectedItemsBlockGUI\addParentRow(), ilShopPurchaseGUI\addStandardRow(), ilPDSelectedItemsBlockGUI\addStandardRow(), ilContainerGUI\addStandardRow(), ilSCORMPresentationGUI\apiInitData(), ilSearchResultPresentation\appendRelevance(), ilConditionHandlerInterface\askDelete(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCourseObjectivesGUI\askDeleteObjective(), ilPersonalSkillsGUI\assignMaterials(), ilObjContentObjectGUI\chapters(), ilContainerGUI\cloneWizardPageObject(), ilObjForumGUI\cloneWizardPageObject(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilPDExternalFeedBlockGUI\confirmDeleteFeedBlock(), ilObjGroupGUI\confirmDeleteMembersObject(), ilObjRoleGUI\confirmDeleteRoleObject(), ilObjMediaCastGUI\confirmDeletionItemsObject(), ilNewsItemGUI\confirmDeletionNewsItems(), ilCourseParticipantsGroupsGUI\confirmRemove(), ilObjSurveyGUI\constraintsObject(), ilSCORM13Player\debugGUI(), ilObjCourseGUI\deleteMembersObject(), ilObjSkillManagementGUI\deleteNodes(), ilObjSCORM2004LearningModuleGUI\deleteNodes(), ilObjTestGUI\deleteSingleUserResultsObject(), ilObjSystemFolderGUI\displayBasicSettings(), ilAccountRegistrationGUI\displayForm(), ilLMEditorGUI\displayLocator(), ilPageObjectGUI\displayMedia(), ilFeedbackGUI\edit(), ilObjUserFolderGUI\editAppliedUsersObject(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilObjPaymentSettingsGUI\editDetailsObject(), ilObjFileAccessSettingsGUI\editDiskQuotaMailTemplate(), ilRegistrationSettingsGUI\editEmailAssignments(), ilObjMediaObjectGUI\editFilesObject(), ilLMPageObjectGUI\editLayout(), ilObjTypeDefinitionGUI\editObject(), ilContainerGUI\editPageContentObject(), ilRegistrationSettingsGUI\editRoles(), ilPDNewsBlockGUI\editSettings(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilGlossaryTermGUI\editTerm(), ilCourseContentGUI\editTimings(), ilObjSessionGUI\eventsListObject(), ilPCInteractiveImageGUI\executeCommand(), ilSCORM2004PageNodeGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilPersonalSkillsGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), ilPCMediaObjectGUI\executeCommand(), ilObjPortfolioGUI\executeCommand(), ilBlogPostingGUI\executeCommand(), ilObjContentObjectGUI\explorer(), ilSystemStyleHTMLExport\export(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilObjUserFolderGUI\exportObject(), ilFeedbackGUI\fbList(), ilMailFolderTableGUI\fetchTableData(), ilTable2GUI\fillActionRow(), ilLuceneAdvancedSearchGUI\fillAdminPanel(), ilLuceneSearchGUI\fillAdminPanel(), ilTemplate\fillAdminPanel(), ilCalendarSelectionBlockGUI\fillDataSection(), ilBlockGUI\fillDetailRow(), ilTable2GUI\fillHeader(), ilCopyWizardPage\fillMainBlock(), ilTemplate\fillMessage(), ilConditionHandlerTableGUI\fillRow(), ilECSServerTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilExportSelectionTableGUI\fillRow(), ilAuthLoginPageEditorTableGUI\fillRow(), ilBookmarkAdministrationTableGUI\fillRow(), ilShibbolethRoleAssignmentTableGUI\fillRow(), ilClipboardTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilLDAPRoleAssignmentTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilCourseObjectiveQuestionsTableGUI\fillRow(), ilCalendarInboxSharedTableGUI\fillRow(), ilCalendarSharedListTableGUI\fillRow(), ilComponentsTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilDataCollectionFieldListTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilFileSystemTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilPDMailBlockGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilSessionParticipantsTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilDataCollectionRecordListTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilUsersOnlineBlockGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilTrMatrixTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilTrObjectUsersPropsTableGUI\fillRow(), ilTemplate\fillSideIcons(), ilSAHSPresentationGUI\finishSahs(), ilSCORMPresentationGUI\finishSahs(), ilStyleScopeExplorer\formatHeader(), ilAdministrationExplorer\formatHeader(), ilMediaPoolExplorer\formatHeader(), ilLMExplorer\formatHeader(), ilLMEditorExplorer\formatHeader(), ilScorm2004EditorExplorer\formatHeader(), ilSkillExplorer\formatHeader(), ilTaxonomyExplorer\formatHeader(), ilGlossarySelectorGUI\formatHeader(), ilFileSelectorGUI\formatHeader(), ilPersonalSkillExplorer\formatHeader(), ilPoolSelectorGUI\formatHeader(), ilWorkspaceFolderExplorer\formatHeader(), ilIntLinkRepItemExplorer\formatHeader(), ilHACPExplorer\formatObject(), ilAICCExplorer\formatObject(), ilPublicSectionSelector\formatObject(), ilSCORMExplorer\formatObject(), ilContainerGUI\forwardToPageObject(), ilChapterHierarchyFormGUI\getChildIcon(), ilHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilObjChatroomListGUI\getCommandImage(), ilObjFileListGUI\getCommandImage(), ilObjTestListGUI\getCommandImage(), ilObjLearningModuleListGUI\getCommandImage(), ilHierarchyFormGUI\getContent(), ilAdministrationGUI\getDropDown(), ilPublicUserProfileGUI\getEmbeddable(), ilObjMediaCastGUI\getFeedIconsHTML(), ilObjectListGUI\getHeaderAction(), ilHistoryGUI\getHistoryTable(), ilDataCollectionTreePickInputGUI\getHtml(), ilMainMenuSearchGUI\getHTML(), ilMiniCalendarGUI\getHTML(), ilCheckboxListOverlayGUI\getHTML(), ilPDNewsBlockGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilRatingGUI\getHTML(), ilCalendarBlockGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilBlockGUI\getHTML(), ilSkillTreeNode\getIconPath(), ilCopyWizardExplorer\getImage(), ilLMTOCExplorer\getImage(), ilLMEditorExplorer\getImage(), ilTaxonomyExplorer\getImage(), ilMailExplorer\getImage(), ilSkillExplorer\getImage(), ilPersonalSkillExplorer\getImage(), ilTableOfContentsExplorer\getImage(), ilExplorer\getImage(), ilSCORM13Player\getInlineCSS(), ilContainerContentGUI\getIntroduction(), ilPDSelectedItemsBlockGUI\getIntroduction(), ilObjContentObjectGUI\getLayoutOption(), ilHierarchyFormGUI\getLevelHTML(), ilPDNotesBlockGUI\getListRowData(), ilBookmarkBlockGUI\getListRowData(), ilMainMenuGUI\getMemberViewHTML(), ilTemplate\getMessageHTML(), ilMediaPlayerGUI\getMp3PlayerHtml(), ilNoteGUI\getNoteListHTML(), ilExplorer\getOutput(), ilSCORMExplorer\getOutputIcons(), ilExAssignmentGUI\getOverviewHeader(), ilTestServiceGUI\getPassDetailsOverview(), ilNoteGUI\getPDNoteHTML(), assSingleChoiceGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreviewJS(), SurveyTextQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), ilTestServiceGUI\getResultsSignature(), assOrderingHorizontalGUI\getSolutionOutput(), assFileUploadGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), ilObjStyleSheetGUI\getStyleExampleHTML(), ilObjGlossaryGUI\getTemplate(), assOrderingHorizontalGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutputJS(), ilPageObjectGUI\getTinyMenu(), getTypeIconPath(), ilBookmarkBlockGUI\ilBookmarkBlockGUI(), ilCalendarBlockGUI\ilCalendarBlockGUI(), ilExternalFeedBlockGUI\ilExternalFeedBlockGUI(), ilLMPresentationGUI\ilLMHead(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilMedia(), ilNewsForContextBlockGUI\ilNewsForContextBlockGUI(), ilNoteGUI\ilNoteGUI(), ilPDExternalFeedBlockGUI\ilPDExternalFeedBlockGUI(), ilPDFeedbackBlockGUI\ilPDFeedbackBlockGUI(), ilPDNewsBlockGUI\ilPDNewsBlockGUI(), ilPDNotesBlockGUI\ilPDNotesBlockGUI(), ilPDTaggingBlockGUI\ilPDTaggingBlockGUI(), ilUsersOnlineBlockGUI\ilUsersOnlineBlockGUI(), ilSCORM2004ScoGUI\import(), ilObjCourseGUI\initEditForm(), ilLMPageObjectGUI\initEditLayoutForm(), ilObjSessionGUI\initForm(), ilObjGroupGUI\initForm(), ilConditionHandlerInterface\initFormCondition(), ilContainerReferenceGUI\initFormEditSelection(), ilCourseObjectivesGUI\initFormLimits(), ilNewsItemGUI\initFormNewsItem(), ilContainerReferenceGUI\initFormSelection(), ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilCourseObjectivesGUI\initFormTitle(), ilObjForumGUI\initForumCreateForm(), ilObjBlogGUI\initHeaderAction(), ilObjGroupGUI\initHeaderAction(), ilObjCourseGUI\initHeaderAction(), ilObjUserFolderGUI\initNewAccountMailForm(), ilShopNewsGUI\initNewsForm(), ilWikiPageGUI\initPrintViewSelectionForm(), ilShopNewsGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilObjFileGUI\initSingleUploadForm(), ilCourseObjectivesGUI\initWizard(), ilObjFileGUI\initZipUploadForm(), ilTextWizardInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilFileWizardInputGUI\insert(), ilRandomTestInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilObjectListGUI\insertCommands(), ilObjectListGUI\insertCutCommand(), ilObjectListGUI\insertDeleteCommand(), ilPageObjectGUI\insertHelp(), ilObjectListGUI\insertIconsAndCheckboxes(), ilObjectListGUI\insertInfoScreenCommand(), ilPropertyFormGUI\insertItem(), ilObjectListGUI\insertLinkCommand(), ilObjectListGUI\insertPayment(), ilCourseObjectiveListGUI\insertProgressInfo(), ilObjectListGUI\insertRelevance(), ilObjectListGUI\insertSubscribeCommand(), ilHACPPresentationGUI\launchSahs(), ilAICCPresentationGUI\launchSahs(), ilSAHSPresentationGUI\launchSahs(), ilSCORMPresentationGUI\launchSahs(), ilGlossaryPresentationGUI\listDefinitions(), ilGlossaryTermGUI\listDefinitions(), ilObjRoleGUI\listDesktopItemsObject(), ilSessionOverviewGUI\listSessions(), ilGlossaryTermGUI\listUsages(), ilAccountRegistrationGUI\login(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilObjTestGUI\marksObject(), ilObjSessionGUI\materialsObject(), ilGlossaryPresentationGUI\media(), ilObjSessionGUI\membersObject(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilLMPresentationGUI\outputInfoScreen(), assQuestionGUI\outQuestionType(), ilSurveyExecutionGUI\outSurveyPage(), ilTestEvaluationGUI\outUserResultsOverview(), ilTestOutputGUI\outWorkingForm(), ilObjContentObjectGUI\pages(), ilDataCollectionDatatype\parseHTML(), ilObjRoleTemplateGUI\permObject(), ilTestOutputGUI\populateCancelButtonBlock(), ilTestOutputGUI\populateQuestionMarkingBlockAsMarked(), ilTestOutputGUI\populateQuestionMarkingBlockAsUnmarked(), ilPersonalDesktopGUI\prepareContentView(), ilShopBaseGUI\prepareOutput(), ilSearchBaseGUI\prepareOutput(), ilGlossaryPresentationGUI\prepareOutput(), ilObjLanguageExtGUI\prepareOutput(), ilObjTestGUI\printobject(), ilObjSystemFolderGUI\printProxyStatus(), ilObjSurveyGUI\printViewObject(), ilGlossaryPresentationGUI\printViewSelection(), ilBirthdayInputGUI\render(), ilScheduleInputGUI\render(), ilDateTimeInputGUI\render(), ilDateDurationInputGUI\render(), ilTableGUI\render(), ilTable2GUI\render(), ilHierarchyFormGUI\renderChild(), ilRatingGUI\renderDetails(), ilMainMenuGUI\renderEntry(), ilTableGUI\renderHeader(), ilMainMenuGUI\renderHelpButtons(), ilCalendarSelectionBlockGUI\renderItem(), ilSCORM2004Asset\renderNavigation(), ilObjBlogGUI\renderNavigation(), ilSurveyPageGUI\renderPage(), ilSurveyPageGUI\renderPageNode(), ilMainMenuGUI\renderStatusBox(), ilOrgUnitTreeExplorerGUI\renderUnit(), ilLDAPSettingsGUI\roleMapping(), ilPersonalSkillsGUI\selfEvaluation(), ilWebAccessChecker\sendError(), ilConditionHandlerTableGUI\setConditions(), ilSAHSPresentationGUI\setInfoTabs(), ilSkillTreeNodeGUI\setLocator(), ilSCORM2004NodeGUI\setLocator(), ilSCORM2004SeqChapterGUI\setTabs(), ilSkillTemplateGUI\setTabs(), ilSCORM2004AssetGUI\setTabs(), ilSCORM2004ChapterGUI\setTabs(), ilSCORM2004PageNodeGUI\setTabs(), ilPageLayoutGUI\setTabs(), ilEditClipboardGUI\setTabs(), ilSCORM2004ScoGUI\setTabs(), ilObjSAHSLearningModuleGUI\setTabs(), ilObjFileBasedLMGUI\setTabs(), ilStructureObjectGUI\setTabs(), ilObjMediaObjectGUI\setTabs(), ilObjContentObjectGUI\setTabs(), ilObjWorkspaceRootFolderGUI\setTitleAndDescription(), ilObjUserGUI\setTitleAndDescription(), ilObjectGUI\setTitleAndDescription(), ilContainerGUI\setTitleAndDescription(), ilObjLanguageExtGUI\setTitleAndDescription(), ilObjQuestionPoolGUI\setTitleAndDescription(), ilCalendarDayGUI\show(), ilCalendarWeekGUI\show(), ilCalendarMonthGUI\show(), ilStartUpGUI\showAccountMigration(), ilLMObjectGUI\showActions(), ilObjUserFolderGUI\showActions(), ilObjStyleSettingsGUI\showActions(), ilObjGlossaryGUI\showActions(), ilObjContentObjectGUI\showActions(), ilContainerGUI\showAdministrationPanel(), ilPasswordAssistanceGUI\showAssignPasswordForm(), ilPasswordAssistanceGUI\showAssistanceForm(), ilFeedbackGUI\showBarometerById(), ilPurchaseBaseGUI\showBillConfirm(), ilStartUpGUI\showCASLoginForm(), ilStartUpGUI\showClientList(), ilStartUpGUI\showCodeForm(), ilShopShoppingCartGUI\showCouponInput(), ilPurchaseBMFGUI\showCreditCard(), ilPurchaseBMFGUI\showDebitEntry(), ilShopPurchaseGUI\showDemoVersion(), ilShopPurchaseGUI\showDetails(), ilGlossaryPresentationGUI\showDownloadList(), ilLMPresentationGUI\showDownloadList(), ilCalendarMonthGUI\showEvents(), ilStartUpGUI\showFailure(), ilExternalFeedBlockGUI\showFeedItem(), ilPDExternalFeedBlockGUI\showFeedItem(), ilPDNewsBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showFeedUrl(), ilMemberExportGUI\showFileList(), ilCalendarDayGUI\showFulldayAppointment(), ilCalendarWeekGUI\showFulldayAppointment(), ilObjMediaCastGUI\showGallery(), ilMailGUI\showHeader(), ilHelpGUI\showHelp(), ilStructureObjectGUI\showHierarchy(), ilLPObjectStatisticsGUI\showLearningProgressDetails(), ilInternalLinkGUI\showLinkHelp(), ilStartUpGUI\showLogin(), ilStartUpGUI\showLogout(), ilPDMailBlockGUI\showMail(), ilObjMediaPoolGUI\showMedia(), ilMailGUI\showMenu(), ilPasswordAssistanceGUI\showMessageForm(), ilNewsForContextBlockGUI\showNews(), ilPDNotesBlockGUI\showNote(), ilSCORM2004NodeGUI\showOrganization(), ilObjSCORM2004LearningModuleGUI\showOrganization(), ilHelpGUI\showPage(), ilPageObjectGUI\showPage(), ilPurchaseBMFGUI\showPaymentType(), ilLMPresentationGUI\showPrintView(), ilLMPresentationGUI\showPrintViewSelection(), ilPDTaggingBlockGUI\showResourcesForTag(), ilMailSearchGUI\showResults(), ilSearchGUI\showSearch(), ilLuceneSearchGUI\showSearchForm(), ilPaymentObjectGUI\showSelectedObject(), ilTestOutputGUI\showSideList(), ilCourseContentGUI\showStartObjects(), ilObjCourseGUI\showStartObjects(), ilContainerObjectiveGUI\showStatus(), ilStartUpGUI\showSuccess(), ilLMPresentationGUI\showTableOfContents(), ilNoteGUI\showTargets(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORM2004LearningModuleGUI\showTree(), ilMailFolderGUI\showUser(), ilStartUpGUI\showUserAgreement(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), ilCourseContentGUI\showUserTimings(), ilStructureObjectGUI\subchap(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjTestGUI\uploadTstObject(), ilCourseArchivesGUI\view(), and ilStructureObjectGUI\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");
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;
}
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, and $lng.

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

{
global $lng;
if ($a_big)
{
$big = "_b";
}
$filename = "icon_".$a_type."$big.png";
return "<img src=\"".ilUtil::getImagePath($filename)."\" alt=\"".$lng->txt("obj_".$a_type)."\" title=\"".$lng->txt("obj_".$a_type)."\" border=\"0\" vspace=\"0\"/>";
//return "<img src=\"".$a_path."/images/"."icon_".$a_type."$big.png\" alt=\"".$lng->txt("obj_".$a_type)."\" title=\"".$lng->txt("obj_".$a_type)."\" border=\"0\" vspace=\"0\"/>";
}

+ Here is the caller graph for this function:

static ilUtil::getJavaPath ( )
static

get full java path (dir + java command)

Definition at line 2297 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 236 of file class.ilUtil.php.

References $filename, and ilStyleDefinition\getCurrentSkin().

Referenced by ilTestOutputGUI\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");
{
$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 call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::getMemString ( )
static

get current memory usage as string

Definition at line 3613 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 4753 of file class.ilUtil.php.

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

References ilStyleDefinition\getCurrentSkin().

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");
{
$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 call graph for this function:

+ 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 271 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 1322 of file class.ilUtil.php.

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

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

{
global $lng;
include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
if( $security->getAccountSecurityMode() == ilSecuritySettings::ACCOUNT_SECURITY_MODE_CUSTOMIZED )
{
$validPasswordChars = 'A-Z a-z 0-9 _.+?#-*@!$%~/:;';
}
else
{
$validPasswordChars = 'A-Z a-z 0-9 _.+?#-*@!$%~';
}
return sprintf($lng->txt('password_allow_chars'), $validPasswordChars);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilUtil::getSecureTags ( )
static

Definition at line 2675 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 452 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 191 of file class.ilUtil.php.

References $filename, ilStyleDefinition\getCurrentSkin(), and ilStyleDefinition\getCurrentStyle().

Referenced by ilPurchaseBaseGUI\__buildStylesheet(), ilExport\_generateIndexFile(), ilTinyMCE\addRTESupport(), ilTinyMCE\addUserTextEditor(), ilSCORMPresentationGUI\contentSelect(), ilObjTest\deliverPDFfromHTML(), ilTestEvaluationGUI\detailedEvaluation(), ilPageObjectGUI\displayMedia(), ilPCDataTableGUI\editData(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilHACPPresentationGUI\explorer(), ilAICCPresentationGUI\explorer(), ilSAHSPresentationGUI\explorer(), ilSCORMPresentationGUI\explorer(), ilObjContentObjectGUI\explorer(), ilSystemStyleHTMLExport\export(), ilLMPresentationGUI\exportbibinfo(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilSAHSPresentationGUI\finishSahs(), ilSCORMPresentationGUI\finishSahs(), ilObjTest\getCustomStyles(), ilAttendanceList\getFullscreenHTML(), ilExplorer\getOutput(), ilSCORM13Player\getPlayer(), assOrderingQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreviewJS(), assOrderingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutputJS(), ilObjTest\getTestStyleLocation(), ilLMPresentationGUI\glossary(), ilLMPresentationGUI\ilMedia(), ilInitialisation\initHTML(), ilLMPresentationGUI\layout(), ilGlossaryPresentationGUI\media(), ilObjGroupGUI\membersGalleryObject(), ilObjiLincCourseGUI\membersGalleryObject(), ilObjCourseGUI\membersGalleryObject(), ilLMPresentationGUI\offlineexport(), ilTestEvaluationGUI\outCorrectSolution(), ilTestOutputGUI\outCorrectSolution(), ilTestEvaluationGUI\outEvaluation(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilLMPresentationGUI\outputInfoScreen(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilObjTestGUI\printobject(), ilInternalLinkGUI\saveFileLink(), ilSCORM2004ScoGUI\sco_preview(), ilContainerLinkListGUI\show(), ilFramesetGUI\show(), ilCalendarPresentationGUI\show(), ilObjDlBookGUI\showAbstract(), ilObjDlBookGUI\showCitation(), ilLMPresentationGUI\showDownloadList(), ilWysiwygUtil\showFootnote(), ilWysiwygUtil\showItl(), ilInternalLinkGUI\showLinkHelp(), ilContainerGUI\showLinkListObject(), ilTestOutputGUI\showListOfAnswers(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilWysiwygUtil\showMoveCopyQuestion(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintViewSelection(), ilTestOutputGUI\showSideList(), ilLMPresentationGUI\showTableOfContents(), ilRepositoryGUI\showTree(), ilObjSCORM2004LearningModuleGUI\showTree(), ilObjTestGUI\showUserResults(), ilWysiwygUtil\showXtl(), 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");
{
$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.

public

Parameters
stringobj_type
intobj_id
stringsize 'tiny','small' or 'big'

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

References $ilSetting, $path, ilContainer\_lookupIconPath(), and getImagePath().

Referenced by ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilCourseObjectivePresentationGUI\__showOtherResources(), ilCalendarCategoryGUI\addReferenceLinks(), ilAdministrationCommandGUI\delete(), ilRegistrationGUI\fillMembershipLimitation(), ilECSImportedContentTableGUI\fillRow(), ilCourseObjectiveMaterialAssignmentTableGUI\fillRow(), ilCourseObjectiveQuestionAssignmentTableGUI\fillRow(), ilPathGUI\getHTML(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilTrMatrixTableGUI\getSelectableColumns(), ilWorkspaceAccessTableGUI\importData(), ilCourseObjectivesGUI\initFormLimits(), ilObjiLincClassroomGUI\initSettingsForm(), and ilObjiLincCourseGUI\initSettingsForm().

{
global $ilSetting;
if($ilSetting->get("custom_icons"))
{
switch($a_type)
{
case 'cat':
case 'crs':
case 'grp':
include_once('./Services/Container/classes/class.ilContainer.php');
if(strlen($path = ilContainer::_lookupIconPath($a_obj_id,$a_size)))
{
return $path;
}
}
}
switch($a_size)
{
case 'tiny':
$postfix = '_s.png';
break;
case 'big':
$postfix = '_b.png';
break;
default:
$postfix = '.png';
break;
}
return ilUtil::getImagePath('icon_'.$a_type.$postfix);
}

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

References ilObjUser\_getUsersOnline().

Referenced by ilObjUserGUI\editOldObject().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 1560 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(), ilObjSAHSLearningModuleAccess\_lookupDiskUsage(), ilObjFileBasedLMAccess\_lookupDiskUsage(), ilPCTableGUI\_renderTable(), ilChatroomSmilies\_setupFolder(), ilObjUser\_uploadPersonalPicture(), 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(), ilObjUserGUI\editOldObject(), ilObjMediaObjectGUI\executeCommand(), ilObjMediaObject\exportFiles(), ilCOPageHTMLExport\exportHTMLMOB(), ilObjGlossary\exportHTMLMOB(), ilObjContentObject\exportHTMLMOB(), ilObjStyleSheet\getContentStylePath(), ilFileDataShop\getCurrentImageWebPath(), ilObjFileBasedLM\getDataDirectory(), ilObjSAHSLearningModule\getDataDirectory(), ilObjMediaObject\getDataDirectory(), ilPublicUserProfileGUI\getEmbeddable(), ilImageMapEditorGUI\getImageMapOutput(), ilFileDataCourse\getOnlineLink(), ilFSStorageCourse\getOnlineLink(), ilUserXMLWriter\getPictureValue(), ilFSStorageMail\getRelativePathExMailDirectory(), ilLMPresentationGUI\ilMedia(), ilFileSystemStorage\init(), ilGlossaryPresentationGUI\media(), ilObjUser\removeUserPicture(), ilObjUserGUI\removeUserPictureObject(), ilObjMediaPoolGUI\showMedia(), ilPageObjectGUI\showMediaFullscreen(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintView(), ilObjExternalToolsSettingsGUI\updateSocialBookmarkObject(), ilObjMediaObjectGUI\uploadFileObject(), ilPersonalProfileGUI\uploadUserPicture(), ilObjUserGUI\uploadUserPictureObject(), and ilObjStyleSheet\writeCSSFile().

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

References $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 2023 of file class.ilUtil.php.

References htmlfile2pdf().

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

{
$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 2781 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 2271 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 2040 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 1635 of file class.ilUtil.php.

References createDirectory(), and getDataDir().

Referenced by ilTestExport\aggregatedResultsToExcel(), ilRestFileStorage\createFile(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilFileDataExercise\downloadAllDeliveredFiles(), ilExAssignment\downloadAllDeliveredFiles(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilExAssignment\downloadMultipleFiles(), ilSurveyEvaluationGUI\exportCumulatedResults(), ilObjExercise\exportGradesExcel(), ilObjStyleSettingsGUI\exportLayoutObject(), ilTestExport\exportToExcel(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilUserDataSet\getXmlRecord(), ilFileXMLParser\handlerBeginTag(), ilFileXMLParser\handlerEndTag(), ilImagemapPreview\ilImagemapPreview(), ilImport\importObject(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjExercise\processUploadedFile(), ilUserImportParser\saveTempImage(), ilObjFileGUI\saveUnzip(), ilBookmarkAdministrationGUI\sendmail(), 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 = "" 
)
static

Build img tag.

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

References $img.

Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilLPObjectStatisticsLPTableGUI\__construct(), ilShopUtils\_addToShoppingCartSymbol(), ilShopUtils\_getPaymethodSymbol(), ilShopUtils\_getSpecialObjectSymbol(), ilTable2GUI\fillHeader(), ilTrashTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilPCIIMOverlaysTableGUI\fillRow(), ilLMPagesTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilSkillCatTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilDataCollectionRecordListTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilAdministrationGUI\getDropDown(), ilObjectListGUI\getHeaderAction(), ilMainMenuSearchGUI\getHTML(), ilTaggingGUI\getHTML(), ilTrSummaryTableGUI\getItems(), ilObjContentObjectGUI\getLayoutOption(), ilNoteGUI\getNoteListHTML(), ilPageObjectGUI\getTinyMenu(), ilLMPageObjectGUI\initEditLayoutForm(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilLPTableBaseGUI\parseValue(), ilNestedListInputGUI\render(), ilMainMenuGUI\renderEntry(), ilObjMediaCastGUI\showGallery(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilSearchGUI\showSearch(), and ilLuceneSearchGUI\showSearchForm().

{
$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_id != "")
{
$img.= ' id="'.$a_id.'"';
}
$img.= ' border="'.(int) $a_border.'"/>';
return $img;
}

+ Here is the caller graph for this function:

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

Definition at line 4838 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(), ilMailGUI\showHeader(), and ilStartUpGUI\showUserAgreement().

{
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 3558 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 4340 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 4559 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 1141 of file class.ilUtil.php.

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

Referenced by ilSoapUserAdministration\__validateUserData(), ilSetup\checkClientContact(), ilEMailInputGUI\checkInput(), ilMailAddressbookGUI\checkInput(), ilMail\checkRecipients(), ilMail\getEmailOfSender(), ilMail\getIliasMailerAddress(), ilPersonalProfileGUI\saveProfile(), ilObjSystemFolderGUI\saveSettingsObject(), ilObjUserGUI\updateObjectOld(), ilCalendarUserNotification\validate(), and ilObjCourse\validateInfoSettings().

{
// BEGIN Mail: If possible, use PearMail to validate e-mail address
global $ilErr, $ilias;
// additional check for ilias object is needed,
// otherwise setup will fail with this if branch
if(is_object($ilias))
{
require_once './Services/PEAR/lib/Mail/RFC822.php';
$parser = new Mail_RFC822();
try
{
$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;
}
}
catch(Exception $e)
{
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ilErr, "errorHandler"));
return false;
}
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 3833 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 1895 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 4185 of file class.ilUtil.php.

Referenced by ilObjExternalToolsSettingsGUI\saveiLincObject(), and 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 4541 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 4191 of file class.ilUtil.php.

Referenced by ilObjExternalToolsSettingsGUI\saveiLincObject(), and 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 1347 of file class.ilUtil.php.

Referenced by ilSoapUserAdministration\__validateUserData(), ilUserLoginInputGUI\checkInput(), ilAuthContainerApache\fetchData(), 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

standard ilias account security mode ///

customized account security mode ///

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

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

Referenced by ilSoapUserAdministration\__validateUserData(), ilPDNewsBlockGUI\changeFeedSettings(), ilPersonalSettingsGUI\changeUserPassword(), ilPasswordInputGUI\checkInput(), ilPersonalSettingsGUI\savePassword(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), and ilObjUserGUI\updateObjectOld().

{
global $lng;
include_once('./Services/PrivacySecurity/classes/class.ilSecuritySettings.php');
if( $security->getAccountSecurityMode() != ilSecuritySettings::ACCOUNT_SECURITY_MODE_CUSTOMIZED )
{
$customError = null;
switch( true )
{
// no empty password
case empty($a_passwd):
// min password length is 6
case strlen($a_passwd) < 6:
// valid chars for password
case !preg_match("/^[A-Za-z0-9_\.\+\?\#\-\*\@!\$\%\~]+$/", $a_passwd):
return false;
default:
return true;
}
}
// 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
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;
}
}
// if password must contains Special-Chars
if( $security->isPasswordSpecialCharsEnabled() )
{
$specialCharsReg = '/[_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+/';
// check password for existing special-chars
if( !preg_match($specialCharsReg, $a_passwd) )
{
$errors[] = $lng->txt('password_must_special_chars');
$isPassword = false;
}
}
// ensure password matches the positive list of chars/special-chars
if( !preg_match("/^[A-Za-z0-9_\.\+\?\#\-\*\@!\$\%\~\/\:\;]+$/", $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::isWindows ( )
static

check wether the current client system is a windows system

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

Referenced by 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 3838 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 701 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 811 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 910 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 ';
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 ';
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 ';
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 2340 of file class.ilUtil.php.

References $path.

Referenced by ilFileDataCourse\__checkImportPath(), ilFileDataCourse\__checkPath(), ilFileDataGroup\__initDirectory(), ilFileDataCourse\__initDirectory(), ilFileDataExercise\__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(), ilContObjectExport\buildExportFileXML(), ilQuestionpoolExport\buildExportFileXML(), ilGlossaryExport\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(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjUserFolder\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(), ilFileDataExercise\downloadAllDeliveredFiles(), ilExAssignment\downloadAllDeliveredFiles(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilExAssignment\downloadMultipleFiles(), 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(), ilImport\importObject(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilOpenIdSettings\initTempDir(), ilSCORM13Player\logDirectory(), ilObjSCORM2004LearningModule\prepareHTMLExporter(), ilObjExercise\processUploadedFile(), rCopy(), ilObjWorkspaceFolder\recurseFolder(), ilObjFolder\recurseFolder(), ilSetup\saveMasterSetup(), ilObjFileGUI\saveUnzip(), ilFileXMLParser\setFileContents(), 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 2376 of file class.ilUtil.php.

References $dirs.

Referenced by ilChatroomSmilies\_checkSetup(), ilChatroomSmileyTask\_checkSetup(), ilExport\_createExportDirectory(), ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), ilFSStorageCourse\addArchiveSubDirectory(), ilDataSet\addRecordsXml(), ilExportContainer\addSubitems(), ilQuestionpoolExport\buildExportFileXML(), ilChatroomUploadFileTask\checkUploadPath(), ilCertificate\cloneCertificate(), assFlashQuestion\copyApplet(), assJavaApplet\copyApplet(), assImagemapQuestion\copyImage(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assSingleChoice\copyImages(), assMultipleChoice\copyImages(), assQuestion\copySuggestedSolutionFiles(), ilFSStorageExercise\create(), ilFileSystemStorage\create(), ilFSStorageCourse\createArchiveOnlineVersion(), ilFSStorageSession\createDirectory(), ilFSStorageEvent\createDirectory(), ilObjFile\createDirectory(), assFlashQuestion\duplicateApplet(), assJavaApplet\duplicateApplet(), assImagemapQuestion\duplicateImage(), assOrderingQuestion\duplicateImages(), assMatchingQuestion\duplicateImages(), assSingleChoice\duplicateImages(), assMultipleChoice\duplicateImages(), SurveyQuestion\duplicateMaterials(), assQuestion\duplicateSuggestedSolutionFiles(), ilExport\exportEntity(), ilExportContainer\exportObject(), ilExport\exportObject(), assFlashQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assJavaAppletImport\fromXML(), assImagemapQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), ilObjFileDAV\getContentOutputStream(), ilFSStorageExercise\getFeedbackPath(), ilObjUserFolderGUI\getImportDir(), ilObjSurvey\getImportDirectory(), ilObjFile\getUploadFile(), ilForumExporter\getXmlRepresentation(), ilFileExporter\getXmlRepresentation(), ilMediaObjectsExporter\getXmlRepresentation(), ilLMPresentationGUI\handleCodeParagraph(), ilAdvancedMDRecordImportFiles\init(), ilAdvancedMDRecordExportFiles\init(), ilFSStorageCourse\initArchiveDirectory(), ilFileDataShop\initDirectory(), ilFSStorageCourse\initInfoDirectory(), ilFSStorageGroup\initMemberExportDirectory(), ilFSStorageCourse\initMemberExportDirectory(), assFlashQuestion\moveUploadedFile(), ilObjQuestionPool\pasteFromClipboard(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilExport\processExporter(), ilCertificate\saveCertificate(), assMatchingQuestionImport\saveImage(), assFlashQuestion\saveToDb(), assFileUpload\saveWorkingData(), assOrderingQuestion\setImageFile(), assSingleChoice\setImageFile(), assMultipleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assJavaApplet\setJavaAppletFilename(), SurveyQuestion\setMaterialsfile(), assQuestionGUI\suggestedsolution(), assSingleChoice\syncImages(), assMultipleChoice\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 1039 of file class.ilUtil.php.

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

Referenced by 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\">\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\">\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\">\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 2837 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 2681 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 2899 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 3372 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 4034 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(), ilObjStyleSheet\import(), ilCertificate\importCertificate(), ilObjGlossaryGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObject\importFromZipFile(), ilImport\importObject(), ilObjSurvey\importObject(), ilSCORM2004ScoGUI\importSave(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjUserFolderGUI\importUserRoleAssignmentObject(), ilAdvancedMDRecordImportFiles\moveUploadedFile(), assFlashQuestion\moveUploadedFile(), assQuestion\moveUploadedMediaFile(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilDataCollectionDatatype\parseValue(), ilObjMediaObjectGUI\savePropertiesObject(), assFileUpload\saveWorkingData(), assOrderingQuestion\setImageFile(), assSingleChoice\setImageFile(), assMultipleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assJavaApplet\setJavaAppletFilename(), SurveyQuestion\setMaterialsfile(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilFileDataImportMail\storeUploadedFile(), ilFileDataImportGroup\storeUploadedFile(), ilFileDataShop\storeUploadedFile(), ilFileDataExercise\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(), 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 4114 of file class.ilUtil.php.

Referenced by ilHistory\_copyEntriesForObject(), ilHistory\_createEntry(), ilLMPageObject\_getPresentationTitle(), ilObjSCORMTracking\_insertTrackData(), ilPageObject\_lookupActive(), ilObjUser\_setUserInactive(), ilObjUser\_toggleActiveStatusOfUsers(), ilWikiContributor\_writeStatus(), ilDBUpdateNewObjectType\addNewType(), ilRepositoryObjectPlugin\beforeActivation(), ilNewsItem\create(), ilBlogPosting\create(), ilNote\create(), ilPageObject\createFromXML(), ilObjExercise\deliverFile(), ilDataLoader\generateUsers(), ilNewsItem\getLastNewsIdForContext(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilPage(), ilSCORMPresentationGUI\increase_attempt(), ilLMTOCExplorer\isVisible(), ilTableOfContentsExplorer\isVisible(), ilSCORMPresentationGUI\save_module_version(), ilObjUser\saveAsNew(), ilPersonalSkill\saveSelfEvaluation(), ilObjSCORMTracking\scorm12PlayerUnload(), ilObjSCORMTracking\store(), ilObjSCORMTracking\storeJsApi(), ilNewsItem\update(), ilNote\update(), ilObjUser\update(), ilPageObject\update(), ilPageObject\updateFromXML(), ilExAssignment\updateNoticeForUser(), ilExAssignment\updateStatusFeedbackForUser(), ilExAssignment\updateStatusOfUser(), ilExAssignment\updateStatusReturnedForUser(), ilExAssignment\updateStatusSentForUser(), ilExAssignment\updateStatusTimeOfUser(), 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 5008 of file class.ilUtil.php.

{
$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;
}
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 3043 of file class.ilUtil.php.

References stripSlashes().

Referenced by ilBookmarkImportExport\__parseExport(), ilLearningProgressBaseGUI\__showEditUser(), ilObjUserGUI\__showUserDefinedFields(), ilPersonalProfileGUI\__showUserDefinedFields(), ilObjLanguageExtGUI\_getTranslationLink(), ilFeedbackGUI\addBarometer(), assQuestionGUI\addBasicQuestionFormProperties(), ilPaymentStatisticGUI\addCustomer(), ilInfoScreenGUI\addPropertyTextinput(), ilObjSystemFolderGUI\changeHeaderTitleObject(), assErrorText\createErrorTextExport(), assErrorText\createErrorTextOutput(), ilObjRoleTemplateGUI\createObject(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilTable2GUI\deleteTemplate(), ilObjTest\deliverPDFfromHTML(), ilObjSystemFolderGUI\displayBasicSettings(), ilPCSourcecodeGUI\edit(), ilObjFileAccessSettingsGUI\editDiskQuotaMailTemplate(), ilObjRoleTemplateGUI\editObject(), ilObjUserGUI\editOldObject(), ilContainerGUI\editPageContentObject(), assErrorTextGUI\editQuestion(), assClozeTestGUI\editQuestion(), ilObjPaymentSettingsGUI\editVendorObject(), ilBibItemGUI\fill(), ilPCIIMPopupTableGUI\fillRow(), ilExtendedProfileTableGUI\fillRow(), ilPCTabsTableGUI\fillRow(), ilHelpTooltipTableGUI\fillRow(), ilAccessKeyTableGUI\fillRow(), ilObjectTranslationTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilHelpMappingTableGUI\fillRow(), assFileUploadFileTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilPortfolioPageTableGUI\fillRow(), ilStyleColorTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilExportIDTableGUI\fillRow(), ilComponentsTableGUI\fillRow(), ilTaxonomyTableGUI\fillRow(), ilAssessmentFolderLogAdministrationTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilPortfolioTableGUI\fillRow(), ilSurveyQuestionPoolExportTableGUI\fillRow(), ilSCORM2004ExportTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilSurveyQuestionblockbrowserTableGUI\fillRow(), ilListOfQuestionsTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilTestFixedParticipantsTableGUI\fillRow(), ilTestParticipantsTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilBookmarkBlockGUI\fillRow(), ilMDCopyrightSelectionGUI\fillTemplate(), ilFeedbackGUI\get_last(), ilBookmarkAdministrationGUI\get_last(), ilCertificateAdapter\getBaseVariablesForPresentation(), ilCertificateAdapter\getBaseVariablesForPreview(), ilSkillCertificateAdapter\getCertificateVariablesForPresentation(), ilCourseCertificateAdapter\getCertificateVariablesForPresentation(), ilExerciseCertificateAdapter\getCertificateVariablesForPresentation(), ilTestCertificateAdapter\getCertificateVariablesForPresentation(), ilSCORMCertificateAdapter\getCertificateVariablesForPresentation(), ilSkillCertificateAdapter\getCertificateVariablesForPreview(), ilSCORMCertificateAdapter\getCertificateVariablesForPreview(), ilTestCertificateAdapter\getCertificateVariablesForPreview(), ilExerciseCertificateAdapter\getCertificateVariablesForPreview(), ilCourseCertificateAdapter\getCertificateVariablesForPreview(), ilObjAssessmentFolder\getFullPath(), ilFormPropertyGUI\getHiddenTag(), ilUserFilterGUI\getHTML(), ilTaggingGUI\getHTML(), ilBookmarkBlockGUI\getListRowData(), SurveyQuestionGUI\getMaterialOutput(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), assOrderingHorizontalGUI\getPreview(), assClozeTestGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreview(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), assOrderingHorizontalGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), assQuestion\getSuggestedSolutionOutput(), ilTaggingGUI\getTaggingInputHTML(), assOrderingHorizontalGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutputJS(), ilObjTest\getTestResult(), SurveyTextQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMatrixQuestionGUI\getWorkingForm(), ilNoteGUI\initNoteForm(), ilMailSearchGUI\initSearchForm(), ilHiddenInputGUI\insert(), ilRandomTestROInputGUI\insert(), ilEMailInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilCopyrightInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTextWizardInputGUI\insert(), ilPCSourcecodeGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilFileWizardInputGUI\insert(), ilRandomTestInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilPasswordInputGUI\insert(), ilFlashFileInputGUI\insert(), ilMatchingWizardInputGUI\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(), ilTestOutputGUI\outQuestionSummary(), ilObjTestGUI\printobject(), ilCaptchaInputGUI\render(), ilScaleInputGUI\render(), ilNonEditableValueGUI\render(), ilSelectInputGUI\render(), ilMultiSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilTextInputGUI\render(), ilNumberInputGUI\render(), SurveyQuestionGUI\renderChart(), ilHierarchyFormGUI\renderChild(), ilLDAPSettingsGUI\roleMapping(), ilObjSystemFolderGUI\saveSettingsObject(), ilTable2GUI\saveTemplate(), ilMailFormGUI\searchUsers(), ilStartUpGUI\showAccountMigration(), ilMailAddressbookGUI\showAddressbook(), ilMailAddressbookGUI\showAddressForm(), ilPasswordAssistanceGUI\showAssignPasswordForm(), ilPasswordAssistanceGUI\showAssistanceForm(), ilPurchaseBMFGUI\showCreditCard(), ilPurchaseBMFGUI\showDebitEntry(), ilSCORM2004ScoGUI\showExportList(), ilObjSCORM2004LearningModuleGUI\showExportList(), ilShopAdvancedSearchGUI\showForm(), ilPurchaseBMFGUI\showPersonalData(), ilPurchaseBaseGUI\showPersonalData(), ilMailSearchGUI\showResults(), ilSearchGUI\showSearch(), ilMailFormGUI\showSearchForm(), ilLuceneSearchGUI\showSearchForm(), ilObjSCORM2004LearningModuleGUI\showSequencing(), ilStartUpGUI\showUserMappingSelection(), ilPasswordAssistanceGUI\showUsernameAssistanceForm(), assQuestionGUI\suggestedsolution(), assErrorText\toJSON(), and ilObjLanguageExtGUI\viewObject().

{
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 
)
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 4488 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 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 ( )
static

printBacktrace

Parameters
@return

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

References $t.

{
$bt = debug_backtrace();
foreach ($bt as $t)
{
echo "<br>".$t["file"].", ".$t["function"]." [".$t["line"]."]";
}
}
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 1913 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 4134 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 4766 of file class.ilUtil.php.

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

{
return md5(rand(1,9999999) + str_replace(" ", "", (string) microtime()));
}
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 1503 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(), ilObjStyleSheet\create(), ilFSStorageCourse\createArchiveOnlineVersion(), ilSCORM13Package\dbImportSco(), ilBookingObject\doClone(), ilObjFile\doCloneObject(), ilObjMediaObject\duplicate(), ilObjDlBook\export(), ilObjFile\export(), ilObjStyleSheet\export(), ilObjMediaObject\exportFiles(), ilObjFileBasedLMGUI\exportHTML(), ilCOPageHTMLExport\exportHTMLMOB(), ilObjGlossary\exportHTMLMOB(), ilObjContentObject\exportHTMLMOB(), ilObjSCORM2004LearningModule\exportScorm(), ilObjStyleSheet\import(), ilHTMLLearningModuleDataSet\importRecord(), ilPollDataSet\importRecord(), ilBlogDataSet\importRecord(), ilExerciseDataSet\importRecord(), ilMediaObjectDataSet\importRecord(), 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 2211 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 3511 of file class.ilUtil.php.

References $log, exit, ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and ilUIHookPluginGUI\KEEP.

Referenced by ilLearningProgressGUI\__getNextClass(), ilStartUpGUI\_checkGoto(), ilObjItemGroupGUI\_goto(), ilObjMailGUI\_goto(), ilObjPollGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjGroupGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilSurveyPageGUI\addQuestion(), ilShopPurchaseGUI\addToShoppingCart(), ilObjiLincCourseGUI\addUserObject(), ilObjMediaCastGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjTestGUI\afterSave(), ilObjExerciseGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjiLincCourseGUI\agendaObject(), ilSetupGUI\applyCustomUpdates(), ilSetupGUI\applyHotfix(), ilObjTestGUI\backToCourseObject(), ilObjSurveyGUI\backToRepositoryObject(), ilObjTestGUI\backToRepositoryObject(), ilRemoteObjectBaseGUI\callObject(), ilAuthOpenId\callProvider(), ilPurchaseBMFGUI\cancel(), ilPurchaseBaseGUI\cancel(), ilLMPageObjectGUI\cancel(), SurveyQuestionGUI\cancel(), assQuestionGUI\cancel(), ilBookmarkAdministrationGUI\cancel(), ilMailFormGUI\cancelMail(), ilLMStatisticsGUI\cancelMember(), ilObjCourseGUI\cancelMemberObject(), ilObjiLincCourseGUI\cancelMemberObject(), ilObjForumGUI\cancelObject(), ilSharedResourceGUI\cancelPassword(), assQuestionGUI\cancelSync(), ilSetupGUI\changeAccessMode(), ilSetupGUI\changeDefaultClient(), ilSetupGUI\changeMasterPassword(), ilSessionControl\checkCurrentSessionIsAllowed(), ilSessionControl\checkExpiredSession(), ilObjectGUI\checkPermission(), ilObjectGUI\cloneAllObject(), ilInternalLinkGUI\closeLinkHelp(), ilSetupGUI\cmdClient(), ilObjStyleSettingsGUI\confirmedDeleteObject(), ilObjiLincCourseGUI\confirmedRemoveMemberObject(), ilStartUpGUI\confirmRegistration(), ilObjectCopyGUI\copySingleObject(), ilBookmarkAdministrationGUI\createBookmark(), ilObjMediaPoolGUI\createMediaFromUploadDir(), ilObjTestGUI\createQuestionObject(), ilFeedbackGUI\delete(), ilPersonalSettingsGUI\deleteOwnAccount4(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilSetupGUI\displayDeleteConfirmation(), ilObjMediaCastGUI\downloadItemObject(), ilImageMapEditorGUI\editImagemapForward(), ilSurveyPageGUI\editQuestion(), ilErrorHandling\errorHandler(), ilSearchController\executeCommand(), ilShopGUI\executeCommand(), ilMailGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilRepositoryGUI\executeCommand(), ilObjSurveyGUI\executeCreateQuestionObject(), ilObjTestGUI\executeCreateQuestionObject(), ilAuthContainerApache\fetchData(), ilAdministrationGUI\frameset(), 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(), ilObjSurveyGUI\inviteObject(), ilObjiLincClassroomGUI\joinClassroom(), ilObjiLincCourseGUI\joinObject(), ilAuthApache\login(), ShibAuth\login(), ilSetupGUI\loginClient(), ilAuthContainerRadius\loginObserver(), ilAuthContainerOpenId\loginObserver(), ilAuthContainerLDAP\loginObserver(), ilMailSearchCoursesGUI\mailCourses(), ilMailSearchGroupsGUI\mailGroups(), ilMailSearchGroupsGUI\mailMembers(), ilMailSearchCoursesGUI\mailMembers(), ilMailingListsGUI\mailToList(), ilObjRoleGUI\mailToRoleObject(), ilMailAddressbookGUI\mailToUsers(), ilStartUpGUI\migrateAccount(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilTestExpressPageObjectGUI\nextQuestion(), ilMailFolderGUI\performDeleteSubFolder(), ilSetupGUI\performLogin(), ilSetupGUI\performMLogin(), ilAssQuestionHintRequestGUI\performRequestCmd(), ilObjSCORM2004LearningModuleGUI\preview(), ilTestExpressPageObjectGUI\prevQuestion(), ilStartUpGUI\processStartingPage(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilObjQuestionPoolGUI\questionsObject(), ilObjSurveyGUI\questionsObject(), ilObjTestGUI\questionsObject(), SurveyQuestionGUI\redirectAfterSaving(), ilObjExerciseGUI\redirectFeedbackMailObject(), ilObjLinkResourceGUI\redirectToLink(), ilTestExpressPageObjectGUI\redirectToQuestionEditPage(), ilTestExpressPageObjectGUI\redirectToQuestionPoolSelectionPage(), ilImprintGUI\renderFullscreen(), ilLMPageObjectGUI\save(), ilObjFileGUI\save(), ilFeedbackGUI\save(), assQuestionGUI\save(), ilObjStyleSettingsGUI\saveActiveStylesObject(), ilSetupGUI\saveBasicSettings(), ilObjStyleSettingsGUI\saveBasicStyleSettingsObject(), ilSetupGUI\saveClientIni(), ilSetupGUI\saveContact(), ilMailFormGUI\saveDraft(), assQuestionGUI\saveEdit(), ilSetupGUI\saveLanguages(), ilObjStyleSettingsGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilPersonalProfileGUI\savePersonalData(), ilSetupGUI\saveRegistration(), assQuestionGUI\saveReturn(), ilObjStyleSettingsGUI\saveScopeObject(), ilLMStatisticsGUI\searchCancelled(), ilBookmarkAdministrationGUI\sendmail(), ilObjCourseGUI\sendMailToSelectedUsersObject(), ilObjGroupGUI\sendMailToSelectedUsersObject(), ilMailFormGUI\sendMessage(), ilObjAuthSettingsGUI\setAuthModeObject(), ilObjFileBasedLMGUI\showLearningModule(), ilStartUpGUI\showLogin(), ilRemoteObjectBaseGUI\showObject(), ilStartUpGUI\showUserAgreement(), assQuestionGUI\sync(), ilSetupGUI\toggleClientList(), ilObjStyleSettingsGUI\toggleGlobalDefaultObject(), ilObjStyleSettingsGUI\toggleGlobalFixedObject(), 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 3085 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 875 of file class.ilUtil.php.

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

{
$link = $matches[0];
$ref_id = $matches[2];
if ($ref_id > 0)
{
if ($obj_id > 0)
{
$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 3846 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 1971 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 3780 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 2938 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 2754 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 2619 of file class.ilUtil.php.

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

Referenced by ilPCQuestion\copyPoolQuestionIntoPage(), and stripSlashes().

{
// 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 4806 of file class.ilUtil.php.

References $tpl.

Referenced by ilDataCollectionFieldListGUI\__construct(), ilDataCollectionTableEditGUI\__construct(), ilLMStatisticsGUI\__search(), ilCourseArchivesGUI\__showArchivesMenu(), ilLPListOfObjectsGUI\__showUsersList(), ilChatroomSmilies\_checkSetup(), ilChatroomSmileyTask\_checkSetup(), ilUploadFiles\_copyUploadFile(), ilObjItemGroupGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilObjMailGUI\_goto(), ilLMPageObjectGUI\_goto(), ilObjectPluginGUI\_goto(), ilGlossaryTermGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjFileGUI\_goto(), ilObjWikiGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilStructureObjectGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjExerciseGUI\_goto(), ilObjGroupGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjCourseGUI\_goto(), ilObjCategoryGUI\_importCategories(), ilCalendarInboxGUI\acceptShared(), ilStructureObjectGUI\activatePages(), ilObjComponentSettingsGUI\activatePlugin(), ilDidacticTemplateSettingsGUI\activateTemplates(), ilCourseParticipantsGroupsGUI\add(), ilObjCourseGroupingGUI\add(), ilConditionHandlerInterface\add(), ilObjBlogGUI\addContributor(), ilObjBlogGUI\addContributorContainerAction(), ilObjGlossaryGUI\addDefinition(), ilObjExerciseGUI\addMembersObject(), ilSurveyPageGUI\addQuestionToolbar(), ilPermission2GUI\addRole(), ilLDAPSettingsGUI\addRoleAssignment(), ilAuthShibbolethSettingsGUI\addRoleAssignmentRule(), ilObjCourseGUI\addStarterObject(), ilObjExerciseGUI\addTeamMemberActionObject(), ilObjExerciseGUI\addTeamMemberContainerActionObject(), ilObjGlossaryGUI\addTerm(), ilObjDlBookGUI\addTranslation(), ilObjBlogGUI\addUserFromAutoComplete(), ilObjExerciseGUI\addUserFromAutoCompleteObject(), ilObjRoleGUI\addUserObject(), ilObjGroupGUI\addUserObject(), ilObjPaymentSettingsGUI\addUserObject(), ilObjPaymentSettingsGUI\addVendorObject(), ilObjRoleTemplateGUI\adoptPermSaveObject(), ilObjRoleGUI\adoptPermSaveObject(), ilObjiLincCourseGUI\afterSave(), ilObjUserFolderGUI\appliedUsersObject(), ilConditionHandlerInterface\askDelete(), ilCalendarCategoryGUI\askDeleteAppointments(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCustomUserFieldsGUI\askDeleteField(), ilObjCourseGroupingGUI\askDeleteGrouping(), ilCourseObjectivesGUI\askDeleteObjective(), ilObjCourseGUI\askDeleteStarterObject(), ilLPListOfSettingsGUI\assign(), ilConditionHandlerInterface\assign(), ilPageEditorGUI\assignCharacteristicForm(), ilObjRoleGUI\assignDesktopItemObject(), ilObjGroupGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignMembersObject(), ilObjCategoryGUI\assignRolesObject(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilObjGroupGUI\assignSubscribersObject(), ilObjCourseGUI\assignSubscribersObject(), ilObjCourseGUI\autoFillObject(), ilScorm2004Export\buildExportFilePDF(), ilRemoteObjectBaseGUI\callObject(), ilChatroomViewTask\cancelJoin(), ilCertificateGUI\certificateEditor(), ilPDNewsBlockGUI\changeFeedSettings(), ilPermission2GUI\changeOwner(), ilSetupGUI\changeSettingsType(), ilObjBookingPoolGUI\changeStatusObject(), ilSurveyEvaluationGUI\checkEvaluationAccess(), ilAssQuestionHintsGUI\checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), ilAssQuestionHintsGUI\checkForSingleHintIdAndRedirectOnFailure(), ilDataCollectionTableEditGUI\checkInput(), ilPropertyFormGUI\checkInput(), ilDataCollectionFieldEditGUI\checkInput(), ilSharedResourceGUI\checkPassword(), ilObjWorkspaceFolderGUI\checkPassword(), ilTestOutputGUI\checkPassword(), ilObjectGUI\checkPermission(), assMatchingQuestion\checkSaveData(), ilChatroom\checkUserPermissions(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilContainerGUI\cloneWizardPageObject(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjExerciseGUI\confirmDeassignMembersObject(), ilDidacticTemplateSettingsGUI\confirmDelete(), ilCalendarCategoryGUI\confirmDelete(), ilConsultationHoursGUI\confirmDelete(), ilCourseArchivesGUI\confirmDeleteArchives(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilAssQuestionHintsGUI\confirmDeleteCmd(), ilLPObjectStatisticsGUI\confirmDeleteData(), ilObjExerciseGUI\confirmDeleteDeliveredObject(), ilMemberExportGUI\confirmDeleteExportFile(), ilObjTestGUI\confirmDeleteExportFileObject(), ilObjSurveyGUI\confirmDeleteExportFileObject(), ilObjectCustomUserFieldsGUI\confirmDeleteFields(), ilAdvancedMDSettingsGUI\confirmDeleteFields(), ilFileSystemGUI\confirmDeleteFile(), ilAdvancedMDSettingsGUI\confirmDeleteFiles(), ilObjSessionGUI\confirmDeleteFilesObject(), ilObjCourseGUI\confirmDeleteInfoFilesObject(), ilObjLinkResourceGUI\confirmDeleteLink(), ilObjGroupGUI\confirmDeleteMembersObject(), ilObjRoleFolderGUI\confirmDeleteObject(), ilObjUserFolderGUI\confirmdeleteObject(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilLDAPSettingsGUI\confirmDeleteRules(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilPCIIMTriggerEditorGUI\confirmDeleteTrigger(), ilNewsItemGUI\confirmDeletionNewsItems(), ilObjBookingPoolGUI\confirmedBookingObject(), ilBookmarkAdministrationGUI\confirmedMove(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilObjMediaPoolGUI\confirmRemove(), ilContainerGUI\confirmRemoveFromSystemObject(), ilObjExerciseGUI\confirmRemoveTeamMemberObject(), ilObjGlossaryGUI\confirmTermDeletion(), ilObjSurveyGUI\constraintsAddObject(), ilObjMediaCastGUI\convertFileObject(), ilObjWorkspaceFolderGUI\copy(), ilObjTestGUI\copyAndLinkToQuestionpoolObject(), ilObjStyleSheetGUI\copyCharacteristicsObject(), ilObjectCopyGUI\copyContainer(), ilStructureObjectGUI\copyItems(), ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilObjContentObjectGUI\copyItems(), ilContainerGUI\copyObject(), ilMediaItem\copyOriginal(), ilObjTestGUI\copyQuestionObject(), ilObjWorkspaceFolderGUI\copyShared(), ilObjectCopyGUI\copySingleObject(), ilDidacticTemplateSettingsGUI\copyTemplate(), ilObjMediaPoolGUI\copyToClipboard(), ilBookmarkAdministrationGUI\createBookmark(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilFileSystemGUI\createDirectory(), ilPCFileListGUI\createFileItem(), ilOpenIdSettingsGUI\createProvider(), ilObjSurveyGUI\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(), ilCourseArchivesGUI\delete(), ilDataCollectionTableEditGUI\delete(), ilCalendarCategoryGUI\delete(), ilConditionHandlerInterface\delete(), ilConsultationHoursGUI\delete(), ilCalendarCategoryGUI\deleteAppointments(), ilPCImageMapEditorGUI\deleteAreas(), ilImageMapEditorGUI\deleteAreas(), ilRegistrationSettingsGUI\deleteAssignment(), ilMailAttachmentGUI\deleteAttachments(), ilObject2GUI\deleteConfirmation(), ilObject2GUI\deleteConfirmedObjects(), ilPaymentCouponGUI\deleteCoupon(), ilLPObjectStatisticsGUI\deleteData(), ilObjExerciseGUI\deleteDeliveredObject(), ilObjRoleGUI\deleteDesktopItemsObject(), ilAdvancedMDSettingsGUI\deleteFields(), ilAdvancedMDSettingsGUI\deleteFiles(), ilObjSessionGUI\deleteFilesObject(), ilObjCourseGUI\deleteInfoFilesObject(), SurveyQuestionGUI\deleteMaterial(), ilObjGroupGUI\deleteMembersObject(), ilObjCourseGUI\deleteMembersObject(), ilPaymentObjectGUI\deleteObject(), ilCourseObjectivesGUI\deleteObjectives(), ilRepUtilGUI\deleteObjects(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), ilOpenIdSettingsGUI\deleteProvider(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilAdvancedMDSettingsGUI\deleteRecords(), ilLDAPSettingsGUI\deleteRoleMapping(), ilLDAPSettingsGUI\deleteRules(), ilAuthShibbolethSettingsGUI\deleteRules(), ilObjSurveyGUI\deleteSavedMessageObject(), ilObjCourseGUI\deleteStarterObject(), ilObjCourseGUI\deleteSubscribers(), ilDidacticTemplateSettingsGUI\deleteTemplates(), ilObjDlBookGUI\deleteTranslation(), ilObjCategoryGUI\deleteTranslationsObject(), ilObjCategoryGUI\deleteUsersObject(), ilObjPaymentSettingsGUI\deleteVendorsObject(), ilObjCourseGUI\deliverCertificateObject(), ilObjExerciseGUI\deliverFileObject(), ilCalendarCategoryGUI\details(), ilObjMediaCastGUI\determinePlaytimeObject(), ilObjExerciseGUI\directSubmitObject(), ilSetupGUI\displayLanguages(), ilECSMappingSettingsGUI\dMap(), ilDataCollectionStandardField\doCreate(), ilPermissionGUI\doImportRole(), ilDataCollectionStandardField\doRead(), ilExportGUI\download(), ilCourseArchivesGUI\downloadArchives(), ilObjCourseGUI\downloadArchivesObject(), ilMemberExportGUI\downloadExportFile(), ilObjSurveyGUI\downloadExportFileObject(), ilObjExerciseGUI\downloadFeedbackFileObject(), ilAdvancedMDSettingsGUI\downloadFile(), ilObjExerciseGUI\downloadFileObject(), ilObjMediaCastGUI\downloadItemObject(), ilObjSystemFolderGUI\downloadJavaServerIniObject(), ilObjExerciseGUI\downloadObject(), ilECSMappingSettingsGUI\dSynchronizeTrees(), ilECSMappingSettingsGUI\dUpdateSettings(), ilECSMappingSettingsGUI\dUpdateTreeSettings(), ilCalendarCategoryGUI\edit(), ilConsultationHoursGUI\edit(), ilConditionHandlerInterface\edit(), ilCourseObjectivesGUI\edit(), ilPageObjectGUI\edit(), ilObjUserFolderGUI\editAppliedUsersObject(), ilObjExternalToolsSettingsGUI\editiLincObject(), ilObjLinkResourceGUI\editLink(), ilObjGroupGUI\editMembersObject(), ilObjCourseGUI\editMembersObject(), ilPaymentObjectGUI\editPayMethod(), ilSurveyPhrasesGUI\editPhrase(), SurveyMultipleChoiceQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), ilLDAPSettingsGUI\editRoleAssignment(), ilDidacticTemplateSettingsGUI\editTemplate(), ilSurveyEvaluationGUI\evaluation(), ilSurveyEvaluationGUI\evaluationuser(), ilSurveyPageGUI\executeCommand(), ilObjectActivationGUI\executeCommand(), ilRadiusSettingsGUI\executeCommand(), ilLDAPSettingsGUI\executeCommand(), ilAuthShibbolethSettingsGUI\executeCommand(), ilCASSettingsGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilPersonalDesktopGUI\executeCommand(), ilMemberExportGUI\executeCommand(), ilTestScoringGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilAdministrationGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilPageObjectGUI\executeCommand(), ilObjSurveyGUI\executeCreateQuestionObject(), ilObjSCORMLearningModuleGUI\export(), ilAccountCodesGUI\exportCodes(), ilRegistrationSettingsGUI\exportCodes(), ilObjSurveyGUI\exportCodesObject(), ilAdvancedMDSettingsGUI\exportRecords(), ilObjSCORMLearningModuleGUI\exportSelectionUsers(), ilDidacticTemplateSettingsGUI\exportTemplate(), ilObjMediaCastGUI\extractPreviewImageObject(), ilTestScoringGUI\fetchActiveIdParameter(), ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationType(), ilCourseRegistrationGUI\fillRegistrationType(), ilCourseObjectivesGUI\finalTestAssignment(), ilCourseObjectivesGUI\finalTestLimits(), ilShopShoppingCartGUI\finishPaypal(), ilLPListOfSettingsGUI\groupMaterials(), ilECSObjectSettings\handleSettingsUpdate(), ilObjectStatusGUI\ilObjectStatusGUI(), ilCalendarCategoryGUI\importAppointments(), ilObjSurveyGUI\importExternalRecipientsFromFileObject(), ilObjSurveyGUI\importExternalRecipientsFromTextObject(), ilBookmarkAdministrationGUI\importFile(), ilObjectGUI\importFileObject(), ilObjGroupGUI\importFileObject2(), ilAdvancedMDSettingsGUI\importRecord(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilSetupGUI\initClientDbForm(), ilObjSessionGUI\initContainer(), ilPCSkillsGUI\initForm(), ilSurveyPageGUI\insertNewQuestion(), ilObjTestGUI\insertQuestionsAfterObject(), ilObjTestGUI\insertQuestionsBeforeObject(), ilObjSurveyGUI\insertSavedMessageObject(), ilSetupGUI\installDatabase(), ilObjSurveyGUI\inviteUserGroupObject(), ilRegistrationGUI\join(), ilPersonalDesktopGUI\jumpToBookmarks(), ilPersonalDesktopGUI\jumpToNotes(), ilObjGroupGUI\leaveObject(), ilObjCourseGUI\leaveObject(), ilRepositorySearchGUI\listUsers(), ilLMStatisticsGUI\listUsersGroup(), ilLMStatisticsGUI\listUsersRole(), ilObjRoleGUI\listUsersRoleObject(), ilMailingListsGUI\mailToList(), ilObjLanguageExtGUI\maintainObject(), ilCourseObjectivesGUI\materialAssignment(), ilBookmarkAdministrationGUI\move(), ilObjTestGUI\moveQuestionsObject(), moveUploadedFile(), ilSurveyExecutionGUI\navigate(), ilPCFileItemGUI\newFileItem(), ilObjExerciseGUI\outCertificateObject(), ilTestOutputGUI\outQuestionSummary(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilObjTaxonomyGUI\pasteItems(), ilMailFolderGUI\performAddSubFolder(), ilAssQuestionHintsGUI\performDeleteCmd(), ilPaymentCouponGUI\performDeleteCoupon(), ilMailFolderGUI\performDeleteSubFolder(), ilObjPaymentSettingsGUI\performEditVendorObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjCourseGUI\performRemoveFromWaitingListObject(), ilMailFolderGUI\performRenameSubFolder(), ilRepositorySearchGUI\performSearch(), ilObjWikiGUI\performSearchObject(), ilObjPaymentSettingsGUI\performSearchSPObject(), ilObjRoleTemplateGUI\permObject(), ilSetup\printProxyStatus(), ilObjSystemFolderGUI\printProxyStatus(), ilObjSurveyGUI\printViewObject(), ilObjExercise\processUploadedFile(), ilObjTestGUI\propertiesObject(), ilObjContentObjectGUI\publishExportFile(), ilObjSurveyGUI\questionsObject(), ilObjExerciseGUI\redirectFeedbackMailObject(), ilObjComponentSettingsGUI\refreshLanguages(), ilObjLinkResourceGUI\refreshLinkCheck(), ilObjContentObjectGUI\refreshLinkCheck(), ilObjGroupGUI\refuseFromListObject(), ilObjCourseGUI\refuseFromListObject(), ilObjGroupGUI\refuseSubscribersObject(), ilObjCourseGUI\refuseSubscribersObject(), ilLPListOfSettingsGUI\releaseMaterials(), ilCourseParticipantsGroupsGUI\remove(), ilObjBlogGUI\removeContributor(), ilObjCourseGUI\removeFromWaitingList(), ilObjCourseGUI\removeMembersObject(), ilRepUtilGUI\removeObjectsFromSystem(), ilObjExerciseGUI\removeTeamMemberObject(), ilWikiPageGUI\renamePage(), ilRepUtilGUI\restoreObjects(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjBookingPoolGUI\rsvInUseObject(), ilObjBookingPoolGUI\rsvNotInUseObject(), ilObjBookingPoolGUI\rsvUncancelObject(), ilObjExerciseVerificationGUI\save(), ilObjTestVerificationGUI\save(), ilCalendarUserSettingsGUI\save(), ilMemberAgreementGUI\save(), ilCalendarCategoryGUI\save(), ilObjLinkResourceGUI\save(), ilObjCalendarSettingsGUI\save(), ilRadiusSettingsGUI\save(), ilRegistrationSettingsGUI\save(), ilCASSettingsGUI\save(), ilFeedbackGUI\save(), ilCalendarAppointmentGUI\save(), ilCourseObjectivesGUI\save(), ilLDAPSettingsGUI\save(), ilObjPrivacySecurityGUI\save_privacy(), ilObjPrivacySecurityGUI\save_security(), ilObjLinkResourceGUI\saveAddLink(), ilRegistrationSettingsGUI\saveAssignment(), ilObjExerciseGUI\saveAssignmentObject(), ilSetupGUI\saveBasicSettings(), ilObjExerciseGUI\saveBlogObject(), ilObjMediaCastGUI\saveCastItemObject(), ilSetupGUI\saveClientIni(), ilObjContentObjectGUI\saveExportIds(), ilObjectCustomUserFieldsGUI\saveField(), ilAdvancedMDSettingsGUI\saveField(), ilAccountRegistrationGUI\saveForm(), ilAssQuestionHintGUI\saveFormCmd(), ilObjUserFolderGUI\saveGeneralSettingsObject(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), ilObjSCORM2004LearningModuleGUI\saveGlossary(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjPaymentSettingsGUI\saveInvoiceNumberObject(), ilSetupGUI\saveLanguages(), SurveyMatrixQuestionGUI\saveLayout(), ilAssQuestionHintsGUI\saveListOrderCmd(), ilObjUserFolderGUI\saveLoginnameSettingsObject(), ilObjSearchSettingsGUI\saveLuceneSettingsObject(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilObjTestGUI\saveMarksObject(), ilObjContentObjectGUI\saveMenuEntry(), ilContainerReferenceGUI\saveObject(), ilObjGroupGUI\saveObject(), ilObjSessionGUI\saveObject(), ilObjRoleGUI\saveObject(), ilConditionHandlerInterface\saveObligatoryList(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilConditionHandlerInterface\saveObligatorySettings(), ilObjPaymentSettingsGUI\savePaypalSettingsObject(), ilPersonalProfileGUI\savePersonalData(), ilPersonalProfileGUI\saveProfile(), ilObjSurveyGUI\savePropertiesObject(), ilSetupGUI\saveProxy(), ilObjSystemFolderGUI\saveProxyObject(), ilCourseObjectivesGUI\saveQuestionOverview(), ilAdvancedMDSettingsGUI\saveRecord(), ilSetupGUI\saveRegistration(), ilRegistrationSettingsGUI\saveRoleAccessLimitations(), ilLDAPSettingsGUI\saveRoleMapping(), ilLDAPSettingsGUI\saveRoleSelection(), ilConsultationHoursGUI\saveSequence(), ilLPListOfSettingsGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilObjSystemFolderGUI\saveSettingsObject(), ilObjectCopyGUI\saveSource(), ilObjectCopyGUI\saveTarget(), ilShopTopicsGUI\saveTopic(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilObjFileGUI\saveUnzip(), ilSurveyExecutionGUI\saveUserInput(), ilLMStatisticsGUI\search(), ilObjUserFolderGUI\searchResultHandler(), ilObjectCopyGUI\searchSource(), ilObjCourseGroupingGUI\selectCourse(), ilObjRoleGUI\selectDesktopItemObject(), ilRepositorySearchGUI\selectObject(), ilCourseObjectivesGUI\selfAssessmentAssignment(), ilCourseObjectivesGUI\selfAssessmentLimits(), ilObjSurveyGUI\sendCodesMailObject(), ilMemberAgreementGUI\sendInfoMessage(), ilObjCourseGUI\sendMailToSelectedUsersObject(), ilObjGroupGUI\sendMailToSelectedUsersObject(), ilObjExerciseGUI\sendMembersObject(), ilLDAPSettingsGUI\serverList(), ilSetting\set(), ilObjAuthSettingsGUI\setAuthModeObject(), ilImageMapEditorGUI\setLink(), ilStructureObjectGUI\setPageLayout(), ilObjContentObjectGUI\setPageLayout(), ilObjExerciseGUI\setSelectedBlogObject(), ilObjExerciseGUI\setSelectedPortfolioObject(), ilLMPresentationGUI\setSessionVars(), ilImageMapEditorGUI\setShape(), ilCalendarCategoryGUI\shareAssign(), ilCalendarCategoryGUI\shareAssignRoles(), ilCalendarCategoryGUI\shareDeassign(), ilCalendarCategoryGUI\sharePerformSearch(), ilCalendarCategoryGUI\shareSearch(), ilLPObjectStatisticsGUI\showAccessGraph(), ilLPObjectStatisticsGUI\showDailyGraph(), ilRepUtilGUI\showDeleteConfirmation(), ilAssQuestionHintGUI\showFormCmd(), ilObjectCopyGUI\showItemSelection(), ilLPObjectStatisticsGUI\showLearningProgressGraph(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintView(), ilMailSearchGUI\showResults(), ilLPObjectStatisticsGUI\showTypesGraph(), ilLPListOfObjectsGUI\showUserObjectMatrix(), ilCourseContentGUI\showUserTimings(), ilSurveyExecutionGUI\start(), SurveyQuestionGUI\syncCopies(), ilCalendarCategoryGUI\synchroniseCalendar(), ilCalendarCategoryGUI\unshare(), ilObjectActivationGUI\update(), ilCalendarCategoryGUI\update(), ilCalendarAppointmentGUI\update(), ilObjUserFolderGUI\updateAppliedUsersObject(), ilObjExerciseGUI\updateAssignmentObject(), ilSetupGUI\updateBasicSettings(), ilBookmarkAdministrationGUI\updateBookmark(), ilBookmarkAdministrationGUI\updateBookmarkFolder(), ilECSSettingsGUI\updateCommunities(), ilConditionHandlerInterface\updateCondition(), ilObjPaymentSettingsGUI\updateDefaultCurrencyObject(), ilObjectCustomUserFieldsGUI\updateField(), ilAdvancedMDSettingsGUI\updateField(), ilCustomUserFieldsGUI\updateFields(), ilAdvancedMDSettingsGUI\updateFields(), ilCourseObjectivesGUI\updateFinalTestAssignment(), ilCourseObjectivesGUI\updateFinalTestLimits(), ilMDEditorGUI\updateGeneral(), ilObjCourseGUI\updateInfoObject(), ilObjLinkResourceGUI\updateLink(), ilObjLinkResourceGUI\updateLinks(), ilCourseObjectivesGUI\updateMaterialAssignment(), ilObjGroupGUI\updateMembersObject(), ilObjCourseGUI\updateMembersObject(), ilConsultationHoursGUI\updateMulti(), ilContainerReferenceGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjRoleGUI\updateObject(), ilObjSessionGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjUserGUI\updateObjectOld(), ilObjComponentSettingsGUI\updatePlugin(), ilSCORM2004ScoGUI\updateProperties(), ilOpenIdSettingsGUI\updateProvider(), ilMDEditorGUI\updateQuickEdit(), ilAdvancedMDSettingsGUI\updateRecord(), ilLDAPSettingsGUI\updateRoleAssignment(), ilAuthShibbolethSettingsGUI\updateRoleAssignmentRule(), ilRegistrationSettingsGUI\updateRoles(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentLimits(), ilConsultationHoursGUI\updateSettings(), ilChatroomSmileyTask\updateSmiliesObject(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilCourseContentGUI\updateTimings(), ilECSSettingsGUI\updateTitle(), ilContainerReferenceGUI\updateTitleObject(), ilObjectServiceSettingsGUI\updateToolSettings(), ilCourseContentGUI\updateUserTimings(), ilCalendarCategoryGUI\uploadAppointments(), ilMailAttachmentGUI\uploadFile(), ilFileSystemGUI\uploadFile(), ilObjExerciseGUI\uploadFileObject(), ilObjQuestionPoolGUI\uploadQplObject(), ilObjTestGUI\uploadTstObject(), ilPersonalProfileGUI\uploadUserPicture(), ilObjUserGUI\uploadUserPictureObject(), ilObjExerciseGUI\uploadZipObject(), ilLPListOfObjectsGUI\userDetails(), ilObjUserFolderGUI\usrExportCsvObject(), ilObjUserFolderGUI\usrExportX86Object(), ilObjUserFolderGUI\usrExportXmlObject(), ilCustomUserFieldsGUI\validateForm(), and ilObjLanguageExtGUI\viewObject().

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

References $tpl.

Referenced by ilPurchaseBaseGUI\__buildLocator(), 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(), ilObjStyleSettingsGUI\activateObject(), ilMailFolderGUI\add(), ilObjFileBasedLMGUI\addBibItemObject(), ilObjContentObjectGUI\addBibItemObject(), ilECSSettingsGUI\addCategoryMapping(), ilObjPaymentSettingsGUI\addCustomerObject(), ilObjTestGUI\addDefaultsObject(), SurveyQuestionGUI\addMaterial(), ilForumModeratorsGUI\addModerator(), ilPaymentObjectGUI\addObject(), ilObjTestGUI\addParticipantsObject(), SurveySingleChoiceQuestionGUI\addSelectedPhrase(), SurveyMatrixQuestionGUI\addSelectedPhrase(), 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(), ilObjQuestionPoolGUI\assessmentObject(), ilPersonalSkillsGUI\assignMaterial(), assImagemapQuestionGUI\back(), ilPermissionGUI\blockRoles(), ilObjiLincUserGUI\cancel(), ilObjiLincClassroomGUI\cancel(), ilObjSCORMLearningModuleGUI\cancel(), ilObjStyleSheetGUI\cancelCharacteristicDeletionObject(), ilObjSurveyGUI\cancelDefineQuestionblockObject(), ilObjSCORMLearningModuleGUI\cancelDelete(), ilObjiLincClassroomGUI\cancelDeleteClassroom(), ilObjTestGUI\cancelDeleteExportFileObject(), ilObjSurveyGUI\cancelDeleteExportFileObject(), ilObjStyleSettingsGUI\cancelDeleteObject(), ilObjStyleSettingsGUI\cancelDeletePgObject(), ilObjSurveyGUI\cancelDeleteSelectedUserDataObject(), ilObjSCORM2004LearningModuleGUI\cancelDeleteTracking(), ilObjiLincCourseGUI\canceledObject(), SurveyQuestionGUI\cancelExplorer(), ilObjiLincCourseGUI\cancelMemberObject(), ilObjSearchSettingsGUI\cancelObject(), ilObjForumGUI\cancelObject(), ilObjStyleSheetGUI\cancelObject(), ilShopShoppingCartGUI\cancelPaypal(), SurveySingleChoiceQuestionGUI\cancelSavePhrase(), SurveyMatrixQuestionGUI\cancelSavePhrase(), SurveySingleChoiceQuestionGUI\cancelStandardNumbers(), SurveyMatrixQuestionGUI\cancelStandardNumbers(), SurveyQuestionGUI\cancelSync(), SurveySingleChoiceQuestionGUI\cancelViewPhrase(), SurveyMatrixQuestionGUI\cancelViewPhrase(), ilSetupGUI\changeAccessMode(), ilSetupGUI\changeDefaultClient(), ilMailFolderGUI\changeFolder(), ilSetupGUI\changeMasterPassword(), ilSetupGUI\changeSettingsType(), ilMailAddressbookGUI\checkInput(), ilObjCourseGUI\checkLicenses(), ilTestOutputGUI\checkOnlineTestAccess(), assOrderingQuestion\checkSaveData(), ilObjPaymentSettingsGUI\checkShopActivationObject(), assFileUpload\checkUpload(), ilContainerGUI\cloneAllObject(), ilSetupGUI\cloneSaveSource(), ilObjForumGUI\cloneWizardPageObject(), ilObjSurveyGUI\codesObject(), ilObjExerciseGUI\confirmAssignmentsDeletionObject(), ilMailingListsGUI\confirmDelete(), ilMailAddressbookGUI\confirmDelete(), ilShopNewsGUI\confirmDelete(), ilObjPollGUI\confirmDeleteAllVotes(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilObjMDSettingsGUI\confirmDeleteEntries(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilObjTestGUI\confirmDeleteExportFileObject(), ilMailFolderGUI\confirmDeleteMails(), ilMailingListsGUI\confirmDeleteMembers(), ilShopTopicsGUI\confirmDeleteTopic(), ilObjPaymentSettingsGUI\confirmDeleteVatObject(), ilExportGUI\confirmDeletion(), ilObjTaxonomyGUI\confirmedDelete(), ilObjSkillManagementGUI\confirmedDelete(), ilObjSCORM2004LearningModuleGUI\confirmedDelete(), ilObjiLincClassroomGUI\confirmedDeleteClassroom(), ilObjiLincCourseGUI\confirmedRemoveMemberObject(), ilObjHelpSettingsGUI\confirmHelpModulesDeletion(), ilBasicSkillGUI\confirmLevelDeletion(), ilObjPortfolioGUI\confirmPortfolioDeletion(), ilObjPortfolioGUI\confirmPortfolioPageDeletion(), ilObjWikiGUI\confirmRemoveImportantPagesObject(), SurveySingleChoiceQuestionGUI\confirmSavePhrase(), SurveyMatrixQuestionGUI\confirmSavePhrase(), ilSkillSelfEvaluationGUI\confirmSelfEvaluationDeletion(), ilSettingsTemplateGUI\confirmSettingsTemplateDeletion(), ilPersonalSkillsGUI\confirmSkillRemove(), ilPCTabsGUI\confirmTabsDeletion(), ilDidacticTemplateGUI\confirmTemplateSwitch(), ilObjSurveyGUI\constraintsObject(), ilObjSurveyGUI\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(), ilObjPortfolioGUI\copyPageForm(), ilObjTestGUI\copyQuestionObject(), ilObjSurveyGUI\copyQuestionsToPoolObject(), ilObjExerciseGUI\createBlogObject(), ilBookmarkAdministrationGUI\createBookmark(), ilObjSurveyGUI\createConstraintsObject(), ilObjSurveyQuestionPoolGUI\createExportFileObject(), ilContainerReferenceGUI\createObject(), ilObjTestGUI\createQuestionPoolAndCopyObject(), ilObjTestGUI\createTestExportObject(), ilObjTestGUI\createTestResultsExportObject(), ilSkillTreeNodeGUI\cutItems(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilContainerGUI\cutObject(), ilStructureObjectGUI\cutPage(), ilObjSCORMLearningModuleGUI\decreaseAttempts(), ilObjSCORM2004LearningModuleGUI\decreaseAttempts(), ilObjTestGUI\defaultsObject(), ilObjSurveyGUI\defineQuestionblockObject(), ilObjPollGUI\deleteAllVotes(), ilECSSettingsGUI\deleteCategoryMappings(), ilObjStyleSheetGUI\deleteCharacteristicConfirmationObject(), ilPaymentCouponGUI\deleteCodes(), ilObjSurveyGUI\deleteCodesObject(), ilObjStyleSheetGUI\deleteColorConfirmationObject(), ilObjMDSettingsGUI\deleteEntries(), ilObjTestGUI\deleteExportFileObject(), ilObjSurveyGUI\deleteInternalMailRecipientObject(), ilShopShoppingCartGUI\deleteItem(), ilObjAssessmentFolderGUI\deleteLogObject(), ilPDMailBlockGUI\deleteMail(), ilObjTestGUI\deleteMarkStepsObject(), ilChatroomSmileyTask\deleteMultipleObject(), ilPaymentObjectGUI\deleteObject(), ilObjPaymentSettingsGUI\deleteObjectObject(), ilPersonalSettingsGUI\deleteOwnAccount1(), ilSurveyPhrasesGUI\deletePhrase(), ilPaymentObjectGUI\deletePrice(), ilObjPaymentSettingsGUI\deletePriceObject(), ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilObjQuestionPoolGUI\deleteQuestionsObject(), ilObjSurveyGUI\deleteSingleUserResultsObject(), ilObjTestGUI\deleteSingleUserResultsObject(), ilPaymentStatisticGUI\deleteStatistic(), ilObjPaymentSettingsGUI\deleteStatisticObject(), ilObjStyleSheetGUI\deleteTemplateConfirmationObject(), ilPaymentTrusteeGUI\deleteTrustee(), ilObjPaymentSettingsGUI\deleteVendorsObject(), ilMailFolderGUI\deliverFile(), ilForumModeratorsGUI\detachModeratorRole(), ilTestEvaluationGUI\detailedEvaluation(), ilSetupGUI\displayClientList(), ilSetupGUI\displayDeleteConfirmation(), ilBookmarkAdministrationGUI\displayHeader(), ilSetupGUI\displaySessions(), ilSetupGUI\displayTools(), ilObjSurveyQuestionPoolGUI\downloadExportFileObject(), ilObjTestGUI\downloadExportFileObject(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilObjUserFolderGUI\editAppliedUsersObject(), ilECSSettingsGUI\editCategoryMapping(), ilObjPaymentSettingsGUI\editDetailsObject(), ilMailFolderGUI\editFolder(), ilObjWikiGUI\editImportantPagesObject(), ilImageMapEditorGUI\editMapArea(), ilObjBookingPoolGUI\editObject(), ilContainerReferenceGUI\editObject(), ilPaymentObjectGUI\editPayMethod(), ilObjContentObjectGUI\editPublicSection(), ilObjHelpSettingsGUI\editSettings(), ilObjBlogAdministrationGUI\editSettings(), ilObjPortfolioAdministrationGUI\editSettings(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilObjPaymentSettingsGUI\editVendorObject(), ilObjDataCollectionGUI\emptyInfo(), ilTestOutputGUI\endingTimeReached(), ilTestEvaluationGUI\eval_a(), ilPersonalSettingsGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilMailGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilQuestionEditGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), ilECSSettingsGUI\exportMappings(), ilObjTestGUI\exportObject(), ilObjSurveyQuestionPoolGUI\exportQuestionObject(), ilObjQuestionPoolGUI\exportQuestionObject(), ilObjSCORM2004LearningModuleGUI\exportSelected(), ilObjMediaCastGUI\extractPreviewImageObject(), ilExportIDTableGUI\fillRow(), ilPaymentAdminGUI\forwardToDefault(), ilPurchaseBaseGUI\getBill(), ilPurchaseBMFGUI\getCreditCard(), ilPurchaseBMFGUI\getDebitEntry(), ilPurchaseBMFGUI\getPaymentType(), ilPurchaseBMFGUI\getPersonalData(), ilPurchaseBaseGUI\getPersonalData(), ilImagemapPreview\getPreviewFilename(), ilDataCollectionRecord\getRecordFieldHTML(), ilObjiLincCourse\getSubItems(), ilObjSurveyGUI\handleWriteAccess(), ilObjectStatusGUI\ilObjectStatusGUI(), ilObjSCORMLearningModuleGUI\import(), ilPaymentCouponGUI\importCodes(), ilECSSettingsGUI\importMappings(), ilObjUserFolderGUI\importUsersObject(), ilObjSessionGUI\infoScreen(), ilObjSurveyGUI\infoScreen(), ilObjTestGUI\infoScreen(), ilObjPortfolioGUI\initBlogForm(), ilSetupGUI\initClientDbForm(), ilCustomUserFieldsGUI\initForm(), ilObjPortfolioGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilAssQuestionHintsGUI\initHintOrderingClipboardNotification(), ilPCInteractiveImageGUI\insert(), ilObjMediaPoolGUI\insertFromClipboard(), ilObjSurveyGUI\insertQuestionblocksObject(), ilTestExpressPageObjectGUI\insertQuestions(), ilObjSurveyGUI\insertQuestions(), ilObjSurveyGUI\insertQuestionsObject(), ilObjTestGUI\insertQuestionsObject(), ilObjTestGUI\insertRandomSelectionObject(), SurveySingleChoiceQuestionGUI\insertStandardNumbers(), SurveyMatrixQuestionGUI\insertStandardNumbers(), ilObjSurveyGUI\inviteObject(), ilObjiLincCourseGUI\joinObject(), ilSetupGUI\jumpToFirstUnfinishedSetupStep(), ilContainerGUI\linkObject(), ilPCInteractiveImageGUI\listContentPopups(), ilObjRoleGUI\listDesktopItemsObject(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilDataCollectionRecordListGUI\listRecords(), ilSkillRootGUI\listSkills(), ilPersonalSkillsGUI\listSkillsForAdd(), ilSkillRootGUI\listTemplates(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjCategoryGUI\listUsersObject(), ilObjiLincCourseGUI\listUsersRoleObject(), ilContainerGUI\lockObject(), ilObjAssessmentFolderGUI\logsObject(), ilMailSearchCoursesGUI\mail(), ilMailSearchGroupsGUI\mail(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilMailingListsGUI\mailToList(), ilMailAddressbookGUI\mailToUsers(), ilObjTestGUI\marksObject(), ilObjExerciseGUI\membersObject(), ilBookmarkAdministrationGUI\move(), ilObjContentObjectGUI\moveChapter(), ilObjTaxonomyGUI\moveItems(), ilObjSurveyQuestionPoolGUI\moveObject(), ilObjQuestionPoolGUI\moveObject(), ilObjContentObjectGUI\movePage(), ilObjTestGUI\movePageObject(), ilObjSurveyGUI\moveQuestionsObject(), moveUploadedFile(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilTestExpressPageObjectGUI\nextQuestion(), ilObjPaymentSettingsGUI\objectsObject(), ilPaymentObjectGUI\ORg_updatePrice(), ilObjLanguageFolderGUI\out(), ilTestEvaluationGUI\outCorrectSolution(), SurveyQuestionGUI\outErrorMessages(), ilTestEvaluationGUI\outEvaluation(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), assQuestionGUI\outSolutionExplorer(), ilSurveyExecutionGUI\outSurveyPage(), ilTestOutputGUI\outTestPage(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilObjPortfolioGUI\pages(), ilObjTestGUI\participantsObject(), ilObjSurveyQuestionPoolGUI\pasteObject(), ilObjQuestionPoolGUI\pasteObject(), ilPaymentObjectGUI\performAddPrice(), ilObjPaymentSettingsGUI\performAddPriceObject(), ilMailFolderGUI\performAddSubFolder(), ilAdvancedSearchGUI\performAdvMDSearch(), ilMailingListsGUI\performDelete(), ilMailAddressbookGUI\performDelete(), ilShopNewsGUI\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(), ilObjForumGUI\performPostAndChildPostsActivationObject(), ilMailFolderGUI\performRenameSubFolder(), ilShopAdvancedSearchGUI\performSearch(), ilAdvancedSearchGUI\performSearch(), ilPaymentTrusteeGUI\performSearch(), ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilShopGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilPaymentStatisticGUI\performSearch(), ilObjPaymentSettingsGUI\performSearchSPObject(), ilSurveyPhrasesGUI\phrases(), ilImprintGUI\postOutputProcessing(), ilWikiPageGUI\preview(), ilObjBlogGUI\preview(), ilTestExpressPageObjectGUI\prevQuestion(), ilSurveyEvaluationGUI\printEvaluation(), ilObjTestGUI\printobject(), ilObjTestGUI\propertiesObject(), ilObjSurveyGUI\questionsObject(), ilObjTestGUI\questionsObject(), ilECSSettingsGUI\readAll(), ilTestOutputGUI\redirectQuestion(), ilSetupGUI\reloadControlStructure(), ilObjTestGUI\removeParticipantObject(), ilObjSurveyGUI\removeQuestionsObject(), ilObjTestGUI\removeQuestionsObject(), ilBookingScheduleGUI\render(), ilObjPollGUI\render(), ilSessionStatisticsGUI\render(), ilObjBlogGUI\render(), ilSurveyPageGUI\renderPage(), ilShopGUI\resetFilter(), ilObjPaymentSettingsGUI\resetFilterObject(), ilPaymentObjectGUI\resetObjectFilter(), ilObjPaymentSettingsGUI\resetObjectFilterObject(), ilAssQuestionHintsGUI\resetOrderingClipboardCmd(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjRoleFolderGUI\roleSearchObject(), ilObjiLincClassroomGUI\save(), ilObjiLincUserGUI\save(), ilDataCollectionFieldEditGUI\save(), ilECSSettingsGUI\save(), ilObjSearchSettingsGUI\saveAdvancedLuceneSettingsObject(), ilMailingListsGUI\saveAssignmentForm(), ilObjStyleSheetGUI\saveCharacteristicObject(), ilObjTestGUI\saveClientIPObject(), ilPaymentCouponGUI\saveCodeForm(), ilObjMDSettingsGUI\saveCopyrightSettings(), ilPaymentCouponGUI\saveCouponForm(), ilObjPaymentSettingsGUI\saveCustomerObject(), ilObjSurveyGUI\saveDefineQuestionblockObject(), ilObjFileAccessSettingsGUI\saveDiskQuotaSettings(), ilObjFileAccessSettingsGUI\saveDownloadingSettings(), ilMailFormGUI\saveDraft(), ilMailAddressbookGUI\saveEntry(), ilObjMDSettingsGUI\saveEntry(), ilECSSettingsGUI\saveExportMappings(), ilAccountRegistrationGUI\saveForm(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), ilObjMDSettingsGUI\saveGeneralSettings(), ilObjStyleSheetGUI\saveHideStatusObject(), ilECSSettingsGUI\saveImportMappings(), ilSetupGUI\saveLanguages(), ilObjSearchSettingsGUI\saveLuceneSettingsObject(), ilObjTestGUI\saveMarksObject(), ilObjExternalToolsSettingsGUI\saveMathJaxObject(), ilShopNewsGUI\saveNews(), ilObjStyleSettingsGUI\saveObject(), ilObjGroupGUI\saveObject(), ilObjUserGUI\saveObject(), ilObjSessionGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilObjComponentSettingsGUI\saveOptions(), ilObjTestGUI\saveOrderAndObligationsObject(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), ilObjPaymentSettingsGUI\savePayMethodsObject(), ilObjSCORMLearningModuleGUI\saveProperties(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjTestGUI\savePropertiesObject(), ilSkillSelfEvaluationGUI\saveSelfEvaluation(), ilShopNewsGUI\saveSettings(), ilLPListOfSettingsGUI\saveSettings(), ilObjSearchSettingsGUI\saveSettingsObject(), ilObjSystemFolderGUI\saveSettingsObject(), ilShopPersonalSettingsGUI\saveSorting(), ilObjPaymentSettingsGUI\saveVatObject(), ilObjFileAccessSettingsGUI\saveWebDAVSettings(), assNumeric\saveWorkingData(), assFileUpload\saveWorkingData(), ilObjTestGUI\scoringObject(), ilMailSearchGUI\search(), ilLuceneAdvancedSearchGUI\search(), ilMailFormGUI\search(), ilObjSurveyAdministrationGUI\searchObject(), ilObjiLincCourseGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilMailFormGUI\searchRcpBc(), ilMailFormGUI\searchRcpCc(), ilMailFormGUI\searchRcpTo(), ilObjectCopyGUI\searchSource(), ilObjDlBookGUI\searchTranslation(), ilPaymentStatisticGUI\searchUser(), ilObjExerciseGUI\selectBlogObject(), ilObjRoleGUI\selectDesktopItemObject(), ilPCMediaObjectGUI\selectObjectReference(), ilConditionHandlerInterface\selector(), ilObjExerciseGUI\selectPortfolioObject(), ilPurchaseBMFGUI\sendCreditCard(), ilPurchaseBMFGUI\sendDebitEntry(), ilMailFormGUI\sendMessage(), ilObjAuthSettingsGUI\setAuthModeObject(), ilShopShoppingCartGUI\setCoupon(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilSetup\setSessionSettings(), ilMailSearchGroupsGUI\share(), ilMailSearchCoursesGUI\share(), ilObjWorkspaceFolderGUI\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(), ilPurchaseBMFGUI\showDebitEntry(), ilShopPurchaseGUI\showDetails(), ilObjContentObjectGUI\showEntrySelector(), ilMailFormGUI\showForm(), ilShopBoughtObjectsGUI\showItems(), ilShopShoppingCartGUI\showItems(), ilObjectCopyGUI\showItemSelection(), ilMailSearchGroupsGUI\showMembers(), ilMailSearchCoursesGUI\showMembers(), ilObjWorkspaceFolderGUI\showMoveIntoObjectTree(), ilPaymentStatisticGUI\showObjectSelector(), ilObjPaymentSettingsGUI\showObjectSelectorObject(), ilObjPortfolioGUI\showOther(), ilObjExerciseGUI\showParticipantObject(), ilObjPollGUI\showParticipants(), ilContainerGUI\showPasswordInstructionObject(), ilPurchaseBMFGUI\showPaymentType(), ilPurchaseBMFGUI\showPersonalData(), ilPurchaseBaseGUI\showPersonalData(), ilPersonalProfileGUI\showPersonalData(), ilRepositorySelectorInputGUI\showRepositorySelection(), ilMailSearchGUI\showResults(), ilLuceneAdvancedSearchGUI\showSavedResults(), ilLuceneSearchGUI\showSavedResults(), ilPaymentObjectGUI\showSelectedObject(), ilObjectCopyGUI\showSourceSelectionTree(), ilPaymentStatisticGUI\showStatistics(), ilObjectCopyGUI\showTargetSelectionTree(), ilRepUtilGUI\showTrashTable(), ilPaymentTrusteeGUI\showTrustees(), ilObjTestGUI\showUserResults(), ilTestEvaluationGUI\singleResults(), ilSkillSelfEvaluationGUI\startSelfEvaluation(), ilObjPaymentSettingsGUI\statisticObject(), ilObjExerciseGUI\submissionScreenObject(), ilObjExerciseGUI\submissionScreenTeamObject(), assQuestionGUI\suggestedsolution(), assFlashQuestionGUI\suggestRange(), ilSetupGUI\toggleClientList(), ilObjSurveyGUI\unfoldQuestionblockObject(), ilShopShoppingCartGUI\unlockBMFObjectsInShoppingCart(), ilShopNewsGUI\update(), ilPaymentTrusteeGUI\update(), ilECSSettingsGUI\update(), ilMDEditorGUI\updateAnnotation(), ilECSSettingsGUI\updateCategoryMapping(), ilMDEditorGUI\updateClassification(), ilObjiLincClassroomGUI\updateClassroom(), ilSetupGUI\updateDatabase(), ilPaymentObjectGUI\updateDetails(), ilObjPaymentSettingsGUI\updateDetailsObject(), ilMDEditorGUI\updateEducational(), ilObjMDSettingsGUI\updateEntry(), ilMDEditorGUI\updateGeneral(), ilLicenseGUI\updateLicense(), ilMDEditorGUI\updateLifecycle(), ilObjiLincCourseGUI\updateMemberStatusObject(), ilMDEditorGUI\updateMetaMetaData(), ilObjiLincCourseGUI\updateObject(), ilObjStyleSheetGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjComponentSettingsGUI\updatePluginDB(), ilPaymentObjectGUI\updatePrice(), ilObjPaymentSettingsGUI\updatePriceObject(), ilSCORM2004ScoGUI\updateProperties(), ilPageLayoutGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), ilMDEditorGUI\updateQuickEdit_scorm(), ilMDEditorGUI\updateRelation(), ilMDEditorGUI\updateRights(), ilSkillSelfEvaluationGUI\updateSelfEvaluation(), ilPaymentStatisticGUI\updateStatistic(), ilObjPaymentSettingsGUI\updateStatisticObject(), ilObjTaxonomyGUI\updateTaxNode(), ilMDEditorGUI\updateTechnical(), ilObjPaymentSettingsGUI\updateVatObject(), ilObjMailGUI\uploadObject(), ilObjSAHSLearningModuleGUI\uploadObject(), ilObjTestGUI\uploadTstObject(), ilObjContentObject\validatePages(), ilObjPaymentSettingsGUI\vendorsObject(), ilPDNotesGUI\view(), ilObjLanguageExtGUI\viewObject(), ilObjWikiGUI\viewPageObject(), assSingleChoiceGUI\writePostData(), and assMultipleChoiceGUI\writePostData().

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

References $tpl.

Referenced by ilRegistrationGUI\addCommandButtons(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCourseObjectivesGUI\askDeleteObjective(), ilMailFolderGUI\askForEmptyTrash(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilDidacticTemplateSettingsGUI\confirmDelete(), ilCourseArchivesGUI\confirmDeleteArchives(), ilMemberExportGUI\confirmDeleteExportFile(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilObjTestGUI\confirmDeleteExportFileObject(), ilObjSurveyGUI\confirmDeleteExportFileObject(), ilObjRoleGUI\confirmDeleteRoleObject(), ilObjSurveyGUI\confirmRemoveHeadingForm(), ilObjSurveyGUI\confirmResetTemplateObject(), ilObjTestGUI\confirmResetTemplateObject(), ilAdministrationCommandGUI\delete(), ilObjTestGUI\deleteAllUserDataObject(), ilSurveyPageGUI\deleteBlock(), ilPaymentCouponGUI\deleteCoupon(), ilObjPaymentSettingsGUI\deleteObjectObject(), ilSurveyPhrasesGUI\deletePhrase(), ilObjQuestionPoolGUI\deleteQuestionsObject(), ilObjSurveyGUI\deleteSingleUserResultsObject(), ilObjPaymentSettingsGUI\deleteStatisticObject(), ilObjCourseGUI\deleteSubscribers(), ilObjPaymentSettingsGUI\deleteVendorsObject(), ilMailFolderGUI\editFolder(), ilConfirmationGUI\getHTML(), SurveyQuestionGUI\originalSyncForm(), ilObjSurveyGUI\questionsObject(), ilObjiLincCourseGUI\removeMemberObject(), ilObjSurveyGUI\removeQuestionsObject(), 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 4832 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(), ilObjComponentSettingsGUI\activatePlugin(), ilDidacticTemplateSettingsGUI\activateTemplates(), ilWikiPageGUI\activateWikiPageRating(), ilCourseParticipantsGroupsGUI\add(), ilObjCourseGroupingGUI\add(), ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilRegistrationSettingsGUI\addAssignment(), ilPageEditorGUI\addChangeComment(), ilObjBlogGUI\addContributor(), SurveyQuestionGUI\addGIT(), assQuestionGUI\addGIT(), ilCourseArchivesGUI\addHTMLArchive(), ilObjWikiGUI\addImportantPageObject(), ilObjExerciseGUI\addMembersObject(), ilPCIIMTriggerEditorGUI\addNewArea(), ilMailSearchGroupsGUI\addPermission(), ilMailSearchGUI\addPermission(), ilMailSearchCoursesGUI\addPermission(), ilWorkspaceAccessGUI\addPermissionHandler(), SurveyQuestionGUI\addPG(), assQuestionGUI\addPG(), ilPCInteractiveImageGUI\addPopup(), ilPermission2GUI\addRole(), ilLDAPSettingsGUI\addRoleAssignment(), ilAuthShibbolethSettingsGUI\addRoleAssignmentRule(), SurveySingleChoiceQuestionGUI\addSelectedPhrase(), SurveyMatrixQuestionGUI\addSelectedPhrase(), ilPersonalSkillsGUI\addSkill(), SurveyQuestionGUI\addST(), assQuestionGUI\addST(), ilObjCourseGUI\addStarterObject(), ilPCTabsGUI\addTab(), ilObjExerciseGUI\addTeamMemberActionObject(), ilObjExerciseGUI\addTeamMemberContainerActionObject(), ilContainerGUI\addToDeskObject(), ilObjBlogGUI\addToDeskObject(), ilObjContentObjectGUI\addTooltip(), ilObjDlBookGUI\addTranslation(), ilObjRoleGUI\addUserObject(), ilObjGroupGUI\addUserObject(), ilObjPaymentSettingsGUI\addVendorObject(), ilCourseArchivesGUI\addXMLArchive(), ilLPObjectStatisticsGUI\adminSync(), ilSessionStatisticsGUI\adminSync(), ilObjRoleTemplateGUI\adoptPermSaveObject(), ilObjRoleFolderGUI\adoptPermSaveObject(), ilObjRoleGUI\adoptPermSaveObject(), ilObjectGUI\afterImport(), ilObjPollGUI\afterSave(), ilObjBlogGUI\afterSave(), ilObjItemGroupGUI\afterSave(), ilObjBookingPoolGUI\afterSave(), ilObjMediaCastGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjectPluginGUI\afterSave(), ilObjDataCollectionGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjTestGUI\afterSave(), ilObjExerciseGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjectGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjectGUI\afterUpdate(), ilObjTestGUI\applyDefaultsObject(), ilObjBlogGUI\approve(), ilLPListOfSettingsGUI\assign(), ilConditionHandlerInterface\assign(), ilObjCourseGroupingGUI\assignCourse(), ilObjRoleGUI\assignDesktopItemObject(), ilObjGroupGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignFromWaitingListObject(), ilObjGroupGUI\assignMemberObject(), ilObjCourseGUI\assignMembersObject(), ilObjCategoryGUI\assignSaveObject(), ilObjUserGUI\assignSaveObject(), ilObjGroupGUI\assignSubscribersObject(), ilObjCourseGUI\assignSubscribersObject(), ilObjCourseGUI\autoFillObject(), ilWikiPageGUI\blockWikiPage(), ilCalendarAppointmentGUI\bookconfirmed(), ilCalendarAppointmentGUI\cancelConfirmed(), ilRegistrationGUI\cancelSubscriptionRequest(), ilObjCourseGUI\cciResetObject(), ilECSMappingSettingsGUI\cDeleteRulesOfNode(), ilCertificateGUI\certificateEditor(), ilObjRoleGUI\changeExistingObjectsObject(), ilPDNewsBlockGUI\changeFeedSettings(), ilPermission2GUI\changeOwner(), ilObjBookingPoolGUI\changeStatusObject(), ilPersonalSettingsGUI\changeUserPassword(), ilConditionHandlerInterface\chi_update(), ilContainerGUI\clearObject(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilBookmarkAdministrationGUI\confirm(), ilObjUserFolderGUI\confirmaccessFreeObject(), ilObjUserFolderGUI\confirmaccessRestrictObject(), ilObjUserFolderGUI\confirmactivateObject(), ilBlogPostingGUI\confirmBlogPostingDeletion(), ilObjUserFolderGUI\confirmdeactivateObject(), ilSurveyPageGUI\confirmDeleteAllUserData(), ilObjSurveyGUI\confirmDeleteAllUserDataObject(), ilObjTestGUI\confirmDeleteAllUserResultsObject(), ilMailAttachmentGUI\confirmDeleteAttachments(), ilObjUserFolderGUI\confirmdeleteObject(), ilSurveyPhrasesGUI\confirmDeletePhrase(), ilObjSurveyQuestionPoolGUI\confirmDeleteQuestionsObject(), ilObjQuestionPoolGUI\confirmDeleteQuestionsObject(), ilObjSurveyGUI\confirmDeleteSelectedUserDataObject(), ilObjTestGUI\confirmDeleteSelectedUserDataObject(), ilObjBookingPoolGUI\confirmedBookingObject(), ilObjContentObjectGUI\confirmedDelete(), ilBookmarkAdministrationGUI\confirmedMove(), ilObjSurveyGUI\confirmInsertQuestionObject(), ilObjSurveyGUI\confirmRemoveQuestionsObject(), ilObjTestGUI\confirmRemoveQuestionsObject(), SurveySingleChoiceQuestionGUI\confirmSavePhrase(), SurveyMatrixQuestionGUI\confirmSavePhrase(), ilWikiPageGUI\confirmWikiPageDeletion(), ilPageContentGUI\copy(), ilObjStyleSheetGUI\copyCharacteristicsObject(), ilObjectCopyGUI\copyContainer(), ilPageEditorGUI\copyLinkedMediaToClipboard(), ilObjPortfolioGUI\copyPage(), ilSurveyPageGUI\copyQuestion(), ilObjTestGUI\copyQuestionObject(), ilObjRoleFolderGUI\copyRoleObject(), ilPageEditorGUI\copySelected(), ilObjectCopyGUI\copySingleObject(), ilDidacticTemplateSettingsGUI\copyTemplate(), ilObjMediaPoolGUI\copyToClipboard(), ilPCMediaObjectGUI\copyToClipboard(), ilECSSettingsGUI\cp(), ilPCInteractiveImageGUI\create(), ilCustomUserFieldsGUI\create(), ilPCMediaObjectGUI\create(), ilAccountCodesGUI\createCodes(), ilRegistrationSettingsGUI\createCodes(), ilFileSystemGUI\createDirectory(), ilExportGUI\createExportFile(), ilObjExerciseGUI\createPortfolioObject(), ilOpenIdSettingsGUI\createProvider(), ilObjExerciseGUI\createSingleMemberTeamObject(), ilObjSurveyGUI\createSurveyCodesObject(), ilECSMappingSettingsGUI\cSaveOverview(), ilECSMappingSettingsGUI\cUpdateSettings(), ilPageContentGUI\cut(), ilSurveyPageGUI\cutQuestion(), ilPageEditorGUI\cutSelected(), ilECSMappingSettingsGUI\dDeleteTree(), ilECSSettingsGUI\deactivate(), ilObjBlogGUI\deactivateAdmin(), ilObjLinkResourceGUI\deactivateLink(), ilObjHelpSettingsGUI\deactivateModule(), ilObjComponentSettingsGUI\deactivatePlugin(), ilDidacticTemplateSettingsGUI\deactivateTemplates(), ilWikiPageGUI\deactivateWikiPageRating(), ilLPListOfSettingsGUI\deassign(), ilObjExerciseGUI\deassignMembersObject(), ilObjRoleGUI\deassignUserObject(), ilCalendarInboxGUI\declineShared(), ilDataCollectionRecordEditGUI\delete(), ilRatingCategoryGUI\delete(), ilCourseArchivesGUI\delete(), ilBookingObjectGUI\delete(), ilBookingScheduleGUI\delete(), ilCalendarCategoryGUI\delete(), ilConditionHandlerInterface\delete(), ilConsultationHoursGUI\delete(), ilCalendarAppointmentGUI\delete(), ilObjPaymentSettingsGUI\deleteAddressesForPaymethodsObject(), ilCalendarCategoryGUI\deleteAppointments(), ilPCImageMapEditorGUI\deleteAreas(), ilImageMapEditorGUI\deleteAreas(), ilRegistrationSettingsGUI\deleteAssignment(), ilObjExerciseGUI\deleteAssignmentsObject(), ilAccountCodesGUI\deleteCodes(), ilRegistrationSettingsGUI\deleteCodes(), ilObjSurveyGUI\deleteCodesObject(), ilObject2GUI\deleteConfirmedObjects(), ilLPObjectStatisticsGUI\deleteData(), ilObjExerciseGUI\deleteDeliveredObject(), ilObjRoleGUI\deleteDesktopItemsObject(), ilCalendarAppointmentGUI\deleteExclude(), ilMemberExportGUI\deleteExportFile(), ilSCORM2004ScoGUI\deleteExportFile(), ilObjSCORM2004LearningModuleGUI\deleteExportFile(), ilObjTestGUI\deleteExportFileObject(), ilObjSurveyGUI\deleteExportFileObject(), ilCustomUserFieldsGUI\deleteField(), ilObjectCustomUserFieldsGUI\deleteFields(), ilAdvancedMDSettingsGUI\deleteFields(), ilFileSystemGUI\deleteFile(), ilAdvancedMDSettingsGUI\deleteFiles(), ilObjCourseGroupingGUI\deleteGrouping(), ilObjCourseGUI\deleteInfoFilesObject(), ilObjSurveyGUI\deleteInternalMailRecipientObject(), ilBasicSkillGUI\deleteLevel(), ilObjLinkResourceGUI\deleteLinks(), ilObjAssessmentFolderGUI\deleteLogObject(), SurveyQuestionGUI\deleteMaterial(), ilObjGroupGUI\deleteMembersObject(), ilObjContentObjectGUI\deleteMenuEntry(), ilCourseObjectivesGUI\deleteObjectives(), ilRepUtilGUI\deleteObjects(), ilPCInteractiveImageGUI\deleteOverlays(), ilObjLinkResourceGUI\deleteParameter(), ilObjLinkResourceGUI\deleteParameterForm(), ilPCInteractiveImageGUI\deletePopups(), ilObjPortfolioGUI\deletePortfolioPages(), ilObjPortfolioGUI\deletePortfolios(), ilOpenIdSettingsGUI\deleteProvider(), ilAdvancedMDSettingsGUI\deleteRecords(), ilLDAPSettingsGUI\deleteRoleMapping(), ilObjRoleFolderGUI\deleteRoleObject(), ilLDAPSettingsGUI\deleteRules(), ilAuthShibbolethSettingsGUI\deleteRules(), ilObjSurveyGUI\deleteSavedMessageObject(), ilSkillSelfEvaluationGUI\deleteSelfEvaluation(), ilSettingsTemplateGUI\deleteSettingsTemplate(), ilObjCourseGUI\deleteStarterObject(), ilObjStyleSettingsGUI\deleteSysStyleCatAssignmentsObject(), ilObjTaxonomyGUI\deleteTaxonomy(), ilDidacticTemplateSettingsGUI\deleteTemplates(), ilObjContentObjectGUI\deleteTooltips(), ilObjDlBookGUI\deleteTranslation(), ilPCIIMTriggerEditorGUI\deleteTrigger(), ilDataCollectionRecordViewViewdefinitionGUI\deleteView(), ilObjMediaCastGUI\determinePlaytimeObject(), ilObjExerciseGUI\directSubmitObject(), ilObjSurveyGUI\disinviteUserGroupObject(), ilECSMappingSettingsGUI\dMap(), ilECSSettingsGUI\doDelete(), ilPermissionGUI\doImportRole(), ilECSMappingSettingsGUI\dSynchronizeTree(), ilECSMappingSettingsGUI\dUpdateSettings(), ilECSMappingSettingsGUI\dUpdateTreeSettings(), ilObjSurveyGUI\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(), ilLPListOfSettingsGUI\groupMaterials(), ilObjSurveyGUI\importExternalRecipientsFromDatasetObject(), ilObjSurveyGUI\importExternalRecipientsFromFileObject(), ilObjSurveyGUI\importExternalRecipientsFromTextObject(), ilExternalFeedBlockGUI\importFile(), ilBookmarkAdministrationGUI\importFile(), ilObjFolderGUI\importFileObject(), ilObjGlossaryGUI\importFileObject(), ilObjSurveyQuestionPoolGUI\importFileObject(), ilObjContentObjectGUI\importFileObject(), ilObjSurveyGUI\importFileObject(), ilObjGroupGUI\importFileObject2(), ilObjStyleSettingsGUI\importPageLayoutObject(), ilPersonalProfileGUI\importPersonalData(), ilAdvancedMDSettingsGUI\importRecord(), ilDidacticTemplateSettingsGUI\importTemplate(), ilObjUserFolderGUI\importUsersObject(), ilObjQuestionPoolGUI\importVerifiedFileObject(), ilObjTestGUI\importVerifiedFileObject(), ilSetupGUI\initClientDbForm(), ilObjSurveyGUI\insertQuestionblocksObject(), ilTestExpressPageObjectGUI\insertQuestions(), ilObjSurveyGUI\insertQuestions(), ilObjTestGUI\insertQuestionsAfterObject(), ilObjTestGUI\insertQuestionsBeforeObject(), ilObjSurveyGUI\insertQuestionsObject(), ilObjTestGUI\insertQuestionsObject(), ilObjTestGUI\insertRandomSelectionObject(), ilObjSurveyGUI\insertSavedMessageObject(), SurveySingleChoiceQuestionGUI\insertStandardNumbers(), SurveyMatrixQuestionGUI\insertStandardNumbers(), ilSetupGUI\installDatabase(), ilObjSurveyGUI\inviteUserGroupObject(), ilObjSessionGUI\joinObject(), ilRegistrationGUI\leaveWaitingList(), SurveyQuestionGUI\linkChilds(), assQuestionGUI\linkChilds(), ilObjLanguageExtGUI\maintainObject(), 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(), ilObjCategoryGUI\performDeleteUsersObject(), ilObjPaymentSettingsGUI\performDeleteVatObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjCourseGUI\performRemoveFromWaitingListObject(), ilObjCourseGUI\performUnsubscribeObject(), ilPermission2GUI\permSave(), ilObjRoleTemplateGUI\permSaveObject(), ilObjRoleGUI\permSaveObject(), ilSetup\printProxyStatus(), ilObjExercise\processUploadedFile(), ilObjLinkResourceGUI\refreshLinkCheck(), ilObjContentObjectGUI\refreshLinkCheck(), ilObjGroupGUI\refuseApplicantsObject(), ilObjGroupGUI\refuseFromListObject(), ilObjCourseGUI\refuseFromListObject(), ilObjGroupGUI\refuseSubscribersObject(), ilObjCourseGUI\refuseSubscribersObject(), ilCalendarAppointmentGUI\register(), ilObjSessionGUI\registerObject(), ilLPListOfSettingsGUI\releaseMaterials(), ilCourseParticipantsGroupsGUI\remove(), ilObjMediaPoolGUI\remove(), ilObjBlogGUI\removeContributor(), ilContainerGUI\removeFromDeskObject(), ilObjBlogGUI\removeFromDeskObject(), ilObjForumGUI\removeFromDeskObject(), ilObjCourseGUI\removeFromWaitingList(), ilObjWikiGUI\removeImportantPagesObject(), ilPersonalSkillsGUI\removeMaterial(), ilObjCourseGUI\removeMembersObject(), ilRepUtilGUI\removeObjectsFromSystem(), ilWorkspaceAccessGUI\removePermission(), ilPersonalSkillsGUI\removeSkills(), ilObjExerciseGUI\removeTeamMemberObject(), ilObjUserGUI\removeUserPictureObject(), ilFileSystemGUI\renameFile(), ilWikiPageGUI\renamePage(), ilCourseObjectivePresentationGUI\reset(), ilObjCourseGUI\resetObject(), ilObjSurveyGUI\resetTemplateObject(), ilObjTestGUI\resetTemplateObject(), ilRepUtilGUI\restoreObjects(), ilObjBookingPoolGUI\rsvCancelObject(), ilBookingObjectGUI\rsvCancelUser(), ilObjBookingPoolGUI\rsvInUseObject(), ilObjBookingPoolGUI\rsvNotInUseObject(), ilObjBookingPoolGUI\rsvUncancelObject(), ilDataCollectionFieldListGUI\save(), ilCalendarUserSettingsGUI\save(), ilRatingCategoryGUI\save(), ilCalendarCategoryGUI\save(), ilOpenIdSettingsGUI\save(), ilDataCollectionRecordListViewdefinitionGUI\save(), ilObjCertificateSettingsGUI\save(), ilBookingObjectGUI\save(), ilObjCalendarSettingsGUI\save(), ilRadiusSettingsGUI\save(), ilBookingScheduleGUI\save(), ilRegistrationSettingsGUI\save(), ilObjFileGUI\save(), ilDataCollectionTableEditGUI\save(), ilCASSettingsGUI\save(), ilAuthShibbolethSettingsGUI\save(), ilObjPortfolioGUI\save(), SurveyQuestionGUI\save(), ilDataCollectionRecordEditGUI\save(), ilSkillTreeNodeGUI\save(), ilDataCollectionFieldEditGUI\save(), ilCalendarAppointmentGUI\save(), ilCourseObjectivesGUI\save(), assQuestionGUI\save(), ilLDAPSettingsGUI\save(), ilObjPrivacySecurityGUI\save_privacy(), ilObjPrivacySecurityGUI\save_security(), ilCourseContentGUI\saveAcceptance(), ilObjAccessibilitySettingsGUI\saveAccessKeys(), ilPageObjectGUI\saveActivation(), ilObjLinkResourceGUI\saveAddLink(), ilObjSkillManagementGUI\saveAllTemplateTitles(), ilObjSkillManagementGUI\saveAllTitles(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ilPCImageMapEditorGUI\saveArea(), ilPCIIMTriggerEditorGUI\saveArea(), ilImageMapEditorGUI\saveArea(), ilObjAdvancedEditingGUI\saveAssessmentSettingsObject(), ilRegistrationSettingsGUI\saveAssignment(), ilObjExerciseGUI\saveAssignmentObject(), ilObjExerciseGUI\saveAssignmentOrderObject(), ilSetupGUI\saveBasicSettings(), ilObjSystemFolderGUI\saveBasicSettingsObject(), ilObjStyleSettingsGUI\saveBasicStyleSettingsObject(), ilObjSystemFolderGUI\saveBenchSettingsObject(), ilObjPaymentSettingsGUI\saveBillingMailObject(), ilObjPortfolioGUI\saveBlog(), ilObjExerciseGUI\saveBlogObject(), ilSetupGUI\saveClientIni(), ilObjExerciseGUI\saveCommentsObject(), ilSetupGUI\saveContact(), ilObjSystemFolderGUI\saveContactInformationObject(), ilObjSystemFolderGUI\saveCronJobsObject(), ilObjAssessmentFolderGUI\saveDefaultsObject(), ilObjSurveyGUI\saveDefineQuestionblockObject(), ilObjFileAccessSettingsGUI\saveDiskQuotaMailTemplate(), assQuestionGUI\saveEdit(), ilSurveyPhrasesGUI\saveEditPhrase(), ilObjContentObjectGUI\saveExportIds(), assQuestionGUI\saveFeedback(), ilObjectCustomUserFieldsGUI\saveField(), ilAdvancedMDSettingsGUI\saveField(), ilObjectCustomUserFieldsGUI\saveFields(), ilObjMediaPoolGUI\saveFolder(), ilObjTaggingSettingsGUI\saveForbiddenTags(), ilMailingListsGUI\saveForm(), ilAssQuestionHintGUI\saveFormCmd(), ilObjAdvancedEditingGUI\saveFrmPostSettingsObject(), ilObjAdvancedEditingGUI\saveGeneralPageSettingsObject(), ilPersonalSettingsGUI\saveGeneralSettings(), ilObjUserFolderGUI\saveGeneralSettingsObject(), ilObjUserFolderGUI\saveGlobalUserSettingsObject(), ilObjSCORM2004LearningModuleGUI\saveGlossary(), ilObjExerciseGUI\saveGradesObject(), ilObjWikiGUI\saveGradingObject(), ilObjSystemFolderGUI\saveHeaderTitleObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjContentObjectGUI\saveHelpMapping(), ilObjExternalToolsSettingsGUI\saveiLincObject(), ilPageObjectGUI\saveInitialOpenedContent(), ilTaggingGUI\saveInput(), ilObjSurveyGUI\saveInvitationStatusObject(), ilObjPaymentSettingsGUI\saveInvoiceNumberObject(), ilObjItemGroupGUI\saveItemAssignment(), ilExportGUI\saveItemSelection(), ilObjSystemFolderGUI\saveJavaServerObject(), ilLMPageObjectGUI\saveLayout(), SurveyMatrixQuestionGUI\saveLayout(), ilBasicSkillGUI\saveLevel(), ilObjLinkResourceGUI\saveLinkCheck(), ilObjContentObjectGUI\saveLinkCheck(), ilAssQuestionHintsGUI\saveListOrderCmd(), ilAuthLoginPageEditorGUI\saveLoginInfo(), ilObjUserFolderGUI\saveLoginnameSettingsObject(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilLDAPSettingsGUI\saveMapping(), ilObjTestGUI\saveMarksObject(), ilObjSessionGUI\saveMaterialsObject(), ilObjMediaPoolGUI\saveMediaPoolPage(), ilObjContentObjectGUI\saveMenuEntry(), ilObjContentObjectGUI\saveMenuProperties(), ilObjUserFolderGUI\saveNewAccountMailObject(), ilObjCourseGUI\saveNotificationObject(), ilObjGroupGUI\saveNotificationObject(), ilObjRecoveryFolderGUI\saveObject(), ilObjAdvancedEditingGUI\saveObject(), ilObjSurveyAdministrationGUI\saveObject(), ilObjAssessmentFolderGUI\saveObject(), ilObjRoleTemplateGUI\saveObject(), ilObjMailGUI\saveObject(), ilObjTypeDefinitionGUI\saveObject(), ilObjGlossaryGUI\saveObject(), ilObjGroupGUI\saveObject(), ilObjUserGUI\saveObject(), ilObjRoleFolderGUI\saveObject(), ilObjMediaObjectGUI\saveObject(), ilObjRoleGUI\saveObject(), ilConditionHandlerInterface\saveObligatoryList(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilObjSurveyQuestionPoolGUI\saveObligatoryObject(), ilObjSurveyGUI\saveObligatoryObject(), ilConditionHandlerInterface\saveObligatorySettings(), ilMailOptionsGUI\saveOptions(), ilObjComponentSettingsGUI\saveOptions(), ilSkillTreeNodeGUI\saveOrder(), ilObjWikiGUI\saveOrderingAndIndentObject(), ilObjMediaCastGUI\saveOrderObject(), ilObjPortfolioGUI\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(), ilObjPortfolioGUI\savePortfolioPagesOrdering(), ilPersonalProfileGUI\saveProfile(), ilInfoScreenGUI\saveProgress(), ilObjFileBasedLMGUI\saveProperties(), ilObjContentObjectGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjGlossaryGUI\saveProperties(), ilObjSurveyQuestionPoolGUI\savePropertiesObject(), ilObjSurveyGUI\savePropertiesObject(), ilObjQuestionPoolGUI\savePropertiesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjTestGUI\savePropertiesObject(), ilSetupGUI\saveProxy(), ilObjSystemFolderGUI\saveProxyObject(), ilPersonalProfileGUI\savePublicProfile(), ilObjContentObjectGUI\savePublicSection(), ilObjPollGUI\saveQuestion(), ilCourseObjectivesGUI\saveQuestionOverview(), ilObjTestGUI\saveRandomQuestionsObject(), ilAdvancedMDSettingsGUI\saveRecord(), ilSetupGUI\saveRegistration(), assQuestionGUI\saveReturn(), ilRegistrationSettingsGUI\saveRoleAccessLimitations(), ilLDAPSettingsGUI\saveRoleMapping(), ilLDAPSettingsGUI\saveRoleSelection(), ilAuthShibbolethSettingsGUI\saveRoleSelection(), ilObjTestGUI\saveScoringObject(), ilObjAuthSettingsGUI\saveScriptObject(), ilCalendarCategoryGUI\saveSelection(), ilPersonalSkillsGUI\saveSelfEvaluation(), ilConsultationHoursGUI\saveSequence(), ilObjSCORM2004LearningModuleGUI\saveSequencing(), ilObjForumAdministrationGUI\saveSettings(), ilObjMediaObjectsSettingsGUI\saveSettings(), ilObjPortfolioAdministrationGUI\saveSettings(), ilObjBlogAdministrationGUI\saveSettings(), ilLPListOfSettingsGUI\saveSettings(), ilObjMediaCastSettingsGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjSkillManagementGUI\saveSettings(), ilObjLinkResourceGUI\saveSettings(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilObjNewsSettingsGUI\saveSettings(), ilObjTaxonomyGUI\saveSettingsAndSorting(), ilObjAssessmentFolderGUI\saveSettingsObject(), ilObjAdvancedEditingGUI\saveSettingsObject(), ilObjUserTrackingGUI\saveSettingsObject(), ilObjSurveyAdministrationGUI\saveSettingsObject(), ilObjWikiGUI\saveSettingsObject(), ilObjMediaCastGUI\saveSettingsObject(), ilSettingsTemplateGUI\saveSettingsTemplate(), assImagemapQuestionGUI\saveShape(), ilObjAuthSettingsGUI\saveSOAPObject(), ilCourseObjectivesGUI\saveSorting(), ilShopTopicsGUI\saveSorting(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), ilObjExerciseGUI\saveStatusObject(), ilObjPaymentSettingsGUI\saveStatutoryRegulationsObject(), ilObjStyleSettingsGUI\saveStyleCatAssignmentObject(), ilObjContentObjectGUI\saveStyleSettings(), ilObjSCORM2004LearningModuleGUI\saveStyleSettings(), ilObjGlossaryGUI\saveStyleSettings(), ilObjStyleSettingsGUI\saveStyleSettingsObject(), ilObjWikiGUI\saveStyleSettingsObject(), ilContainerGUI\saveStyleSettingsObject(), ilObjAdvancedEditingGUI\saveSurveySettingsObject(), ilPCTabsGUI\saveTabs(), ilObjTaxonomyGUI\saveTaxNode(), ilObjGlossaryGUI\saveTerm(), ilObjPortfolioGUI\saveTitles(), ilObjContentObjectGUI\saveTooltips(), ilShopTopicsGUI\saveTopic(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), ilObjFileGUI\saveUnzip(), ilObjSystemFolderGUI\saveWebServicesObject(), ilPersonalSkillsGUI\selectMaterial(), ilObjSurveyGUI\sendCodesMailObject(), ilObjExerciseGUI\sendMembersObject(), ilPCTableGUI\setAlignment(), ilObjAuthSettingsGUI\setAuthModeObject(), ilObjSurveyGUI\setCodeLanguageObject(), ilObjPortfolioGUI\setDefault(), ilImageMapEditorGUI\setHighlight(), ilObjCourseGUI\setLPSyncObject(), ilObjHelpSettingsGUI\setMode(), ilObjExerciseGUI\setSelectedBlogObject(), ilObjExerciseGUI\setSelectedPortfolioObject(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilPCTableGUI\setWidths(), ilCalendarCategoryGUI\shareAssign(), ilCalendarCategoryGUI\shareAssignRoles(), ilCalendarCategoryGUI\shareDeassign(), assQuestionGUI\suggestedsolution(), ilAuthLoginPageEditorGUI\switchIPE(), ilAuthLoginPageEditorGUI\switchRTE(), ilDidacticTemplateGUI\switchTemplate(), SurveyQuestionGUI\sync(), SurveyQuestionGUI\syncCopies(), ilCalendarCategoryGUI\synchroniseCalendar(), ilObjStyleSettingsGUI\toggleGlobalDefaultObject(), ilObjStyleSettingsGUI\toggleGlobalFixedObject(), ilWikiPageGUI\unblockWikiPage(), ilObjSurveyGUI\unfoldQuestionblockObject(), ilShopShoppingCartGUI\unlockPAYPALObjectsInShoppingCart(), ilCalendarAppointmentGUI\unregister(), ilObjSessionGUI\unregisterObject(), ilObjPortfolioGUI\unsetDefault(), ilCalendarCategoryGUI\unshare(), ilObjGroupGUI\unsubscribeObject(), ilFileSystemGUI\unzipFile(), ilFMSettingsGUI\update(), ilRatingCategoryGUI\update(), ilObjectActivationGUI\update(), ilBookingScheduleGUI\update(), ilBookingObjectGUI\update(), ilObjCourseGroupingGUI\update(), ilPCDataTableGUI\update(), ilPCInteractiveImageGUI\update(), ilObjPortfolioGUI\update(), ilCustomUserFieldsGUI\update(), ilSkillTreeNodeGUI\update(), ilCalendarCategoryGUI\update(), ilObjFileGUI\update(), ilCalendarAppointmentGUI\update(), ilObjUserFolderGUI\updateAppliedUsersObject(), ilImageMapEditorGUI\updateAreas(), ilPCImageMapEditorGUI\updateAreas(), ilObjExerciseGUI\updateAssignmentObject(), ilObjAuthSettingsGUI\updateAuthModeDeterminationObject(), ilObjAuthSettingsGUI\updateAuthRolesObject(), ilSetupGUI\updateBasicSettings(), ilECSSettingsGUI\updateCommunities(), ilConditionHandlerInterface\updateCondition(), ilObjCourseGUI\updateCourseIconsObject(), ilBlogPostingGUI\updateDate(), ilObjectCustomUserFieldsGUI\updateField(), ilAdvancedMDSettingsGUI\updateField(), ilCustomUserFieldsGUI\updateFields(), ilAdvancedMDSettingsGUI\updateFields(), ilCourseObjectivesGUI\updateFinalTestAssignment(), ilCourseObjectivesGUI\updateFinalTestLimits(), ilObjMediaPoolGUI\updateFolder(), ilObjGroupGUI\updateGroupIconsObject(), ilObjGroupGUI\updateGroupTypeObject(), ilObjCategoryGUI\updateInfoObject(), ilObjGroupGUI\updateInfoObject(), ilObjCourseGUI\updateInfoObject(), ilPCDataTableGUI\updateJS(), ilBasicSkillGUI\updateLevel(), ilBasicSkillGUI\updateLevelOrder(), ilObjLinkResourceGUI\updateLink(), ilObjLinkResourceGUI\updateLinks(), ilCourseObjectivesGUI\updateMaterialAssignment(), ilObjMediaPoolGUI\updateMediaPoolPage(), ilObjCourseGUI\updateMemberObject(), ilObjSessionGUI\updateMembersObject(), ilObjGroupGUI\updateMembersObject(), ilObjCourseGUI\updateMembersObject(), ilObjContentObjectGUI\updateMenuEntry(), ilConsultationHoursGUI\updateMulti(), ilContainerReferenceGUI\updateObject(), ilRemoteObjectBaseGUI\updateObject(), ilObjRootFolderGUI\updateObject(), ilObjGroupGUI\updateObject(), ilObjSurveyQuestionPoolGUI\updateObject(), ilObjRoleTemplateGUI\updateObject(), ilObjRoleGUI\updateObject(), ilObjSessionGUI\updateObject(), ilObjUserGUI\updateObject(), ilObjQuestionPoolGUI\updateObject(), ilObjUserGUI\updateObjectOld(), ilRatingCategoryGUI\updateOrder(), ilObjCourseGUI\updateParticipantsStatus(), ilObjComponentSettingsGUI\updatePlugin(), ilOpenIdSettingsGUI\updateProvider(), ilAdvancedMDSettingsGUI\updateRecord(), ilAdvancedMDSettingsGUI\updateRecords(), ilLDAPSettingsGUI\updateRoleAssignment(), ilAuthShibbolethSettingsGUI\updateRoleAssignmentRule(), ilRegistrationSettingsGUI\updateRoles(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentLimits(), ilConsultationHoursGUI\updateSettings(), ilObjSearchSettingsGUI\updateSettingsObject(), ilSettingsTemplateGUI\updateSettingsTemplate(), ilSkillTemplateReferenceGUI\updateSkillTemplateReference(), ilObjPaymentSettingsGUI\updateStatisticObject(), ilObjGroupGUI\updateStatusObject(), ilRegistrationGUI\updateSubscriptionRequest(), ilAdvancedMDSettingsGUI\updateSubstitutions(), ilDidacticTemplateSettingsGUI\updateTemplate(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilObjForumGUI\updateThreadObject(), ilCourseContentGUI\updateTimings(), ilBlogPostingGUI\updateTitle(), ilContainerReferenceGUI\updateTitleObject(), ilObjectServiceSettingsGUI\updateToolSettings(), ilPCIIMTriggerEditorGUI\updateTrigger(), ilLPListOfObjectsGUI\updateUser(), ilCourseContentGUI\updateUserTimings(), ilCalendarCategoryGUI\uploadAppointments(), ilFileSystemGUI\uploadFile(), ilObjHelpSettingsGUI\uploadHelpFile(), ilObjLanguageExtGUI\uploadObject(), ilPCInteractiveImageGUI\uploadOverlayImages(), and ilContainerGUI\useNewEditorObject().

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

References $_COOKIE, and IL_COOKIE_PATH.

Referenced by ilStartUpGUI\confirmRegistration(), ilInitialisation\determineClient(), ilInitialisation\initClientIniFile(), ilSoapUserAdministration\login(), ilSessionControl\removeSessionCookie(), 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 617 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 1383 of file class.ilUtil.php.

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

Referenced by ilObjSystemFolder\_getHeaderTitleDescription(), ilObject\_writeDescription(), ilObject\create(), ilBookmarkAdministrationGUI\delete(), ilObjWikiGUI\editImportantPagesObject(), ilTree\fetchNodeData(), ilNewsForContextTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilMediaPoolExplorer\formatHeader(), ilLMExplorer\formatHeader(), ilLMEditorExplorer\formatHeader(), ilScorm2004EditorExplorer\formatHeader(), ilHACPExplorer\formatObject(), ilForumMoveTopicsExplorer\formatObject(), ilECSNodeMappingCmsExplorer\formatObject(), ilECSNodeMappingLocalExplorer\formatObject(), ilAICCExplorer\formatObject(), ilWorkspaceExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilPublicSectionSelector\formatObject(), ilSCORMExplorer\formatObject(), ilExplorer\formatObject(), ilObjLinkResourceListGUI\getDescription(), ilObjSystemFolder\getHeaderTitleTranslations(), ilPDNotesBlockGUI\getListRowData(), ilMailNotification\getObjectTitle(), ilCalendarEntry\getPresentationTitle(), ilContainer\getSubItems(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilLocator(), ilMainMenuGUI\renderEntry(), ilLDAPSettingsGUI\roleMapping(), ilBenchmark\save(), 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 1440 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 3225 of file class.ilUtil.php.

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

{
global $array_sortby,$array_sortorder;
// 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 3253 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 3279 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(), ilObjTypeDefinitionGUI\editObject(), ilTable2GUI\exportData(), ilObjExercise\exportGradesExcel(), ilObjCourseGUI\fetchPrintMemberData(), ilObjCourseGUI\fetchPrintSubscriberData(), ilTaxonomyNode\fixOrderNumbers(), ilDataLoader\generateCourses(), ilNewsItem\getAggregatedChildNewsData(), ilNewsItem\getAggregatedNewsData(), ilObjSurvey\getAllRelations(), ilItemGroupItems\getAssignableItems(), ilCalendarSelectionBlockGUI\getCalendars(), ilShoppingCartTableGUI\getCartHTML(), ilPersonalSkillExplorer\getChildsOfNode(), ilBenchmarkTableGUI\getDataByFirstTable(), ilFSStorageExercise\getFiles(), ilObjectDefinition\getGroupedRepositoryObjectTypes(), ilTable2GUI\getHTML(), ilPCImageMapTableGUI\getItems(), ilClipboardTableGUI\getItems(), ilPCIIMTriggerTableGUI\getItems(), ilItemGroupItemsTableGUI\getMaterials(), ilPageObject\getRecentChanges(), ilObjMediaCast\getSortedItemsArray(), ilObjCourse\getSubItems(), ilObjectDefinition\getSubObjects(), ilObjectDefinition\getSubObjectsRecursively(), ilTagging\getTagsForUser(), ilObjectActivation\getTimingsAdministrationItems(), ilObjectGUI\initDidacticTemplate(), ilPermissionGUI\initRoleForm(), ilPCQuestionGUI\insert(), ilObjectListGUI\insertPreconditions(), ilObjAssessmentFolderGUI\logsObject(), ilObjSessionGUI\materialsObject(), ilObjGroupGUI\membersGalleryObject(), ilObjCourseGUI\membersGalleryObject(), ilObjRoleTemplateGUI\permObject(), ilObjRoleGUI\permObject(), ilObjStyleSettings\read(), ilContainerContentGUI\renderPageEmbeddedBlocks(), ilPersonalWorkspaceGUI\renderToolbar(), ilSkillTreeNode\saveChildsOrder(), ilObjWiki\saveOrderingAndIndentation(), ilObjExerciseGUI\showParticipantObject(), ilLMPresentationGUI\showPrintView(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilTableGUI\sortData(), ilContainerSorting\sortItems(), ilLinkResourceItems\sortItems(), ilLDAPSettingsGUI\sortMappingData(), ilTaxonomyExplorer\sortNodes(), ilExplorer\sortNodes(), ilCourseObjectiveQuestionAssignmentTableGUI\sortQuestions(), ilShopResultPresentationGUI\sortResult(), ilContainerSorting\sortSubItems(), ilObjTypeDefinitionGUI\viewObject(), and ilObjLanguageExtGUI\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 3343 of file class.ilUtil.php.

References mergesort().

Referenced by 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 2603 of file class.ilUtil.php.

Referenced by ilTextAreaInputGUI\checkInput().

{
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 2959 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 2585 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(), ilLMStatisticsGUI\__search(), ilPaymentStatisticGUI\__search(), ilObjPaymentSettingsGUI\__search(), ilObjPaymentSettingsGUI\__searchSP(), ilLearningProgressBaseGUI\__updateUser(), 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(), ilObjRoleGUI\changeExistingObjectsObject(), ilObjSystemFolderGUI\changeHeaderTitleObject(), ilMemberAgreementGUI\checkCourseDefinedFields(), ilSetup\checkDataDirSetup(), ilFormulaInputGUI\checkInput(), ilNonEditableValueGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilBirthdayInputGUI\checkInput(), ilCaptchaInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilWidthHeightInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilTypicalLearningTimeInputGUI\checkInput(), ilRadioMatrixInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilMailAddressbookGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilCopyrightInputGUI\checkInput(), ilTRBLBorderStyleInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilCheckboxInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilFileInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilDurationInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilObjLinkResourceGUI\checkLinkInput(), ilSetup\checkLogSetup(), ilSetup\checkToolsSetup(), ilNestedSetXML\clean(), ilObjSurvey\cloneTextblocks(), ilObjMediaCastGUI\convertFileObject(), ilPCQuestionOverviewGUI\create(), ilPCResourcesGUI\create(), ilPCFileListGUI\create(), ilPCSourcecodeGUI\create(), ilPCTableGUI\create(), ilBookmarkAdministrationGUI\createBookmark(), ilBookmarkAdministrationGUI\createBookmarkFolder(), ilFileSystemGUI\createDirectory(), ilExportGUI\createExportFile(), ilFileUtils\createFile(), ilObjFileBasedLMGUI\createFromDirectory(), ilPCParagraphGUI\createJS(), ilObjRoleTemplateGUI\createObject(), ilObjBlogGUI\createPosting(), ilSCORM13Package\dbImportSco(), ilObjExerciseGUI\deleteAssignmentsObject(), ilMailAttachmentGUI\deleteAttachments(), ilFileSystemGUI\deleteFile(), ilPCInteractiveImageGUI\deleteOverlays(), ilInitialisation\determineClient(), ilChatroomUploadFileTask\displayLinkToUploadedFile(), ilFileSystemGUI\downloadFile(), ilPCSourcecodeGUI\edit(), ilPCParagraphGUI\edit(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilObjRoleTemplateGUI\editObject(), ilObjAuthSettingsGUI\editSOAPObject(), ilChatroomClearTask\executeDefault(), ilChatroomPostMessageTask\executeDefault(), ilFileSystemGUI\extCommand(), ilExportIDTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilPaymentCouponGUI\generateCodes(), ilCertificateGUI\getFormFieldsFromPOST(), ilObjUser\getFullname(), ilUserLPTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilLMQuestionListTableGUI\getItems(), ilAssignedUsersTableGUI\getItems(), ilTrUserObjectsPropsTableGUI\getItems(), ilUserTableGUI\getItems(), ilTrObjectUsersPropsTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), assAnswerCloze\getNumericValueFromAnswerText(), ilObjLanguageExtGUI\getPar(), ilNumberInputGUI\getPostValueForComparison(), ilUserTableGUI\getUserIdsForFilter(), ilHtmlBlockGUIGen\getValuesHtmlBlock(), ilPCParagraph\handleAjaxContent(), ilObjSessionGUI\handleFileUpload(), ilObjForumGUI\handleFormInput(), ilPaymentCouponGUI\importCodes(), ilPCTable\importHtml(), ilInitialisation\initLanguage(), ilLuceneSearchGUI\initUserSearchCache(), ilSearchGUI\initUserSearchCache(), ilAdvancedSearchGUI\initUserSearchCache(), ilPCSourcecodeGUI\insert(), ilMDEditorGUI\keywordAutocomplete(), ilBlogPostingGUI\keywordAutocomplete(), ilFileSystemGUI\listFiles(), ilCalendarAppointmentGUI\load(), ilObjSessionGUI\load(), ilObjGroupGUI\load(), ilAdvancedMDSettingsGUI\loadFieldFormData(), ilECSUser\loadFromGET(), ilAdvancedMDRecordGUI\loadFromPost(), ilLDAPRoleGroupMappingSettings\loadFromPost(), ilECSSettingsGUI\loadFromPost(), ilCalendarAppointmentGUI\loadNotificationRecipients(), ilAdvancedMDSettingsGUI\loadRecordFormData(), ilRecurrenceInputGUI\loadRecurrence(), ilCalendarAppointmentGUI\loadRecurrenceSettings(), ilObjSessionGUI\loadRecurrenceSettings(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), ilStartUpGUI\migrateAccount(), ilCSVReader\open(), 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(), ilCourseDefinedFieldDefinition\prepareValues(), ilPageObjectGUI\processAnswer(), ilICalParser\purgeString(), ilMDFormat\read(), ilMDEntity\read(), ilMDLocation\read(), ilMDIdentifier_\read(), ilMDIdentifier\read(), ilMDKeyword\read(), ilMDTypicalAgeRange\read(), ilMDDescription\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(), ilAdvancedSearchGUI\remoteSearch(), ilSearchGUI\remoteSearch(), ilLuceneSearchGUI\remoteSearch(), ilLuceneAdvancedSearchGUI\remoteSearch(), ilFileSystemGUI\renameFile(), ilFileSystemGUI\renameFileForm(), ilTable2GUI\restoreTemplate(), ilCalendarCategoryGUI\save(), ilLMPageObjectGUI\save(), ilObjCalendarSettingsGUI\save(), ilRadiusSettingsGUI\save(), ilRegistrationSettingsGUI\save(), ilFeedbackGUI\save(), ilCourseObjectivesGUI\save(), ilStructureObjectGUI\save(), ilObjPrivacySecurityGUI\save_security(), 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\saveCommentsObject(), ilPaymentCouponGUI\saveCouponForm(), ilObjSystemFolderGUI\saveCronJobsObject(), ilObjSurveyGUI\saveDefineQuestionblockObject(), ilGlossaryTermGUI\saveDefinition(), ilObjFileAccessSettingsGUI\saveDiskQuotaMailTemplate(), ilObjFileAccessSettingsGUI\saveDiskQuotaSettings(), ilObjFileAccessSettingsGUI\saveDownloadingSettings(), ilMailAddressbookGUI\saveEntry(), ilObjMDSettingsGUI\saveEntry(), ilObjContentObjectGUI\saveExportIds(), ilObjExternalToolsSettingsGUI\saveGoogleMapsObject(), ilObjExerciseGUI\saveGradesObject(), ilObjWikiGUI\saveGradingObject(), ilObjSystemFolderGUI\saveHeaderTitleObject(), ilObjSystemFolderGUI\saveHeaderTitlesObject(), ilObjSurveyGUI\saveHeadingObject(), ilHtmlBlockGUIGen\saveHtmlBlock(), ilPageObjectGUI\saveInitialOpenedContent(), ilTaxAssignInputGUI\saveInput(), ilTaggingGUI\saveInput(), ilObjSystemFolderGUI\saveJavaServerObject(), ilTaggingGUI\saveJS(), ilPCParagraphGUI\saveJS(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilLDAPSettingsGUI\saveMapping(), ilObjGroupGUI\saveMapSettingsObject(), ilObjCourseGUI\saveMapSettingsObject(), ilObjTestGUI\saveMarkSchemaFormData(), ilObjTestGUI\saveMarksObject(), ilSetup\saveMasterSetup(), ilObjExternalToolsSettingsGUI\saveMathJaxObject(), ilPageObject\saveMetaKeywords(), ilObjUserFolderGUI\saveNewAccountMailObject(), ilObjRoleTemplateGUI\saveObject(), ilObjGroupGUI\saveObject(), ilObjLanguageExtGUI\saveObject(), ilObjSAHSLearningModuleGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilMailOptionsGUI\saveOptions(), ilContainerGUI\savePageContentObject(), ilStructureObjectGUI\savePageLayout(), ilObjContentObjectGUI\savePageLayout(), ilObjPaymentSettingsGUI\savePaypalSettingsObject(), ilPersonalProfileGUI\savePersonalData(), ilObjPortfolioGUI\savePortfolioPagesOrdering(), ilPersonalProfileGUI\saveProfile(), ilPCFileListGUI\saveProperties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjSurveyGUI\savePropertiesObject(), ilObjMediaObjectGUI\savePropertiesObject(), ilObjTestGUI\savePropertiesObject(), ilRatingGUI\saveRating(), ilLDAPSettingsGUI\saveRoleMapping(), ilObjForumAdministrationGUI\saveSettings(), ilObjTaggingSettingsGUI\saveSettings(), ilObjLearningResourcesSettingsGUI\saveSettings(), ilObjTaxonomyGUI\saveSettingsAndSorting(), ilObjSystemFolderGUI\saveSettingsObject(), ilObjExerciseGUI\saveStatusObject(), ilObjContentObjectGUI\saveStyleSettings(), ilObjSCORM2004LearningModuleGUI\saveStyleSettings(), ilObjGlossaryGUI\saveStyleSettings(), ilObjWikiGUI\saveStyleSettingsObject(), ilContainerGUI\saveStyleSettingsObject(), ilObjContentObjectGUI\saveTooltips(), ilShopTopicsGUI\saveTopic(), ilObjRootFolderGUI\saveTranslationsObject(), ilObjCategoryGUI\saveTranslationsObject(), SurveyTextQuestion\saveUserInput(), ilFeedbackGUI\saveVote(), ilObjFileAccessSettingsGUI\saveWebDAVSettings(), assTextQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), ilLMStatisticsGUI\search(), ilAdvancedSearchGUI\searchAdvancedMD(), ilObjiLincCourseGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilObjExerciseGUI\selectAssignmentObject(), ilObjExerciseGUI\selectParticipantObject(), ilPCTableGUI\setAlignment(), ilImageMapEditorGUI\setHighlight(), ilObjHelpSettingsGUI\setMode(), ilObjMediaObjectGUI\setObjectPerCreationForm(), ilPCTableGUI\setProperties(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilPCTableGUI\setWidths(), ilCalendarCategoryGUI\sharePerformSearch(), ilPaymentCouponGUI\showCodeImport(), ilPaymentCouponGUI\showCodes(), ilPaymentCouponGUI\showCoupons(), ilRegistrationGUI\showCustomFields(), ilPaymentCouponGUI\showObjects(), ilObjTaggingSettingsGUI\showUsers(), ilFeedbackGUI\stats(), stripSlashesArray(), stripSlashesRecursive(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), ilPasswordAssistanceGUI\submitAssistanceForm(), ilPasswordAssistanceGUI\submitUsernameAssistanceForm(), ilSetup\testLatex(), ilFileSystemGUI\unzipFile(), ilPCQuestionOverviewGUI\update(), ilPCResourcesGUI\update(), ilPCSourcecodeGUI\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(), ilHtmlBlockGUIGen\updateHtmlBlock(), ilObjGroupGUI\updateInfoObject(), ilObjCourseGUI\updateInfoObject(), ilPCDataTableGUI\updateJS(), ilMDKeyword\updateKeywords(), ilMDEditorGUI\updateLifecycle(), ilObjLinkResourceGUI\updateLinks(), ilExerciseXMLParser\updateMarking(), ilSetup\updateMasterSettings(), ilObjSessionGUI\updateMembersObject(), ilMDEditorGUI\updateMetaMetaData(), ilNoteGUI\updateNote(), ilObjRoleTemplateGUI\updateObject(), ilObjCourseGUI\updateObject(), ilObjUserGUI\updateObjectOld(), ilPaymentObjectGUI\updatePrice(), ilObjPaymentSettingsGUI\updatePriceObject(), ilSCORM2004ScoGUI\updateProperties(), ilMDEditorGUI\updateQuickEdit(), ilMDEditorGUI\updateQuickEdit_scorm(), ilMDEditorGUI\updateQuickEdit_scorm_propagate(), ilMDEditorGUI\updateRelation(), ilMDEditorGUI\updateRights(), ilChatroomSmileyTask\updateSmiliesObject(), ilRegistrationGUI\updateSubscriptionRequest(), ilMDEditorGUI\updateTechnical(), ilGlossaryTermGUI\updateTerm(), ilObjGlossaryGUI\updateTerm(), ilFileSystemGUI\uploadFile(), ilChatroomSmileyTask\uploadSmileyObject(), ilGroupRegistrationGUI\validate(), ilCourseRegistrationGUI\validate(), and ilRegistrationGUI\validateCustomFields().

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

References stripSlashes().

Referenced by ilEssayKeywordWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), and ilKVPWizardInputGUI\checkInput().

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

Referenced by ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilObjCategoryGUI\_importCategoriesForm(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilCourseObjectivesGUI\askDeleteObjective(), ilObjContentObjectGUI\chapters(), 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(), ilObjSessionGUI\materialsObject(), ilObjContentObjectGUI\pages(), ilObjRoleTemplateGUI\permObject(), ilObjGlossaryGUI\quickList(), ilTableGUI\render(), ilSCORM2004ScoGUI\sahs_questions(), ilSCORM2004ScoGUI\sco_resources(), ilShopShoppingCartGUI\showCouponInput(), ilGlossaryPresentationGUI\showDownloadList(), ilLMPresentationGUI\showDownloadList(), ilMemberExportGUI\showFileList(), ilObjSCORM2004LearningModuleGUI\showTrackingItem(), ilObjAICCLearningModuleGUI\showTrackingItems(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilStructureObjectGUI\subchap(), ilCourseArchivesGUI\view(), ilStructureObjectGUI\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 4605 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 3422 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 2870 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 2714 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 2920 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 5036 of file class.ilUtil.php.

References $data, and $result.

{
$vars = preg_split(
'/([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff^|]*)\|/',
-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 1678 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(), 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 3984 of file class.ilUtil.php.

References $lng, and ilVirusScannerFactory\_getInstance().

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

{
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 1781 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(), ilContObjectExport\buildExportFileXML(), ilQuestionpoolExport\buildExportFileXML(), ilGlossaryExport\buildExportFileXML(), ilTestExport\buildExportFileXML(), ilCertificate\deliverExportFileXML(), ilObjWorkspaceFolder\downloadFolder(), ilObjFolder\downloadFolder(), ilObjDlBook\export(), ilObjStyleSheet\export(), ilExport\exportEntity(), ilObjGlossary\exportHTML(), ilObjFileBasedLMGUI\exportHTML(), ilObjContentObject\exportHTML(), ilExportContainer\exportObject(), ilExport\exportObject(), ilObjContentObject\exportSCORM(), ilLMPresentationGUI\offlineexport(), ilFSStorageCourse\zipArchive(), ilFileDataGroup\zipFile(), and ilFileDataCourse\zipFile().

{
$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: