JUtility: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/utilities/utility.php | libraries/joomla/utilities/utility.php | ||
| Line 41: | Line 39: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JUtility | category=JUtility | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:16, 25 March 2017
Defined in
libraries/joomla/utilities/utility.php
Methods
| Method name | Description |
|---|---|
| sendMail | Mail function (uses phpMailer) |
| sendAdminMail | Sends mail to administrator for approval of a user submission |
| getHash | Provides a secure hash based on a seed |
| getToken | Method to determine a hash for anti-spoofing variable names |
| parseAttributes | Method to extract key/value pairs out of a string with xml style attributes |
| isWinOS | Method to determine if the host OS is Windows |
| dump | Method to dump the structure of a variable for debugging purposes |
| array_unshift_ref | Prepend a reference to an element to the beginning of an array. Renumbers numeric keys, so $value is always inserted to $array[0] |
| return_bytes | Return the byte value of a particular string |
Importing
jimport( 'joomla.utilities.utility' );
Examples
Code Examples