ProjectsDemoDataMaker Class Reference

Inheritance diagram for ProjectsDemoDataMaker:
DemoDataMaker

Public Member Functions

 makeAll (&$demoDataHelper)
 populateModel (&$model)

Static Public Member Functions

static getDependencies ()

Static Protected Member Functions

static addDemoTasks ($project, $taskInputCount=1, &$demoDataHelper)
static getRandomTasks ()
static getTaskCheckListItems ($key)
static getTaskComments ($key)
static getTaskStatusOptions ()

Protected Attributes

 $loadMagnitude = 5

Detailed Description

Class that builds demo projects

Definition at line 40 of file ProjectsDemoDataMaker.php.


Member Function Documentation

static getDependencies (  )  [static]

Returns an array of module class names. These modules must have their demo data built first.

Reimplemented from DemoDataMaker.

Definition at line 48 of file ProjectsDemoDataMaker.php.

makeAll ( &$  demoDataHelper  ) 
Parameters:
DemoDataHelper $demoDataHelper

Reimplemented from DemoDataMaker.

Definition at line 56 of file ProjectsDemoDataMaker.php.

populateModel ( &$  model  ) 

Populate model with required data

Parameters:
RedBeanModel $model

Reimplemented from DemoDataMaker.

Definition at line 87 of file ProjectsDemoDataMaker.php.

static addDemoTasks ( project,
taskInputCount = 1,
&$  demoDataHelper 
) [static, protected]

Add demo tasks for the project

Parameters:
type $project

Definition at line 102 of file ProjectsDemoDataMaker.php.

static getRandomTasks (  )  [static, protected]

Gets the list of random task

Returns:
array

Definition at line 168 of file ProjectsDemoDataMaker.php.

static getTaskCheckListItems ( key  )  [static, protected]

Gets the list of task check items

Returns:
array

Definition at line 194 of file ProjectsDemoDataMaker.php.

static getTaskComments ( key  )  [static, protected]

Gets the list of task check items

Returns:
array

Definition at line 216 of file ProjectsDemoDataMaker.php.

static getTaskStatusOptions (  )  [static, protected]

Get random task status options

Returns:
array

Definition at line 238 of file ProjectsDemoDataMaker.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Nov 21 07:10:28 2017