KWeb  6.4
KWebItem_NewsLetter Class Reference
Inheritance diagram for KWebItem_NewsLetter:
KWebItem KWebObject_Translateable KWebObject_Attributable KWebObject

Public Member Functions

 initializeObjectProperties (array $data)
 Initializes object properties.
 getItemPrinter ()
 buildObjectForm ($id, array $options=array())
 Builds the user input form for this object.
 getFlags ()
 setFlags ($flags)
 markSentTime ($lang=false)
 needsHeader ()
 needsFooter ()
 isContentDynamic ()
 isSent ($lang=false)
 getSentTime ($lang=false)
 isPrepaired ($lang=false)
 getContent ($lang=false)
 buildNewsletter (array $mail, &$cached, $lang=false)
 getQueueRequestId ()
 getQueueId ()
 newsletterRun ($continue, $lang=false)
 newsletterSendByCron ()

Static Public Member Functions

static getClassInfo ()
 Returns information about this class.
static canAssignAsChild ($parent, $attrId=ATTR_ALL)
 Zwraca true, jeżeli można dopiąć ten typ do wskazanego elementu.
static prepareSearch ($search)
static getClassAttributes (array $options=array())
 Returns attribute table for this class.
static isTranslateable ()
static runCron ()
 Wyszukuje newslettery przeznaczone do wysyłki i je przygotowuje...

Data Fields

const ATTR_ATTACHMENT = 'attachment'

Member Function Documentation

KWebItem_NewsLetter::buildNewsletter ( array $  mail,
&$  cached,
lang = false 
)
Parameters:
mailarray('email', 'type', 'mail_key', 'preview')
cached
Returns:
array('html', 'plain')
KWebItem_NewsLetter::buildObjectForm ( id,
array $  options = array() 
)

Builds the user input form for this object.

Options specify the intent of the form (full edit, quick edit, quick add, and so on). Once build, the form should be attached to this object with setObjectForm().

By default, the form will be built automatically, using KWebAttribute form intents ($group and $forms)

Returns:
KWebAttribute_Table_Form

Reimplemented from KWebItem.

static KWebItem_NewsLetter::canAssignAsChild ( parent,
attrId = ATTR_ALL 
) [static]

Zwraca true, jeżeli można dopiąć ten typ do wskazanego elementu.

Reimplemented from KWebItem.

static KWebItem_NewsLetter::getClassAttributes ( array $  options = array()) [static]

Returns attribute table for this class.

Once created, the table should be stored in a static value. The table should be read only.

Options contain 'genre', 'type' and 'object' for which this attribute table is needed. However, the best practice is to always return always the same, static attribute table.

Overriding classes should be responsible to clone the table and it's attributes and modify them if needed.

Returns:
KWebAttribute_Table_Class

Reimplemented from KWebItem.

static KWebItem_NewsLetter::getClassInfo ( ) [static]

Returns information about this class.

genre type name icon

Returns:
array

Reimplemented from KWebObject.

KWebItem_NewsLetter::getContent ( lang = false)
KWebItem_NewsLetter::getFlags ( )
KWebItem_NewsLetter::getItemPrinter ( )

Reimplemented from KWebItem.

KWebItem_NewsLetter::getQueueId ( )
KWebItem_NewsLetter::getQueueRequestId ( )
KWebItem_NewsLetter::getSentTime ( lang = false)
KWebItem_NewsLetter::initializeObjectProperties ( array $  data)

Initializes object properties.

Properties are usually mapped 1-to-1 with object's properties

Reimplemented from KWebObject.

KWebItem_NewsLetter::isContentDynamic ( )
KWebItem_NewsLetter::isPrepaired ( lang = false)
KWebItem_NewsLetter::isSent ( lang = false)
static KWebItem_NewsLetter::isTranslateable ( ) [static]

Reimplemented from KWebObject_Translateable.

KWebItem_NewsLetter::markSentTime ( lang = false)
KWebItem_NewsLetter::needsFooter ( )
KWebItem_NewsLetter::needsHeader ( )
KWebItem_NewsLetter::newsletterRun ( continue,
lang = false 
)
Returns:
czy jest jeszcze więcej?
KWebItem_NewsLetter::newsletterSendByCron ( )
static KWebItem_NewsLetter::prepareSearch ( search) [static]
Parameters:
$searchKWebSearch

Reimplemented from KWebItem.

static KWebItem_NewsLetter::runCron ( ) [static]

Wyszukuje newslettery przeznaczone do wysyłki i je przygotowuje...

jeden po jednym...

KWebItem_NewsLetter::setFlags ( flags)

Field Documentation


The documentation for this class was generated from the following file: