Ignore:
Timestamp:
Nov 30, 2013 7:30:44 PM (11 years ago)
Author:
anonymous
Message:

added public and private keywords to all properties and methods, changed old classname constructor function to construct, removed more ?> closing tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eli_branch/lib/Email.inc.php

    r438 r439  
    5555
    5656    // Default parameters, to be overwritten by setParam() and read with getParam()
    57     var $_params = array(
     57    private $_params = array(
    5858        'to' => null,
    5959        'from' => null,
     
    7373
    7474    // String that contains the email body.
    75     var $_template;
     75    private $_template;
    7676
    7777    // String that contains the email body after replacements.
    78     var $_template_replaced;
     78    private $_template_replaced;
    7979
    8080    /**
     
    8686     * @since   28 Nov 2005 12:59:41
    8787     */
    88     function Email($params=null)
     88    public function __construct($params=null)
    8989    {
    9090        // The regex used in validEmail(). Set here instead of in the default _params above so we can use the concatenation . dot.
     
    117117     * @param  array    $params     Array of parameters (key => val pairs).
    118118     */
    119     function setParam($params)
     119    public function setParam($params)
    120120    {
    121121        $app =& App::getInstance();
     
    144144     * @return mixed               Configured parameter value.
    145145     */
    146     function getParam($param)
     146    public function getParam($param)
    147147    {
    148148        $app =& App::getInstance();
     
    164164     * @since   28 Nov 2005 12:56:23
    165165     */
    166     function setTemplate($template)
     166    public function setTemplate($template)
    167167    {
    168168        $app =& App::getInstance();
     
    188188     * @since   28 Nov 2005 12:56:23
    189189     */
    190     function setString($string)
     190    public function setString($string)
    191191    {
    192192        $app =& App::getInstance();
     
    212212     * @since   28 Nov 2005 13:08:51
    213213     */
    214     function replace($replacements)
     214    public function replace($replacements)
    215215    {
    216216        $app =& App::getInstance();
     
    249249     * @since   28 Nov 2005 12:56:09
    250250     */
    251     function send($to=null, $from=null, $subject=null, $headers=null)
     251    public function send($to=null, $from=null, $subject=null, $headers=null)
    252252    {
    253253        $app =& App::getInstance();
     
    363363     * @since   30 Nov 2005 22:00:50
    364364     */
    365     function validEmail($email)
     365    public function validEmail($email)
    366366    {
    367367        $app =& App::getInstance();
Note: See TracChangeset for help on using the changeset viewer.