IMP_Dynamic_Compose::_getContents PHP Method

_getContents() protected method

Create the IMP_Contents objects needed to create a message.
protected _getContents ( ) : IMP_Contents
return IMP_Contents The IMP_Contents object.
    protected function _getContents()
    {
        if (!is_null($this->indices)) {
            try {
                return $GLOBALS['injector']->getInstance('IMP_Factory_Contents')->create($this->indices);
            } catch (Horde_Exception $e) {
            }
        }
        $this->vars->buid = null;
        $this->vars->type = 'new';
        throw new IMP_Exception(_("Could not retrieve message data from the mail server."));
    }
IMP_Dynamic_Compose