Inheritance diagram for BaseGroup:
A class that handles creating, editing, deleting of groups. Also handles things like adding/removing members, and the various permissions associated with that. It also has pages for joining and leaving.
Definition at line 10 of file base-group.inc.php.
Public Member Functions | |
__construct ($data=null, $table= 'groups', $joinerTable= 'users_to_groups', $joinedObject= 'User') | |
our constructor. | |
getPagesXml () | |
add join / leave pages | |
isMember ($id) | |
this function tells us if we're a member of the group or not. | |
addMember ($id) | |
this function adds a member to the group | |
removeMember ($id) | |
removes a member from the group | |
getGroupMemberIds () | |
get the id's of the group members | |
canJoin () | |
tells us if we can join the group. | |
canLeave () | |
tells us if we can leave the group. | |
initJoinPage () | |
initializes our join page. | |
drawJoinPage () | |
adds us to the group and draws a status message. | |
initLeavePage () | |
initializes our leave page. | |
drawLeavePage () | |
removes us from the group, draws status, etc. | |
getName ($link=false) | |
gets us a name to draw. | |
editFormAddFields ($form) | |
add in our name / description fields to edit. | |
getCreateTableSql () | |
hers is our table creation sql. | |
drawCreateTablePage () | |
see BaseModule. | |
runCreateTableSql () | |
see BaseModule. | |
getJoinerTableSql () | |
here is our joiner table creation sql. | |
getCreateFieldsArray () | |
adds in our name and description fields... | |
getJoinerFieldsArray () | |
get an array of fields for our joiner table. | |
getJoinerIndexesArray () | |
get an array of keys for the joiner table. | |
getRssItem () | |
get our rss action for this group! see BaseObject | |
getPublicData () | |
get our data for this group! see BaseObject | |
Public Attributes | |
$joinerTable | |
the name of our joiner table in teh db. | |
$joinedObject | |
the class name of our joined object | |
$members = array() | |
an array of our members | |
Protected Member Functions | |
editPagePostSuccess ($form) | |
post processing, add creator as member |
|
our constructor. create the group!
Definition at line 35 of file base-group.inc.php. |
|
this function adds a member to the group
Definition at line 81 of file base-group.inc.php. References dbExecute(), and removeMember(). Referenced by drawJoinPage(), and editPagePostSuccess(). |
|
tells us if we can join the group. used in initJoinPage()
Definition at line 140 of file base-group.inc.php. References isMember(). Referenced by initJoinPage(). |
|
tells us if we can leave the group. used in initLeavePage()
Definition at line 152 of file base-group.inc.php. References isMember(). Referenced by initLeavePage(). |
|
see BaseModule. adding in our joiner code Reimplemented from BaseModule. Definition at line 267 of file base-group.inc.php. |
|
adds us to the group and draws a status message.
Definition at line 176 of file base-group.inc.php. References addMember(), and getName(). |
|
removes us from the group, draws status, etc.
Definition at line 202 of file base-group.inc.php. References getName(), and removeMember(). |
|
add in our name / description fields to edit. see BaseObject Reimplemented from BaseObject. Definition at line 222 of file base-group.inc.php. |
|
post processing, add creator as member
Reimplemented from BaseObject. Definition at line 242 of file base-group.inc.php. References addMember(). |
|
adds in our name and description fields... see BaseObject Reimplemented from BaseObject. Definition at line 301 of file base-group.inc.php. |
|
hers is our table creation sql. extended to also create joiner table. you wont need to override unless you are adding tables
Reimplemented from BaseObject. Definition at line 257 of file base-group.inc.php. |
|
get the id's of the group members
Definition at line 121 of file base-group.inc.php. References dbFetchAssoc(), and dbQuery(). |
|
get an array of fields for our joiner table. extend this to add fields to the table.
Definition at line 316 of file base-group.inc.php. |
|
get an array of keys for the joiner table. extend this to add indexes to the table.
Definition at line 330 of file base-group.inc.php. |
|
here is our joiner table creation sql. you probably wont need to override.
Definition at line 289 of file base-group.inc.php. |
|
gets us a name to draw.
Definition at line 214 of file base-group.inc.php. Referenced by drawJoinPage(), drawLeavePage(), initJoinPage(), and initLeavePage(). |
|
add join / leave pages these are two pages used to let users join or leave our group. Reimplemented from BaseObject. Definition at line 52 of file base-group.inc.php. |
|
get our data for this group! see BaseObject
Reimplemented from BaseObject. Definition at line 354 of file base-group.inc.php. |
|
get our rss action for this group! see BaseObject
Reimplemented from BaseObject. Definition at line 341 of file base-group.inc.php. |
|
initializes our join page. checks to see if we can join, asserts login, etc. Definition at line 162 of file base-group.inc.php. References BaseModule::assertLogin(), canJoin(), getName(), and BaseModule::params(). |
|
initializes our leave page. checks if we can, asserts login, etc Definition at line 188 of file base-group.inc.php. References BaseModule::assertLogin(), canLeave(), getName(), and BaseModule::params(). |
|
this function tells us if we're a member of the group or not. it checks the members array. Definition at line 71 of file base-group.inc.php. Referenced by canJoin(), and canLeave(). |
|
removes a member from the group
Definition at line 103 of file base-group.inc.php. References dbExecute(). Referenced by addMember(), and drawLeavePage(). |
|
see BaseModule. adding in our joiner code Reimplemented from BaseModule. Definition at line 277 of file base-group.inc.php. References dbExecute(). |
|
the class name of our joined object
Definition at line 20 of file base-group.inc.php. |
|
the name of our joiner table in teh db.
Definition at line 15 of file base-group.inc.php. |
|
an array of our members
Definition at line 25 of file base-group.inc.php. |