ZF-7637: New property to allow overriding class name

Issue Type: Improvement Created: 2009-08-19T07:28:50.000+0000 Last Updated: 2012-11-20T20:53:02.000+0000 Status: Closed Fix version(s): Reporter: S├ębastien MALOT (wazzameleon) Assignee: None Tags: - Zend_Mail_Storage

Related issues: Attachments:


Could you do the same thing as "_messageClass" in the class "Zend_Mail_Storage_Abstract" allowing to use personal class to store Mail Message. In my application I use this class, but I'm oblige to copy/paste a big method which avoid any update of the framework.

<pre class="literal">
class Mail_Storage_Imap extends Zend_Mail_Storage_Imap {

    protected $_folderClass = 'Zend_Mail_Storage_Folder';

    public function __construct($params){


    public function onInit(){
        $this->_messageClass = 'Mail_Message';
        $this->_folderClass  = 'Mail_Storage_Folder';

     * get root folder or given folder
     * @param  string $rootFolder get folder structure for given folder, else root
     * @return Zend_Mail_Storage_Folder root or wanted folder
     * @throws Zend_Mail_Storage_Exception
     * @throws Zend_Mail_Protocol_Exception
    public function getFolders($rootFolder = null)
        $root = new $this->_folderClass('/', '/', false);
        $folder = new $this->_folderClass($localName, $globalName, $selectable);

I hope I could help you, Bye.


Posted by Rob Allen (rob) on 2012-11-20T20:53:02.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.