Inheritance diagram for BaseInvitation:
It's designed to handle invitations for events, friendship, groups, etc. It has approve/deny payload hooks and pages to handle them.
Definition at line 9 of file base-invitation.inc.php.
Public Member Functions | |
__construct ($id=null, $table= 'invites') | |
our constructor! | |
getPagesXml () | |
our pages as xml. | |
initMainPage () | |
init our main page... | |
drawMainPage () | |
draw our main page... | |
drawRow () | |
draw our info and links to processing pages. | |
drawLine () | |
draw our info and links to processing pages. | |
getApproveLink ($text= 'approve') | |
gets a link to the approve page. | |
getDenyLink ($text= 'deny') | |
gets a link to the deny page. | |
canDelete () | |
can we delete the invite? | |
canView () | |
can we view the invite? | |
initViewPage () | |
init our view page. | |
drawViewPage () | |
draw our view page... | |
initInvitePage () | |
inits our invite page. | |
drawInvitePage () | |
draw our invite page. | |
createInviteForm ($user) | |
creates our invite form. | |
invite ($inviteeId, $note=null) | |
create an invitation to a user. | |
canRespond () | |
tells us if we are allowed to respond to this invitation. | |
initApprovePage () | |
do our init for approve. | |
drawApprovePage () | |
draw the approve page. | |
initDenyPage () | |
do our init for delete. | |
drawDenyPage () | |
draw the deny page. | |
getCreateFieldsArray () | |
get our default fields for the invitation | |
getCreateIndexesArray () | |
get our default keys for the invitation | |
Protected Member Functions | |
getInvitePageXml () | |
this function gets our xml for the invite page. | |
getApprovePageXml () | |
this function gets our xml for the approve page. | |
getDenyPageXml () | |
this function gets our xml for the deny page. | |
getEditPageXml () | |
this function gets our xml for the edit page. | |
addInviteFormFields ($form, $object) | |
add fields to the invitation form. | |
validateInvite ($form) | |
does any invite validation. | |
invitePost ($form) | |
process the invitation form post. | |
saveInvite ($inviteeId) | |
save our invite after its been posted. | |
emailInvite ($note=null) | |
email the user that they have received an invite. | |
getGroup () | |
this function gets the english name of our group. | |
doApprovePayload () | |
do our approval payload. | |
doDenyPayload () | |
do our deny payload. |
|
our constructor!
Reimplemented from BaseObject. Definition at line 14 of file base-invitation.inc.php. |
|
add fields to the invitation form.
Definition at line 267 of file base-invitation.inc.php. Referenced by createInviteForm(). |
|
can we delete the invite?
Reimplemented from BaseObject. Definition at line 166 of file base-invitation.inc.php. |
|
tells us if we are allowed to respond to this invitation.
Definition at line 394 of file base-invitation.inc.php. Referenced by drawViewPage(), initApprovePage(), and initDenyPage(). |
|
can we view the invite?
Reimplemented from BaseObject. Definition at line 178 of file base-invitation.inc.php. |
|
creates our invite form.
Definition at line 251 of file base-invitation.inc.php. References addInviteFormFields(), and BaseModule::getUrl(). Referenced by drawInvitePage(). |
|
do our approval payload. deletes invite and recreates our session w/ data. you'll want to call addBuddy() here or whatnot. Definition at line 434 of file base-invitation.inc.php. Referenced by drawApprovePage(). |
|
do our deny payload. deletes invite and recreates our session w/ data. you probably wont need to add anything, but here it is anyway. Definition at line 478 of file base-invitation.inc.php. Referenced by drawDenyPage(). |
|
draw the approve page.
Definition at line 422 of file base-invitation.inc.php. References doApprovePayload(). |
|
draw the deny page.
Definition at line 466 of file base-invitation.inc.php. References doDenyPayload(). |
|
draw our invite page. gives them the note form, etc. Definition at line 221 of file base-invitation.inc.php. References createInviteForm(), invitePost(), and validateInvite(). |
|
draw our info and links to processing pages.
Reimplemented from BaseObject. Definition at line 110 of file base-invitation.inc.php. References getApproveLink(), getDenyLink(), and getGroup(). Referenced by drawRow(), and drawViewPage(). |
|
draw our main page... recommend stuff. Reimplemented from BaseModule. Definition at line 92 of file base-invitation.inc.php. |
|
draw our info and links to processing pages.
Reimplemented from BaseObject. Definition at line 100 of file base-invitation.inc.php. References drawLine(). |
|
draw our view page... basically link to the responding stuff. Definition at line 200 of file base-invitation.inc.php. References canRespond(), and drawLine(). |
|
email the user that they have received an invite.
Definition at line 338 of file base-invitation.inc.php. References Config::get(), and getGroup(). Referenced by invite(). |
|
gets a link to the approve page.
Definition at line 144 of file base-invitation.inc.php. References BaseModule::getLink(). Referenced by drawLine(). |
|
this function gets our xml for the approve page.
Definition at line 51 of file base-invitation.inc.php. Referenced by getPagesXml(). |
|
get our default fields for the invitation
Reimplemented from BaseObject. Definition at line 494 of file base-invitation.inc.php. |
|
get our default keys for the invitation
Reimplemented from BaseObject. Definition at line 515 of file base-invitation.inc.php. |
|
gets a link to the deny page.
Definition at line 156 of file base-invitation.inc.php. References BaseModule::getLink(). Referenced by drawLine(). |
|
this function gets our xml for the deny page.
Definition at line 63 of file base-invitation.inc.php. Referenced by getPagesXml(). |
|
this function gets our xml for the edit page. in this case, removes it. Reimplemented from BaseObject. Definition at line 75 of file base-invitation.inc.php. |
|
this function gets the english name of our group.
Definition at line 384 of file base-invitation.inc.php. Referenced by drawLine(), and emailInvite(). |
|
this function gets our xml for the invite page.
Definition at line 39 of file base-invitation.inc.php. Referenced by getPagesXml(). |
|
our pages as xml. invitations adds invite, approve, and deny. we also remove edit.
Reimplemented from BaseObject. Definition at line 26 of file base-invitation.inc.php. References getApprovePageXml(), getDenyPageXml(), and getInvitePageXml(). |
|
do our init for approve. they have to be the invitee to view it. Definition at line 404 of file base-invitation.inc.php. References BaseModule::assertLogin(), canRespond(), and BaseModule::params(). |
|
do our init for delete. they have to be the invitee to do it. Definition at line 448 of file base-invitation.inc.php. References BaseModule::assertLogin(), canRespond(), and BaseModule::params(). |
|
inits our invite page. logged in only. Definition at line 211 of file base-invitation.inc.php. References BaseModule::assertLogin(). |
|
init our main page... invites. Reimplemented from BaseModule. Definition at line 83 of file base-invitation.inc.php. References BaseModule::assertLogin(). |
|
init our view page.
Definition at line 188 of file base-invitation.inc.php. References BaseModule::assertLogin(). |
|
create an invitation to a user.
Definition at line 293 of file base-invitation.inc.php. References emailInvite(), and saveInvite(). Referenced by invitePost(). |
|
process the invitation form post. you should override this to add success text.
Definition at line 310 of file base-invitation.inc.php. References invite(). Referenced by drawInvitePage(). |
|
save our invite after its been posted. override to add additional data.
Definition at line 320 of file base-invitation.inc.php. References BaseObject::save(). Referenced by invite(). |
|
does any invite validation. for you to hook into. set errors on teh form itself.
Definition at line 282 of file base-invitation.inc.php. Referenced by drawInvitePage(). |