Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

RandomDataUtil Class Reference

Inheritance diagram for RandomDataUtil:
ZurmoRandomDataUtil

Static Public Member Functions

static getRandomDataByModuleAndModelClassNames ($moduleClassName, $modelClassName)
static getRandomValueFromArray ($array)
static getRandomBooleanValue ()
static makeRandomPhoneNumber ()

Detailed Description

Helper class to organize random data arrays for different models.

Definition at line 40 of file RandomDataUtil.php.


Member Function Documentation

static getRandomDataByModuleAndModelClassNames ( moduleClassName,
modelClassName 
) [static]

Given a module class name and model class name, return the random data array if it exists. Will cache the random data array upon the first load.

Parameters:
string $moduleClassName
string $modelClassName

Definition at line 50 of file RandomDataUtil.php.

static getRandomValueFromArray ( array  )  [static]

Given an array, randomly returns a value.

Parameters:
array $array

Definition at line 72 of file RandomDataUtil.php.

static getRandomBooleanValue (  )  [static]

Returns true/false randomly.

Definition at line 81 of file RandomDataUtil.php.

static makeRandomPhoneNumber (  )  [static]

Returns a randomly generated phone number

Definition at line 94 of file RandomDataUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jan 22 07:10:27 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8