Ignore:
Timestamp:
Feb 20, 2014 3:03:59 AM (10 years ago)
Author:
anonymous
Message:

Completed integrating /branches/eli_branch into /trunk. Changes include:

  • Removed closing ?> from end of files
  • Upgrade old-style contructor methods to use construct() instead.
  • Class properties and methods defined as public, private, static or protected
  • Ensure code runs under E_ALL with only mysql_* deprecated warnings
  • Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
  • Run the php cli -l option to check files for syntax errors.
  • Bring tests up-to-date with latest version and methods of PHPUnit
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/lib/Email.inc.php

    r460 r468  
    5656
    5757    // Default parameters, to be overwritten by setParam() and read with getParam()
    58     var $_params = array(
     58    private $_params = array(
    5959        'to' => null,
    6060        'from' => null,
     
    7474
    7575    // String that contains the email body.
    76     var $_template;
     76    private $_template;
    7777
    7878    // String that contains the email body after replacements.
    79     var $_template_replaced;
     79    private $_template_replaced;
    8080
    8181    /**
     
    8787     * @since   28 Nov 2005 12:59:41
    8888     */
    89     function Email($params=null)
     89    public function __construct($params=null)
    9090    {
    9191        // The regex used in validEmail(). Set here instead of in the default _params above so we can use the concatenation . dot.
     
    118118     * @param  array    $params     Array of parameters (key => val pairs).
    119119     */
    120     function setParam($params)
     120    public function setParam($params)
    121121    {
    122122        $app =& App::getInstance();
     
    145145     * @return mixed               Configured parameter value.
    146146     */
    147     function getParam($param)
     147    public function getParam($param)
    148148    {
    149149        $app =& App::getInstance();
     
    165165     * @since   28 Nov 2005 12:56:23
    166166     */
    167     function setTemplate($template)
     167    public function setTemplate($template)
    168168    {
    169169        $app =& App::getInstance();
     
    189189     * @since   28 Nov 2005 12:56:23
    190190     */
    191     function setString($string)
     191    public function setString($string)
    192192    {
    193193        $app =& App::getInstance();
     
    213213     * @since   28 Nov 2005 13:08:51
    214214     */
    215     function replace($replacements)
     215    public function replace($replacements)
    216216    {
    217217        $app =& App::getInstance();
     
    250250     * @since   28 Nov 2005 12:56:09
    251251     */
    252     function send($to=null, $from=null, $subject=null, $headers=null)
     252    public function send($to=null, $from=null, $subject=null, $headers=null)
    253253    {
    254254        $app =& App::getInstance();
     
    364364     * @since   30 Nov 2005 22:00:50
    365365     */
    366     function validEmail($email)
     366    public function validEmail($email)
    367367    {
    368368        $app =& App::getInstance();
     
    388388}
    389389
    390 ?>
Note: See TracChangeset for help on using the changeset viewer.