DemoDataHelper Class Reference

Public Member Functions

 getRangeByModelName ($modelName)
 setRangeByModelName ($modelName, $startId, $endId)
 getRandomByModelName ($modelName)
 isSetRange ($modelName)

Protected Attributes

 $demoData = array()

Detailed Description

Demo Data Helper Class

Definition at line 39 of file DemoDataHelper.php.


Member Function Documentation

getRangeByModelName ( modelName  ) 

Get id range for model

Parameters:
string $modelName
Returns:
array

Definition at line 48 of file DemoDataHelper.php.

setRangeByModelName ( modelName,
startId,
endId 
)

Set id range for model

Parameters:
string $modelName
int $startId
int $endId

Definition at line 62 of file DemoDataHelper.php.

getRandomByModelName ( modelName  ) 

Get random model (from list of model available ids)

Parameters:
string $modelName
Returns:
object $model

Definition at line 82 of file DemoDataHelper.php.

isSetRange ( modelName  ) 

Check if range is setup for module

Parameters:
string $modelName
Returns:
boolean $isSet

Definition at line 99 of file DemoDataHelper.php.


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