OPEN SOURCE SOCIAL NETWORK 6.6
|
Public Member Functions | |
initAttributes () | |
createGroup ($params) | |
getGuid () | |
getUserGroups ($owner_guid, $params=array()) | |
getGroup ($guid) | |
updateGroup ($name, $description, $guid) | |
changeOwner ($owner, $guid) | |
deleteGroup ($guid) | |
countRequests () | |
getMembersRequests () | |
isMember ($group, $user) | |
getMembers ($count=false) | |
sendRequest ($from, $group) | |
requestExists ($from, $group) | |
approveRequest ($from, $group) | |
deleteMember ($from, $group) | |
searchGroups ($q, array $args=array()) | |
UploadCover () | |
ResetCoverPostition ($guid) | |
haveCover () | |
groupCovers () | |
coverURL () | |
repositionCOVER ($guid, $top, $left) | |
coverParameters ($guid) | |
getMyGroups ($user) | |
isModerator ($user_guid) | |
getPhotoFile () | |
Public Member Functions inherited from OssnObject | |
__construct ($guid=0) | |
initAttributes () | |
addObject () | |
getObjectById (array $options=array()) | |
getObjectId () | |
updateObject ($name, $value, $guid) | |
deleteObject ($object='') | |
searchObject (array $params=array()) | |
save () | |
Public Member Functions inherited from OssnEntities | |
add () | |
get_entity () | |
save () | |
get_entities () | |
AddedEntityGuid () | |
updateEntity () | |
deleteByOwnerGuid ($guid, $type) | |
deleteEntity ($guid='') | |
searchEntities (array $params=array()) | |
canChange ($user='') | |
destruct () | |
Public Member Functions inherited from OssnDatabase | |
__construct () | |
Connect () | |
insert ($params) | |
statement ($query) | |
execute ($values=array()) | |
update ($params=array()) | |
select ($params, $multi='') | |
fetch ($data=false) | |
delete ($params) | |
getLastEntry () | |
constructWheres (array $array, $operator="AND") | |
generateLimit ($data_limit=false, $page_limit=false, $offset=false) | |
clearVars () | |
__destruct () | |
Public Member Functions inherited from OssnBase | |
getGUID () | |
getID () | |
getParam ($param) | |
isParam ($param) | |
__call ($method, $args) | |
Additional Inherited Members | |
Static Public Member Functions inherited from OssnSession | |
static | start () |
static | assign ($name='', $value='') |
static | unassign ($name='') |
static | isSession ($name='') |
static | getSession ($name='') |
approveRequest | ( | $from, | |
$group | |||
) |
Approve member request
@params $from Member guid $group Group guid
changeOwner | ( | $owner, | |
$guid | |||
) |
Change owner of group
@params $owner Group new owner guid $guid Group guid
countRequests | ( | ) |
Count member requests
coverParameters | ( | $guid | ) |
Get cover position params
int | $guid | Group guid |
coverURL | ( | ) |
Get group latest cover url
createGroup | ( | $params | ) |
Create group
@params $params['name'] Name of group $params['description'] Group description $params['owner_guid']: Guid of owner creating group $params['privacy'] Group Privacy
deleteGroup | ( | $guid | ) |
Delete group
@params $guid Group guid
deleteMember | ( | $from, | |
$group | |||
) |
Delete member from group
@params $from Member guid $group Group guid
getGroup | ( | $guid | ) |
Get group by guid
@params $guid group guid
getGuid | ( | ) |
Get guid of newly created group
getMembers | ( | $count = false | ) |
Get group members
@params $object->guid Group guid
getMembersRequests | ( | ) |
Get group member requests
@params $object->guid Group guid
getMyGroups | ( | $user | ) |
Get user groups (owned groups and groups user member of)
object | $user | User entity |
getPhotoFile | ( | ) |
Get group cover photo file
getUserGroups | ( | $owner_guid, | |
$params = array() |
|||
) |
Get User groups
integer | $owner_guid | Guid of owner creating group |
array | $params | Extra options |
groupCovers | ( | ) |
Get group covers
haveCover | ( | ) |
Check if group have cover or not
initAttributes | ( | ) |
isMember | ( | $group, | |
$user | |||
) |
Cehck if the user is memeber of group or not
@params $user User guid $group Group guid
isModerator | ( | $user_guid | ) |
isModerator check if user is group moderator
repositionCOVER | ( | $guid, | |
$top, | |||
$left | |||
) |
Reposition group cover
$guid | Group guid $top Position from top $left Position from left |
requestExists | ( | $from, | |
$group | |||
) |
Check if member request exist or not
@params $from Member guid $group Group guid
ResetCoverPostition | ( | $guid | ) |
Reset cover position
$guid | Group guid |
searchGroups | ( | $q, | |
array | $args = array() |
||
) |
Search group in database
@params $q Group Metadata
sendRequest | ( | $from, | |
$group | |||
) |
Send group join request
@params $from Member guid $group Group guid
updateGroup | ( | $name, | |
$description, | |||
$guid | |||
) |
Upgrade group
@params $name Group name $description Group description $guid Group guid
UploadCover | ( | ) |
Upload group cover