codegooglecom / rend

Automatically exported from code.google.com/p/rend
Other
0 stars 0 forks source link

Suggestion for MailTransport Action Helper #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<?php
/**
 *
 */

/** Rend_Controller_Action_Helper_Abstract */
require_once 'Zend/Controller/Action/Helper/Abstract.php';

/**
 *
 */
class Rend_Controller_Action_Helper_MailTransport extends
Zend_Controller_Action_Helper_Abstract
{

    /**
     * Mail Transport object
     * @var     Zend_Mail_Transport_Abstract
     */
    private $_mailTransport;

    /**
     * Get the mail transport object
     *
     * @return  Zend_Mail_Transport_Abstract
     */
    public function direct()
    {
        return $this->getMailTransport();
    }

    /**
     * Get the mail transport object
     *
     * @return  Zend_Mail_Transport_Abstract
     */
    public function getMailTransport()
    {
        if (!$this->_mailTransport) {
            $this->_mailTransport =
$this->getActionController()->getInvokeArg('rendFactoryLoader')->mailtransport()
;
        }
        return $this->_mailTransport;
    }

}

Original issue reported on code.google.com by konrn...@gmail.com on 3 Dec 2008 at 5:12

GoogleCodeExporter commented 9 years ago

Original comment by justin.h...@gmail.com on 3 Dec 2008 at 4:56

GoogleCodeExporter commented 9 years ago
FactoryLoader + MailTransport class implements this.

Original comment by justin.h...@gmail.com on 9 Apr 2009 at 2:38