Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class JUtility

Description

JUtility is a utility functions class

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

Class JUtility   (Subpackage Utilities)
Method Summary
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
getHash (line 114)

Provides a secure hash based on a seed

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

Method to determine a hash for anti-spoofing variable names

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

Method to determine if the host OS is Windows

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

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 43)

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 Mon, 05 Mar 2007 21:30:48 +0000 by phpDocumentor 1.3.1