Class NewsletterRecipientCollection
Newsletter Collection class.
-
cGenericDb
-
cItemBaseAbstract
-
ItemCollection
-
NewsletterRecipientCollection
Methods summary
public
|
|
public
|
#
create( string $sEMail, string $sName = "", integer $iConfirmed = 0, string $sJoinID = "", integer $iMessageType = 0 )
Creates a new recipient
Parameters
- $sEMail
string $sEMail Specifies the e-mail adress
- $sName
string $sName Specifies the recipient name (optional)
- $iConfirmed
integer $iConfirmed Specifies, if the recipient is confirmed (optional)
- $sJoinID
string $sJoinID Specifies additional recipient group ids to join (optional, e.g.
47,12,...)
- $iMessageType
integer $iMessageType Specifies the message type for the recipient (0 = text, 1 = html)
|
public
boolean
|
#
delete( mixed $itemID )
Overridden delete method to remove recipient from groupmember table before
deleting recipient
Overridden delete method to remove recipient from groupmember table before
deleting recipient
Parameters
- $itemID
mixed $itemID int specifies the recipient
Returns
boolean
Overrides
|
public
integer
|
#
purge( mixed $timeframe )
Purge method to delete recipients which hasn't been confirmed since over a
month
Purge method to delete recipients which hasn't been confirmed since over a
month
Parameters
- $timeframe
mixed $timeframe int Days after creation a not confirmed recipient will be removed
Returns
integer Count of deleted recipients
|
public
recpient
|
#
emailExists( mixed $sEmail )
checkEMail returns true, if there is no recipient with the same e-mail
address; otherwise false
checkEMail returns true, if there is no recipient with the same e-mail
address; otherwise false
Parameters
- $sEmail
mixed $email string e-mail
Returns
recpient item if item with e-mail exists, false otherwise
|
public
|
#
updateKeys( )
Sets a key for all recipients without key or an old key (len(key) <>
30)
Sets a key for all recipients without key or an old key (len(key) <>
30)
|
Methods inherited from ItemCollection
ItemCollection(),
_buildGroupWhereStatements(),
_buildWhereStatements(),
_delete(),
_deleteMultiple(),
_fetchJoinTables(),
_findReverseJoinPartner(),
_initializeDriver(),
_recursiveStructuredFetch(),
_resolveLinks(),
_setItemClass(),
_setJoinPartner(),
addResultField(),
copyItem(),
count(),
createNewItem(),
deleteBy(),
deleteByWhereClause(),
deleteWhere(),
deleteWhereGroup(),
exists(),
fetchArray(),
fetchById(),
fetchObject(),
fetchTable(),
flexSelect(),
getAllIds(),
getFieldsByWhereClause(),
getIdsByWhereClause(),
link(),
loadItem(),
next(),
query(),
queryAndFetchStructured(),
removeResultField(),
resetQuery(),
select(),
setEncoding(),
setGroupCondition(),
setInnerGroupCondition(),
setLimit(),
setOrder(),
setWhere(),
setWhereGroup()
|
Properties inherited from ItemCollection
$_JoinPartners,
$_aOperators,
$_bAllMode,
$_collectionCache,
$_driver,
$_encoding,
$_forwardJoinPartners,
$_groupConditions,
$_innerGroupConditions,
$_itemClass,
$_itemClassInstance,
$_iteratorItem,
$_lastSQL,
$_limitCount,
$_limitStart,
$_links,
$_order,
$_resultFields,
$_where,
$_whereRestriction,
$objects
|