Single Newsletter Item
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| version | 0.1 |
| copyright | four for business 2003 |
Item(string $table, string $primaryKey, $lifetime)
| inherited_from | \Item::Item() |
|---|
stringThe table to use as information source
stringThe primary key to use
Newsletter($idnews)
_deChunkHTTPBody($sHeader, $sBody, $sEOL)
_getNewsletterTagData($sHTML, $sTag)
_inFilter(mixed $data) : mixed
| see | \setFilters |
|---|---|
| access | private |
| inherited_from | \Item::_inFilter() |
mixedData to filter
mixedFiltered data_onLoad() : \none
Function which is called whenever an item is loaded. Inherited classes should override this function if desired.
| inherited_from | \Item::_onLoad() |
|---|
\none_outFilter(mixed $data) : mixed
| see | \setFilters |
|---|---|
| access | private |
| inherited_from | \Item::_outFilter() |
mixedData to filter
mixedFiltered data_replaceTag(string $sCode, bool $bIsHTML, string $sField, string $sData)
MAIL_NAME) with data. If code is just text using str_replace; if it is HTML by using regular expressions
| access | private |
|---|
stringsCode Code, where the tags will be replaced (by reference)
boolbIsHTML Is code HTML?
stringsField Field name, without MAIL_ (e.g. just "name")
stringsData Data
_setMetaObject($objectname)
| inherited_from | \Item::_setMetaObject() |
|---|
deleteProperty(string $type, string $name)
| inherited_from | \Item::deleteProperty() |
|---|
stringSpecifies the type
stringSpecifies the name
get(string $field) : mixed
| inherited_from | \Item::get() |
|---|
stringSpecifies the field to retrieve
mixedValue of the fieldgetField(string $field) : mixed
| inherited_from | \Item::getField() |
|---|
stringSpecifies the field to retrieve
mixedValue of the fieldgetHTMLMessage() : string
stringHTML messagegetMetaObject()
| inherited_from | \Item::getMetaObject() |
|---|
getProperty(string $type, string $name) : boolean
| inherited_from | \Item::getProperty() |
|---|
stringSpecifies the type
stringSpecifies the name
booleanValue of the given propertyhtmlArticleExists() : bool
boolloadBy(string $field, string $value, bool $bSafe) : bool
| inherited_from | \Item::loadBy() |
|---|
stringSpecifies the field
stringSpecifies the value
booluse inFilter or not
boolTrue if the load was successfulloadByPrimaryKey(string $value) : bool
| inherited_from | \Item::loadByPrimaryKey() |
|---|
stringSpecifies the primary key value
boolTrue if the load was successfulsend($idcatart, $destination, $to, $iChunkSize, $iChunk, $sEncoding)
| deprecated | >V4.6.15 - 21.05.2007 Sends a newsletter |
|---|
integer specifies id of the 'BlackBox'-acrticle containing the 'BlackBox'-module for management
string specifies, who will receive the newsletter ("all", "default" = defaultgroup, "selection" = selected groups, "single" = one recepient [e.g. Welcome-Newsletter])
array specifies, which group of recipients shall receive the newsletter ("all", "default" = defaultgroup, "4,5,6" = group IDs)
integer specifies size of chunks when sending in chunks, 0 = don't send in chunks
integer specifies current chunk number when sending in chunks result array array of recipient names/e-mails
sendDirect(integer $iIDCatArt, integer $iIDNewsRcp, integer $iIDNewsGroup, array $aSendRcps, string $sEncoding)
Note: Sending in chunks not supported! Only usable for tests and only a few recipients.
integeridcatart of newsletter handler article
integerIf specified, newsletter recipient id, ignored, if group specified
integerIf specified, newsletter recipient group id
arrayAs reference: Filled with a list of succesfull recipients
stringMessage (and header) encoding, e.g. iso-8859-1
sendEMail(integer $iIDCatArt, string $sEMail, string $sName, $bSimulatePlugins, string $sEncoding)
integeridcatart of newsletter handler article
stringRecipient email address
stringOptional: Recipient name
stringMessage (and header) encoding, e.g. iso-8859-1
set(string $field, string $value, $safe)
| inherited_from | \Item::set() |
|---|
stringSpecifies the field to set
stringSpecifies the value to set
setField(string $field, string $value, boolean $safe)
| inherited_from | \Item::setField() |
|---|
stringSpecifies the field to set
stringSpecifies the value to set
booleanSpeficies if we should translate characters
setFilters(array $arrInFilters, array $arrOutFilters) : void
Examples:
$obj->setFilters(array('addslashes'), array('stripslashes')); $obj->setFilters(array('htmlencode', 'addslashes'), array('stripslashes', 'htmlencode'));
| inherited_from | \Item::setFilters() |
|---|
arrayinFilters array with function names
arrayoutFilters array with function names
setProperty(string $type, string $name, string $value)
| inherited_from | \Item::setProperty() |
|---|
stringSpecifies the type
stringSpecifies the name
stringSpecifies the value
store()
$_arrInFilters : array
| access | private |
|---|---|
| inherited_from | \Item::$$_arrInFilters |
$_arrOutFilters : array
| access | private |
|---|---|
| inherited_from | \Item::$$_arrOutFilters |
$_sError : string
| access | private |
|---|
$cache : array
| access | private |
|---|---|
| inherited_from | \Item::$$cache |
$db : object
| access | private |
|---|---|
| inherited_from | \Item::$$db |
$lasterror : string
| access | private |
|---|---|
| inherited_from | \Item::$$lasterror |
$lifetime : int
| access | private |
|---|---|
| inherited_from | \Item::$$lifetime |
$modifiedValues : array
| access | private |
|---|---|
| inherited_from | \Item::$$modifiedValues |
$oldPrimaryKey : string
| access | private |
|---|---|
| inherited_from | \Item::$$oldPrimaryKey |
$primaryKey : object
| access | private |
|---|---|
| inherited_from | \Item::$$primaryKey |
$properties : object
| access | private |
|---|---|
| inherited_from | \Item::$$properties |
$table : string
| access | private |
|---|---|
| inherited_from | \Item::$$table |
$values : array
| access | private |
|---|---|
| inherited_from | \Item::$$values |
$virgin : boolean
If true, the object is virgin and no operations on it except load-Functions are allowed.
| access | private |
|---|---|
| inherited_from | \Item::$$virgin |