PHP Class PopulateHelpers, cakephp-db-migrations

Afficher le fichier Open project: joelmoss/cakephp-db-migrations

Méthodes publiques

Méthode Description
currency ( $min = 1, $max = 9 )
firstName ( )
lastMonth ( )
lorem ( )
name ( )
now ( )
number ( $min = 1, $max = 50 )
paragraph ( string $sentence_count = 3 ) : string Generate a single paragraph
paragraphs ( string $paragraph_count = 3 ) : array Generate an array of paragraphs
prefix ( )
randomDate ( )
sentence ( string $word_count = 4 ) : string Generate a random sentence
sentences ( string $sentence_count = 3 ) : array Generate an array of sentences
string ( $length = 4 )
suffix ( )
surname ( )
uuid ( )
word ( )
words ( string $num = 3 ) : array Generate an array of random words

Method Details

currency() public méthode

public currency ( $min = 1, $max = 9 )

firstName() public méthode

public firstName ( )

lastMonth() public méthode

public lastMonth ( )

lorem() public méthode

public lorem ( )

name() public méthode

public name ( )

now() public méthode

public now ( )

number() public méthode

public number ( $min = 1, $max = 50 )

paragraph() public méthode

Generate a single paragraph
Author: Caius Durling
public paragraph ( string $sentence_count = 3 ) : string
$sentence_count string around how many sentences the paragraph should contain
Résultat string

paragraphs() public méthode

Generate an array of paragraphs
Author: Caius Durling
public paragraphs ( string $paragraph_count = 3 ) : array
$paragraph_count string how many paragraphs to return
Résultat array

prefix() public méthode

public prefix ( )

randomDate() public méthode

public randomDate ( )

sentence() public méthode

Generate a random sentence
Author: Caius Durling
public sentence ( string $word_count = 4 ) : string
$word_count string around how many words the sentence should contain
Résultat string

sentences() public méthode

Generate an array of sentences
Author: Caius Durling
public sentences ( string $sentence_count = 3 ) : array
$sentence_count string around how many sentences to generate
Résultat array

string() public méthode

public string ( $length = 4 )

suffix() public méthode

public suffix ( )

surname() public méthode

public surname ( )

uuid() public méthode

public uuid ( )

word() public méthode

public word ( )

words() public méthode

Generate an array of random words
Author: Caius Durling
public words ( string $num = 3 ) : array
$num string how many words to return
Résultat array