Public Member Functions | |
__construct () | |
delete ($sOxId=null) | |
getGroups () | |
getHtmlText () | |
getPlainText () | |
prepare ($sUserid, $blPerfLoadAktion=false) | |
send () | |
Protected Member Functions | |
_setParams ($blPerfLoadAktion=false) | |
_setUser ($sUserid) | |
_assignProducts ($oView, $blPerfLoadAktion=false) | |
_setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT) | |
Protected Attributes | |
$_sHtmlText = null | |
$_sPlainText = null | |
$_oGroups = null | |
$_oUser = null | |
$_sClassName = 'oxnewsletter' |
Newsletter manager. Performs creation of newsletter text, assign newsletter to user groups, deletes and etc.
Definition at line 9 of file oxnewsletter.php.
oxNewsletter.__construct | ( | ) |
Class constructor, initiates Smarty engine object, parent constructor (parent.oxBase()).
Reimplemented from oxBase.
Definition at line 51 of file oxnewsletter.php.
oxNewsletter._assignProducts | ( | $ | oView, | |
$ | blPerfLoadAktion = false | |||
) | [protected] |
Add newsletter products (#559 only if we have user we can assign this info), adds products which fit to the last order of assigned user.
oxview | $oView view object to store view data | |
bool | $blPerfLoadAktion perform option load actions |
Definition at line 222 of file oxnewsletter.php.
oxNewsletter._setFieldData | ( | $ | sFieldName, | |
$ | sValue, | |||
$ | iDataType = oxField::T_TEXT | |||
) | [protected] |
Sets data field value
string | $sFieldName index OR name (eg. 'oxarticles__oxtitle') of a data field to set | |
string | $sValue value of data field | |
int | $iDataType field type |
Reimplemented from oxBase.
Definition at line 263 of file oxnewsletter.php.
oxNewsletter._setParams | ( | $ | blPerfLoadAktion = false |
) | [protected] |
Assigns to Smarty oxuser object, add newsletter products, adds products which fit to the last order of this user, generates HTML and plaintext format newsletters.
bool | $blPerfLoadAktion perform option load actions |
Definition at line 171 of file oxnewsletter.php.
oxNewsletter._setUser | ( | $ | sUserid | ) | [protected] |
Creates oxuser object (user ID passed to method),
string | $sUserid User ID or OBJECT |
Definition at line 203 of file oxnewsletter.php.
oxNewsletter.delete | ( | $ | sOxId = null |
) |
Deletes object information from DB, returns true on success.
string | $sOxId object ID (default null) |
Reimplemented from oxBase.
Definition at line 64 of file oxnewsletter.php.
oxNewsletter.getGroups | ( | ) |
Returns assigned user groups list object
Definition at line 89 of file oxnewsletter.php.
oxNewsletter.getHtmlText | ( | ) |
oxNewsletter.getPlainText | ( | ) |
oxNewsletter.prepare | ( | $ | sUserid, | |
$ | blPerfLoadAktion = false | |||
) |
Creates oxshop object and sets base parameters (such as currency and language).
string | $sUserid User ID or OBJECT | |
bool | $blPerfLoadAktion perform option load actions |
Definition at line 135 of file oxnewsletter.php.
oxNewsletter.send | ( | ) |
Creates oxemail object, calls mail sending function (oxEMail.sendNewsletterMail() (#2542 added subject field)), returns true on success.
Definition at line 156 of file oxnewsletter.php.
oxNewsletter.$_oGroups = null [protected] |
Definition at line 31 of file oxnewsletter.php.
oxNewsletter.$_oUser = null [protected] |
Definition at line 38 of file oxnewsletter.php.
oxNewsletter.$_sClassName = 'oxnewsletter' [protected] |
Reimplemented from oxBase.
Definition at line 45 of file oxnewsletter.php.
oxNewsletter.$_sHtmlText = null [protected] |
Definition at line 17 of file oxnewsletter.php.
oxNewsletter.$_sPlainText = null [protected] |
Definition at line 24 of file oxnewsletter.php.