| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:27:03 2008 ] | [ LDAPAccountManager 1.0.2 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Source view] [Print]
LDAP Account Manager status messages.
| Author: | Michael Dürgner |
| File Size: | 154 lines (6 kb) |
| Included or required: | 35 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| StatusMessage($MessageTyp,$MessageHeadline,$MessageText='',$MessageVariables = array() X-Ref |
| This function prints a short status message. It can be used to print INFO, WARN and ERROR messages at the moment. The headline and text may be formated with special tags: <br> <br><b>{bold}, {endbold}:</b> All text between these tags is printed bold. <br><b>{color=#123456}, {endcolor}:</b> All text between these tags is printed in the given color. <br><b>{link=http://nodomain.org}, {endlink}:</b> A link with the given target is created. The link text is the text between the tags. param: string $MessageTyp The type of the message to be printed. It must be one of param: string $MessageHeadline The headline of the status message. param: string $MessageText The text of the status message. param: array $MessageVariables The variables that are used to replace the spacers (%s) in the |
| parseMessageString($MessageString) X-Ref |
| Use the three replace functions on the submitted Text. param: string $MessageString The text that is used to search for replaceable strings. return: string The processed text. |
| boldText($text) X-Ref |
| Replace {bold} and {endbold} with <b> and </b> HTML-Tags. param: string $text The text that is used to search for {bold} and {endbold} tags. return: string The submitted text with {bold} and {endbold} replaced with |
| colorText($text) X-Ref |
| Replace {color=#[HEX-Value]} or {color=[HEX-Value]} and {endcolor} with <font color="#[HEX-Value]"> and </font> HTML-Tags. param: string $text The text that is used to search for {color} and {endcolor} tags. return: string Input string with HTML-formatted color tags |
| linkText($text) X-Ref |
| Replace {link=[Link-Target]} and {endlink} with <a href="[Link-Target]" target="_blank"> and </a> HTML-Tags. param: string $text The text that is used to search for {link} and {endlink} tags. return: string Input string with HTML-formatted link tags |
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |