Methods

__construct()

__construct($id) 

Parameters

$id

add user or group as member of this group

addMember(\Knowledgeroot_User | \Knowledgeroot_Group $member) 

delete user or group as member of this group

delMember(\Knowledgeroot_User | \Knowledgeroot_Group $member) 

delete()

delete($id, $markOnly) 

Parameters

$id

$markOnly

delete members from an existing group

deleteGroupMembers(\Knowledgeroot_Group $group) 

Parameters

remove member from all groups

deleteMemberFromGroups(object $member) 
Static

Parameters

$member

object

getActive()

getActive() 

getChangeDate()

getChangeDate() 

getChangedBy()

getChangedBy() 

getCreateDate()

getCreateDate() 

getDescription()

getDescription() 

get all groups as Knowledgeroot_Group object

getGroups() 
Static

return $array

getId()

getId() 

get group members

getMembers() : \$array

Returns

\$array

getName()

getName() 

getTimeEnd()

getTimeEnd() 

getTimeStart()

getTimeStart() 

isActive()

isActive() 

load()

load($id) 

Parameters

$id

save()

save() 

setActive()

setActive($active) 

Parameters

$active

setChangedBy()

setChangedBy($userid) 

Parameters

$userid

setDescription()

setDescription($description) 

Parameters

$description

set members for group as array

setMembers(array $members) 

Parameters

$members

array

setName()

setName($name) 

Parameters

$name

setTimeEnd()

setTimeEnd($time) 

Parameters

$time

setTimeStart()

setTimeStart($time) 

Parameters

$time

 Properties

 

$active 
 

$change_date 
 

$changed_by 
 

$create_date 
 

$created_by 
 

$deleted 
 

$description 
 

$id 
 

$name 
 

$time_end 
 

$time_start