Inheritance diagram for BaseAlert:
You add alerts, which consist of a message and a link. They can then view the alert and it takes the to them appropriate page. They are automatically deleted after viewed.
Definition at line 10 of file base-alert.inc.php.
Public Member Functions | |
__construct ($data=null, $table= 'alerts') | |
canView () | |
can i view the alert? | |
canDelete () | |
can i delete the alert? | |
drawDeletePage () | |
draw our delete page, no confirmation | |
initViewPage () | |
prep the view page. | |
getName ($link=false) | |
gets and/or links our alert text | |
drawLine () | |
draws our alert line | |
drawRow () | |
draws our alert as a row... | |
getRssItem () | |
gets our alert as an rss item | |
getPublicData () | |
gets our alert for data export | |
getCreateFieldsArray () | |
get an array of fields in the table that stores the alerts | |
getCreateIndexesArray () | |
get an array of indexes on fields in the alert table | |
Protected Member Functions | |
getEditPageXml () | |
get the edit page xml |
|
Reimplemented from BaseObject. Definition at line 15 of file base-alert.inc.php. |
|
can i delete the alert?
Reimplemented from BaseObject. Definition at line 37 of file base-alert.inc.php. References canView(). |
|
can i view the alert?
Reimplemented from BaseObject. Definition at line 25 of file base-alert.inc.php. Referenced by canDelete(). |
|
draw our delete page, no confirmation
Definition at line 55 of file base-alert.inc.php. |
|
draws our alert line
Reimplemented from BaseObject. Definition at line 97 of file base-alert.inc.php. References getName(). Referenced by drawRow(). |
|
draws our alert as a row... calls drawLine() Reimplemented from BaseObject. Definition at line 105 of file base-alert.inc.php. References drawLine(). |
|
get an array of fields in the table that stores the alerts
Reimplemented from BaseObject. Definition at line 146 of file base-alert.inc.php. |
|
get an array of indexes on fields in the alert table
Reimplemented from BaseObject. Definition at line 164 of file base-alert.inc.php. |
|
get the edit page xml in this special case, we return nothing since there is no edit page. Reimplemented from BaseObject. Definition at line 47 of file base-alert.inc.php. |
|
gets and/or links our alert text
Definition at line 89 of file base-alert.inc.php. Referenced by drawLine(), getPublicData(), and getRssItem(). |
|
gets our alert for data export
Reimplemented from BaseObject. Definition at line 130 of file base-alert.inc.php. References getName(). |
|
gets our alert as an rss item
Reimplemented from BaseObject. Definition at line 115 of file base-alert.inc.php. References getName(). |
|
prep the view page. actually with this one, it handles all the work, since we're redirecting them afterwards. it loads the alert, gets the url, deletes, then redirects. Definition at line 69 of file base-alert.inc.php. References BaseModule::assertLogin(), and Util::redirect(). |