[ Index ]
 

Code source de PHPonTrax 2.6.6-svn

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/vendor/trax/ -> action_mailer.php (sommaire)

File for ActionMailer class (PHP 5)

Copyright: (c) 2005 John Peterson
Version: $Id: action_mailer.php 217 2006-06-07 02:37:36Z john $
Poids: 456 lignes (17 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ActionMailer:: (18 méthodes):
  __construct()
  __call()
  set_headers()
  format_emails()
  set_text_body()
  set_html_body()
  initialize_defaults()
  create_mail()
  render_message()
  render_partial()
  encoded()
  deliver()
  add_attachment()
  validate_email()
  set_header_line()
  add_error()
  get_errors()
  get_errors_as_string()


Classe: ActionMailer  - X-Ref


__construct()   X-Ref
ActionMailer constructor.


__call($method_name, $parameters)   X-Ref
Override call() to do some magic where you can call create_*() and deliver_*().


set_headers()   X-Ref
Set all the necessary email headers


format_emails($emails, $type = null)   X-Ref
Format an array of emails into a correct string / validate emails.


set_text_body($text)   X-Ref
Set the text body of the email.


set_html_body($html)   X-Ref
Set the html body of the email.


initialize_defaults($method_name)   X-Ref
Sets up default class variables for this mailer.  Classes extending
ActionMailer can override these values.


create_mail($method_name, $parameters = array()   X-Ref
Sets up and creates the email for deliver().


render_message($method_name, $body = array()   X-Ref
Load the template view file for the body of the email.


render_partial($path, $options = array()   X-Ref
Uses ActionControllers render_partial method.


encoded($add_pre_tags = false)   X-Ref
Return a text version of the email currently loaded.


deliver($mail = null)   X-Ref
Sends the email loaded into this object via create_mail().


add_attachment($file, $content_type ='application/octet-stream', $file_name = '', $is_file = true, $encoding = 'base64')   X-Ref
Add an attachment to an email.


validate_email($email)   X-Ref
Validates a single email address

param: string $email
return: boolean

set_header_line($header_key, $header_value)   X-Ref
Set a single line for the header of an email

param: string $header_key
param: string $header_value

add_error($error, $key = null)   X-Ref
Add or overwrite description of an error to the list of errors

param: string $error Error message text
param: string $key Key to associate with the error (in the

get_errors($return_string = false, $seperator = "<br>")   X-Ref
Return description of non-fatal errors

param: boolean $return_string
param: string $seperator  String to concatenate between error
return: mixed Error description(s), if any

get_errors_as_string($seperator = "<br>")   X-Ref
Return errors as a string.

Concatenate all error descriptions into a stringusing
$seperator between elements and return the string.
param: string $seperator  String to concatenate between error
return: string Concatenated error description(s), if any



Généré le : Sun Feb 25 20:04:38 2007 par Balluche grâce à PHPXref 0.7