<?xml version="1.0"?><phpdoc><class name="jpeto_util" extends="" undoc="false" access="private" package="jpeto_system"><file>c:/web/jpeto2/jpeto/jpeto_util.php</file><doc><description>You may use these functions as statics and call them like jpeto_util::FUNCTIONNAME()</description><shortdescription>This class provides some utility functions like number &amp; date formatting, etc.</shortdescription></doc><function name="jpeto_util" undoc="false" access="public"><doc><return type="void"/><description>no need to run that!</description><shortdescription>constructor for jpeto_util</shortdescription></doc></function><function name="maxValue" undoc="false" access="private"><doc><parameter name="$value1" type="integer"/><parameter name="$value2" type="integer"/><return type="void"/><description/><shortdescription>returns the bigger value of 2 values</shortdescription></doc></function><function name="minValue" undoc="false" access="private"><doc><parameter name="$value1" type="integer"/><parameter name="$value2" type="integer"/><return name="$minValue" type="integer"/><description/><shortdescription>returns the smaller value of 2 values</shortdescription></doc></function><function name="formatString" undoc="false" access="private"><doc><parameter name="$value" type="string">the original String</parameter><parameter name="$numChars" type="integer">the fix number of characters to display</parameter><parameter name="$addRight" default="true" type="boolean"/><return name="$value" type="string"/><description/><shortdescription>returns a formatted String of a fixed length (filled up with blanks)</shortdescription></doc></function><function name="formatInteger" undoc="false" access="private"><doc><parameter name="$value" type="string">the original Integer</parameter><parameter name="$numDigits" type="integer">the fix number of digits to display</parameter><return name="$numDigits" type="string"/><description/><shortdescription>returns a formatted integer with leading zeroes</shortdescription></doc></function><function name="formatDecimal" undoc="false" access="private"><doc><parameter name="$value" type="string">the original decimal</parameter><parameter name="$decimals" default="2" type="integer">the fix number of decimals to display</parameter><return name="$value" type="string"/><description/><shortdescription>returns a formatted decimal</shortdescription></doc></function><function name="percentage" undoc="false" access="private"><doc><parameter name="$value" type="float"/><parameter name="$total" type="float"/><return name="$perc" type="string"/><description/><shortdescription>calculates and returns a percentage value</shortdescription></doc></function><function name="isNumber" undoc="false" access="private"><doc><parameter name="$value" type="string"/><return name="$isNumber" type="boolean"/><description/><shortdescription>returns true if the given value is a number</shortdescription></doc></function><function name="isGoodString" undoc="false" access="private"><doc><parameter name="&amp;$value" type="string">the String to check</parameter><return name="$isGoodString" type="boolean"/><description/><shortdescription>returns true if a string is not null and not empty</shortdescription></doc></function><function name="combineIfGoodString" undoc="false" access="private"><doc><parameter name="$pre" default="&amp;quot;&amp;quot;" type="string">the first part of the result String</parameter><parameter name="&amp;$value" type="string">the String to check (and the middle part of the result String)</parameter><parameter name="$app" default="&amp;quot;&amp;quot;" type="string">the last part of the result String</parameter><return name="$combineIfGoodString" type="boolean"/><description/><shortdescription>combines the three given Strings if $value is a god string</shortdescription></doc></function><function name="joinIfArray" undoc="false" access="private"><doc><parameter name="$glue" default="&amp;quot;&amp;quot;" type="string">the glue</parameter><parameter name="$value" type="string">the array</parameter><return name="$joinedArray" type="string"/><description/><shortdescription>joins the array element with $glue</shortdescription></doc></function><function name="toTableString" undoc="false" access="private"><doc><parameter name="&amp;$value" type="string">the String to check</parameter><return name="$value" type="string"/><description/><shortdescription>returns &amp;nbsp; if the given string is empty or null</shortdescription></doc></function><function name="toFileName" undoc="false" access="private"><doc><parameter name="$value" type="string">the filename to correct</parameter><return name="$ret_value" type="string"> the corrected filename</return><description/><shortdescription>converts a given string to a correct filename (without any special characters)</shortdescription></doc></function><function name="string2xml" undoc="false" access="private"><doc><parameter name="$value" type="string">the string to convert</parameter><return name="$xml" type="string"/><description/><shortdescription>converts a string to xml data</shortdescription></doc></function><function name="array2xml" undoc="false" access="private"><doc><parameter name="$array" type="string">the array to convert</parameter><return name="$xml" type="string"/><description/><shortdescription>converts an (nested) array to xml data</shortdescription></doc></function><function name="object2xml" undoc="false" access="private"><doc><parameter name="$object" type="object jpeto_object"/><return name="$xml" type="string"/><description/><shortdescription>converts an object to xml data</shortdescription></doc></function><function name="html2mail" undoc="false" access="private"><doc><parameter name="$html" type="string">the html code</parameter><return name="$mail" type="string"/><description/><shortdescription>Converts HTML Code to Mail-conform HTML Code</shortdescription></doc></function><function name="bin2mail" undoc="false" access="private"><doc><parameter name="$bin" type="string">the binary data</parameter><return name="$mail" type="string"/><description/><shortdescription>Converts Binary Data to Mail-conform Data</shortdescription></doc></function><function name="sqlDateFormat" undoc="false" access="private"><doc><parameter name="$SqlDate" type="string">the date-string to convert</parameter><parameter name="$Format" default="&amp;quot;%d.%m. %Y&amp;quot;" type="string">the date-format to use</parameter><return name="$String" type="string"/><description/><shortdescription>Converts the extended ISO 8601 format &amp;quot;yyyy-mm-dd hh:mm:ss&amp;quot; date to dd.mm.yyyy date</shortdescription></doc></function><function name="sqlDateToUnixDate" undoc="false" access="private"><doc><parameter name="$SqlDate" type="string">the date-string to convert</parameter><return name="$String" type="string"/><description/><shortdescription>Converts the extended ISO 8601 format &amp;quot;yyyy-mm-dd hh:mm:ss&amp;quot; date to a Unix Timestamp</shortdescription></doc></function><function name="unixDateToSqlDate" undoc="false" access="private"><doc><parameter name="$UnixDate" type="string">the date-string to convert</parameter><return name="$String" type="string"/><description/><shortdescription>Converts a Unix Timestamp to the extended ISO 8601 format &amp;quot;yyyy-mm-dd hh:mm:ss&amp;quot;</shortdescription></doc></function><function name="sqlDateSum" undoc="false" access="private"><doc><parameter name="$SqlDate1" default="&amp;quot;1970-01-01 00:00:00&amp;quot;" type="string">- e.g. 1970-01-01 00:00:00 (extended ISO 8601 format &amp;quot;yyyy-mm-dd hh:mm:ss&amp;quot;)</parameter><parameter name="$SqlDate2" default="&amp;quot;0000-00-00 00:00:00&amp;quot;" type="string">- e.g. 0001-00-00 00:00:00 (extended ISO 8601 format &amp;quot;yyyy-mm-dd hh:mm:ss&amp;quot;)</parameter><return name="$result" type="string"> absolute - e.g. 1971-01-01 00:00:00 (extended ISO 8601 format &amp;quot;yyyy-mm-dd hh:mm:ss&amp;quot;)</return><description/><shortdescription>Calculates the Sum of 2 SqlDates</shortdescription></doc></function><function name="getWeekNumber" undoc="false" access="private"><doc><parameter name="$SqlDate" type="string">e.g. 1970-01-01 00:00:00 (extended ISO 8601 format &amp;quot;yyyy-mm-dd hh:mm:ss&amp;quot;)</parameter><return name="$week" type="integer"/><description>(first week has got 01/01 within)</description><shortdescription>returns the number of the week in the microsoft office format</shortdescription></doc></function><function name="memFormat" undoc="false" access="private"><doc><parameter name="$bytes" type="integer"/><return name="$String" type="string"/><description/><shortdescription>Formats a given amount of bytes (=integer) in MBytes, KBytes,...</shortdescription></doc></function><function name="formatPath" undoc="false" access="private"><doc><parameter name="$path" type="string"/><return name="$path" type="string"/><description/><shortdescription>This function formats a Path according to your operating system, using forward slash (Unix) or backslash (windows)</shortdescription></doc></function><function name="syntaxCheckEmail" undoc="false" access="private"><doc><parameter name="$email" type="string"/><return name="$correct" type="boolean"/><description/><shortdescription>checks the syntax of an email adress</shortdescription></doc></function><function name="addUrlParameter" undoc="false" access="private"><doc><parameter name="$key" type="String">the name of the parameter</parameter><parameter name="$value" type="String">the value</parameter><return name="$QueryString" type="String"/><description/><shortdescription>this function adds a key=value to the current QueryString</shortdescription></doc></function><function name="updateGetInSession" undoc="false" access="private"><doc><return type="void"/><description/><shortdescription>Updates all session-registered get-parameters (=queryString)</shortdescription></doc></function><function name="updatePostInSession" undoc="false" access="private"><doc><return type="void"/><description/><shortdescription>Updates all session-registered post-parameters</shortdescription></doc></function><function name="getProjectName" undoc="false" access="private"><doc><return name="$projectname" type="String"/><description/><shortdescription>This function retrieves the ProjectName</shortdescription></doc></function><function name="loadObjectFromArray" undoc="false" access="private"><doc><parameter name="&amp;$object" type="object [unknown]"/><parameter name="&amp;$array" type="array"/><parameter name="$prefix" default="&amp;quot;&amp;quot;" type="string"/><parameter name="$removePrefix" default="false" type="boolean"/><parameter name="$removeFromArray" default="false" type="boolean"/><return name="$success" type="boolean"/><description>the Condition &amp;quot;Prefix&amp;quot; and optionally removes the Prefix before setting and/or thevalues from the Array</description><shortdescription>these function sets an object properties with the given Array values depending on</shortdescription></doc></function><function name="array_remove" undoc="false" access="private"><doc><parameter name="&amp;$array" type="Array">the array</parameter><parameter name="$value" type="String">the Value to remove</parameter><return type="void"/><description/><shortdescription>This function removes a given value from the given array</shortdescription></doc></function><function name="markLinks" undoc="false" access="private"><doc><parameter name="$in" type="String">the string to convert</parameter><parameter name="$linkArray" default="&amp;quot;&amp;quot;" type="string">the types of links to convert (see sourcecode to understand format)</parameter><return name="$out" type="String"> the converted string</return><description/><shortdescription>This function converts all (hyper-) links in the given string to html links</shortdescription></doc></function></class></phpdoc>