[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/joomla/mail/ -> helper.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: helper.php 14401 2010-01-26 14:10:00Z louis $
File Size: 167 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JMailHelper:: (6 methods):
  cleanLine()
  cleanText()
  cleanBody()
  cleanSubject()
  cleanAddress()
  isEmailAddress()


Class: JMailHelper  - X-Ref

E-Mail helper class, provides static methods to perform various tasks relevant
to the Joomla e-mail routines.

TODO: Test these methods as the regex work is first run and not tested thoroughly

cleanLine( $value )   X-Ref
Cleans single line inputs.

param: string $value String to be cleaned.
return: string Cleaned string.

cleanText( $value )   X-Ref
Cleans multi-line inputs.

param: string $value Multi-line string to be cleaned.
return: string Cleaned multi-line string.

cleanBody($body)   X-Ref
Cleans any injected headers from the E-Mail body.

param: string $body E-Mail body string.
return: string Cleaned E-Mail body string.

cleanSubject($subject)   X-Ref
Cleans any injected headers from the subject string.

param: string $subject E-Mail subject string.
return: string Cleaned E-Mail subject string.

cleanAddress($address)   X-Ref
Verifies that an e-mail address does not have any extra headers injected into it.

param: string $address E-Mail address.
return: string|false E-Mail address string or boolean false if injected headers are present.

isEmailAddress($email)   X-Ref
Verifies that the string is in a proper e-mail address format.

param: string $email String to be verified.
return: boolean True if string has the correct format; false otherwise.



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1