Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

 Class JUtility

Description

JUtility is a utility functions class

Located in /joomla/utilities/utility.php (line 27)

Class JUtility   (Subpackage Utilities)
Method Summary
Static method static string dump (mixed &$var, [boolean $htmlSafe = true])
Static method static string getToken ([ $forceNew = false])
Static method static true isWinOS ()
Method string getHash (string $seed)
Method array parseAttributes (string $string)
Method boolean sendAdminMail (string $adminName, string $adminEmail, string $email, string $type, string $title, string $author, [ $url = null])
Method boolean sendMail (string $from, string $fromname, mixed $recipient, string $subject, string $body, [boolean $mode = 0], [mixed $cc = null], [mixed $bcc = null], [mixed $attachment = null], [mixed $replyto = null], [mixed $replytoname = null])
Methods
dump (line 178)

Method to dump the structure of a variable for debugging purposes

  • since: 1.5
string dump (mixed &$var, [boolean $htmlSafe = true])
  • mixed &$var: A variable
  • boolean $htmlSafe: True to ensure all characters are htmlsafe
getHash (line 110)

Provides a secure hash based on a seed

string getHash (string $seed)
  • string $seed: Seed string
getToken (line 123)

Method to determine a hash for anti-spoofing variable names

  • return: Hashed var name
  • since: 1.5
string getToken ([ $forceNew = false])
  • $forceNew
isWinOS (line 165)

Method to determine if the host OS is Windows

  • return: if Windows OS
  • since: 1.5
true isWinOS ()
parseAttributes (line 138)

Method to extract key/value pairs out of a string with xml style attributes

  • return: Key/Value pairs for the attributes
  • since: 1.5
array parseAttributes (string $string)
  • string $string: String containing xml style attributes
sendAdminMail (line 88)

Sends mail to administrator for approval of a user submission

  • return: True on success
boolean sendAdminMail (string $adminName, string $adminEmail, string $email, string $type, string $title, string $author, [ $url = null])
  • string $adminName: Name of administrator
  • string $adminEmail: Email address of administrator
  • string $email: [NOT USED TODO: Deprecate?]
  • string $type: Type of item to approve
  • string $title: Title of item to approve
  • string $author: Author of item to approve
  • $url
sendMail (line 45)

Mail function (uses phpMailer)

  • return: True on success
boolean sendMail (string $from, string $fromname, mixed $recipient, string $subject, string $body, boolean $mode, [mixed $cc = null], [mixed $bcc = null], [mixed $attachment = null], [mixed $replyto = null], [mixed $replytoname = null])
  • string $from: From e-mail address
  • string $fromname: From name
  • mixed $recipient: Recipient e-mail address(es)
  • string $subject: E-mail subject
  • string $body: Message body
  • boolean $mode: false = plain text, true = HTML
  • mixed $cc: CC e-mail address(es)
  • mixed $bcc: BCC e-mail address(es)
  • mixed $attachment: Attachment file name(s)
  • mixed $replyto: Reply to email address(es)
  • mixed $replytoname: Reply to name(s)

Documentation generated on Tue, 29 Jan 2008 18:52:31 +0000 by phpDocumentor 1.3.1