13 private $visibility = [
19 private $content_access_modes = [
24 private $membership = [
34 $key = array_rand($this->visibility, 1);
36 return $this->visibility[
$key];
44 $key = array_rand($this->content_access_modes, 1);
46 return $this->content_access_modes[
$key];
54 $key = array_rand($this->membership, 1);
56 return $this->membership[
$key];
getRandomGroupVisibility()
Returns random visibility value.
getRandomGroupContentAccessMode()
Returns random content access mode value.
trait GroupHelpers
Group helpers for seeding.
const CONTENT_ACCESS_MODE_UNRESTRICTED
const CONTENT_ACCESS_MODE_MEMBERS_ONLY
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
getRandomGroupMembership()
Returns random membership mode.