Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions
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:
Generated on Fri Aug 7 2020 07:10:57
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.