Elgg  Version 3.0
Seed.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Database\Seeds;
4 
6 
13 abstract class Seed implements Seedable {
14 
15  use Seeding;
16  use Progressing;
17 
23  public function __construct($limit = null) {
24  if (isset($limit)) {
25  $this->limit = $limit;
26  }
27  }
28 
34  abstract public function seed();
35 
41  abstract public function unseed();
42 
43 }
__construct($limit=null)
Seed constructor.
Definition: Seed.php:23
trait Seeding
Seeding trait Can be used to easily create new random users, groups and objects in the database...
Definition: Seeding.php:24
$limit
Definition: userpicker.php:52
Provides seedable methods for database seeding and unit tests.
Definition: Seedable.php:8
seed()
Populate database.
Abstract seed.
Definition: Seed.php:13
unseed()
Removed seeded rows from database.
trait Progressing
Progress reporting.
Definition: Progressing.php:10