Class: Group

Class:Group
Description:Group-class
File:/include/group.php
CVS Version:1.4
CVS Modification:2004-05-21 14:15
Variables:
NameTypeDefaultDescription
iIdInteger0database id of group
sTitleStringGroup title
bIsSingleUserGroupBooleanfalse
aUsersArrayfalseList of User-object that are members of the group

Group

Description:Constructor
Returns: [Undefined]
Arguments:
NameTypeOptionalDescription
uInputUndefined YES [false]

bGetById

Description:Get the Group from database with id
Returns: [Boolean] true on success
Arguments:
NameTypeOptionalDescription
iIdIntegerId in database

bFetchObject

Description:Fetches the database-array to the current object
Returns: [Boolean] true on succes
Arguments:
NameTypeOptionalDescription
aGroupArray referenceArray to fetch

bInsertUser

Description:Inserts a new user in the Database as part of the group
Returns: [Boolean] True if Succesfull
Arguments:
NameTypeOptionalDescription
iUserIdIntegerId of the user that will be added to the group
iIsAdminInteger YES [0]

bUpdateUserType

Description:Updates the user data, depending if it is a regular user or a group administrator
Returns: [Boolean] True if Succesfull
Arguments:
NameTypeOptionalDescription
iUserIdIntegerId of the user that will be updated
iIsAdminInteger YES [0]

bDeleteUser

Description:Removes a user from the Database
Returns: [Boolean] True if Succesfull
Arguments:
NameTypeOptionalDescription
iUserIdIntegerId of the user that will be removed from the group

iGetUsers

Description:Fill the aUsers-array with member user-objects
Returns: [Integer] Number of users in group
Arguments:
NameTypeOptionalDescription
sSortOrderString[optional] Database-field to sort by, default

bUpdate

Description:
Returns: [Boolean]
Arguments:
NameTypeOptionalDescription