Elgg  Version 6.1
Functions | Variables
Elgg\Traits\Seeding Namespace Reference

Functions

 getRandomGroupVisibility ()
 Returns random visibility value. More...
 
 getRandomGroupContentAccessMode ()
 Returns random content access mode value. More...
 
 getRandomGroupMembership ()
 Returns random membership mode. More...
 
 setCreateSince ($since= 'now')
 Set a time for entities to be created after. More...
 
 setCreateUntil ($until= 'now')
 Set a time for entities to be created until. More...
 
 getRandomCreationTimestamp ()
 Get a random timestamp between a lower and upper time. More...
 

Variables

trait GroupHelpers
 Group helpers for seeding. More...
 
trait TimeHelpers
 Trait to add time helpers. More...
 
 $create_until
 

Function Documentation

Elgg\Traits\Seeding\getRandomCreationTimestamp ( )

Get a random timestamp between a lower and upper time.

Returns
int

Definition at line 54 of file TimeHelpers.php.

Elgg\Traits\Seeding\getRandomGroupContentAccessMode ( )

Returns random content access mode value.

Returns
string

Definition at line 43 of file GroupHelpers.php.

Elgg\Traits\Seeding\getRandomGroupMembership ( )

Returns random membership mode.

Returns
mixed

Definition at line 53 of file GroupHelpers.php.

Elgg\Traits\Seeding\getRandomGroupVisibility ( )

Returns random visibility value.

Returns
int

Definition at line 33 of file GroupHelpers.php.

Elgg\Traits\Seeding\setCreateSince (   $since = 'now')

Set a time for entities to be created after.

Parameters
mixed$sinceTime value for first creation date
Returns
void
See also
::normalizeTimestamp()

Definition at line 33 of file TimeHelpers.php.

Elgg\Traits\Seeding\setCreateUntil (   $until = 'now')

Set a time for entities to be created until.

Parameters
mixed$untilTime value for last creation date
Returns
void
See also
::normalizeTimestamp()

Definition at line 45 of file TimeHelpers.php.

Variable Documentation

Elgg::Traits::Seeding\$create_until
protected

Definition at line 23 of file TimeHelpers.php.

trait Elgg::Traits::Seeding\GroupHelpers
Initial value:
{
private $visibility = [
]
const ACCESS_PRIVATE
Definition: constants.php:10
const ACCESS_LOGGED_IN
Definition: constants.php:11
const ACCESS_PUBLIC
Definition: constants.php:12

Group helpers for seeding.

Since
4.0

Definition at line 11 of file GroupHelpers.php.

trait Elgg::Traits::Seeding\TimeHelpers
Initial value:
{
protected $create_since

Trait to add time helpers.

Since
4.0

Definition at line 13 of file TimeHelpers.php.