The Inx_Api_Rendering_GeneralMailingRenderer is used to generate mail content of the following mailing types using the API:
The Inx_Api_Rendering_GeneralMailingRenderer is used to generate mail content of the following mailing types using the API:
$oRenderer = $oSession->getGeneralMailingManager()->createRenderer(); $oRenderer->parse( $oMailing->getId(), Inx_Api_Rendering_BuildMode::NORMAL() ); $oContent = $oRenderer->build( $iRecipientId );
Inx_Api_Rendering_GeneralMailingRenderer can handle the following different build modes:
Note: A Inx_Api_Rendering_GeneralMailingRenderer object must be closed once it is not needed anymore to prevent memory leaks and other potentially harmful side effects.
Located in /Api/Rendering/GeneralMailingRenderer.php (line 52)
Generates the personalized mail content (recipient address, subject, HTML and/or plain text, . parsed mailing for the specified recipient and in the specified content type. If the recipient ID -2 is provided, a non existing recipient is used with the email address
Generates the personalized mail content (recipient address, subject, HTML and/or plain text, ...) of the last parsed mailing for the specified recipient and in the specified content type.
If the recipient ID -2 is provided, a non existing recipient is used with the email address "unknown@unknown.invalid", the ID 0 and no other attribute set.
Closes this Inx_Api_Rendering_GeneralMailingRenderer and releases any server resources associated with this object. needed anymore to prevent memory leaks and other potentially harmful side effects.
Closes this Inx_Api_Rendering_GeneralMailingRenderer and releases any server resources associated with this object. An Inx_Api_Rendering_GeneralMailingRenderer object must be closed once it is not needed anymore to prevent memory leaks and other potentially harmful side effects.
Prepares the mailing for a preview of a specific sending.
Prepares the mailing for a preview of a specific sending. It checks the mail integrity (syntax errors, references to orphaned elements, ... ).
Errors will be listed in the Inx_Api_Rendering_ParseException The mailing ID and sending ID are supposed to be valid (existing mailing and sending). The following rules apply to the value of the sending ID parameter:
Documentation generated on Thu, 17 Sep 2015 14:27:25 +0200 by phpDocumentor 1.3.2