API17

Difference between revisions of "JUtility"

From Joomla! Documentation

m (→‎User contributed notes: bad link repair)
m (preparing for archive only)
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JUtility==
 
=={{JVer|11.1}} JUtility==
 
===Description===
 
===Description===
{{Description:JUtility}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JUtility|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 14: Line 12:
 
|-
 
|-
 
|public  
 
|public  
|[[JUtility::array_unshift_ref/11.1|array_unshift_ref]]
+
|[[API17:JUtility::array_unshift_ref|array_unshift_ref]]
 
|Prepend a reference to an element to the beginning of an array.  
 
|Prepend a reference to an element to the beginning of an array.  
 
|-
 
|-
 
|public  
 
|public  
|[[JUtility::return_bytes/11.1|return_bytes]]
+
|[[API17:JUtility::return_bytes|return_bytes]]
 
|Return the byte value of a particular string.  
 
|Return the byte value of a particular string.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JUtility::dump/11.1|dump]]
+
|[[API17:JUtility::dump|dump]]
 
|Method to dump the structure of a variable for debugging purposes.  
 
|Method to dump the structure of a variable for debugging purposes.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JUtility::getHash/11.1|getHash]]
+
|[[API17:JUtility::getHash|getHash]]
 
|Provides a secure hash based on a seed.  
 
|Provides a secure hash based on a seed.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JUtility::getToken/11.1|getToken]]
+
|[[API17:JUtility::getToken|getToken]]
 
|Method to determine a hash for anti-spoofing variable names.  
 
|Method to determine a hash for anti-spoofing variable names.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JUtility::isWinOS/11.1|isWinOS]]
+
|[[API17:JUtility::isWinOS|isWinOS]]
 
|Method to determine if the host OS is Windows.  
 
|Method to determine if the host OS is Windows.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JUtility::parseAttributes/11.1|parseAttributes]]
+
|[[API17:JUtility::parseAttributes|parseAttributes]]
 
|Method to extract key/value pairs out of a string with xml style attributes.  
 
|Method to extract key/value pairs out of a string with xml style attributes.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JUtility::sendAdminMail/11.1|sendAdminMail]]
+
|[[API17:JUtility::sendAdminMail|sendAdminMail]]
 
|Sends mail to administrator for approval of a user submission.  
 
|Sends mail to administrator for approval of a user submission.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JUtility::sendMail/11.1|sendMail]]
+
|[[API17:JUtility::sendMail|sendMail]]
 
|Mail function (uses phpMailer).  
 
|Mail function (uses phpMailer).  
 
|-
 
|-
Line 55: Line 53:
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JUtility source code''' on [[jplatform:utilities/utility.php|BitBucket]]
 
* {{JVer|11.1}} '''JUtility source code''' on [[jplatform:utilities/utility.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Utilities/11.1|Utilities]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]]
* [[JUtility|Other versions of JUtility]]
+
* [[API17:JUtility|Other versions of JUtility]]
{{SeeAlso:JUtility}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JUtility|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JUtility
 
category=JUtility
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
Line 72: Line 68:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JUtility]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:56, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JUtility[edit]

Description[edit]

Methods[edit]

Visibility Method name Description
public array_unshift_ref Prepend a reference to an element to the beginning of an array.
public return_bytes Return the byte value of a particular string.
public static dump Method to dump the structure of a variable for debugging purposes.
public static getHash Provides a secure hash based on a seed.
public static getToken Method to determine a hash for anti-spoofing variable names.
public static isWinOS Method to determine if the host OS is Windows.
public static parseAttributes Method to extract key/value pairs out of a string with xml style attributes.
public static sendAdminMail Sends mail to administrator for approval of a user submission.
public static sendMail Mail function (uses phpMailer).
  • Defined in libraries/joomla/utilities/utility.php

Importing[edit]

jimport( 'joomla.utilities.utility' );

See also[edit]


User contributed notes[edit]

Code Examples[edit]