PHP 클래스 PopulateHelpers, cakephp-db-migrations

파일 보기 프로젝트 열기: joelmoss/cakephp-db-migrations

공개 메소드들

메소드 설명
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

메소드 상세

currency() 공개 메소드

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

firstName() 공개 메소드

public firstName ( )

lastMonth() 공개 메소드

public lastMonth ( )

lorem() 공개 메소드

public lorem ( )

name() 공개 메소드

public name ( )

now() 공개 메소드

public now ( )

number() 공개 메소드

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

paragraph() 공개 메소드

Generate a single paragraph
저자: Caius Durling
public paragraph ( string $sentence_count = 3 ) : string
$sentence_count string around how many sentences the paragraph should contain
리턴 string

paragraphs() 공개 메소드

Generate an array of paragraphs
저자: Caius Durling
public paragraphs ( string $paragraph_count = 3 ) : array
$paragraph_count string how many paragraphs to return
리턴 array

prefix() 공개 메소드

public prefix ( )

randomDate() 공개 메소드

public randomDate ( )

sentence() 공개 메소드

Generate a random sentence
저자: Caius Durling
public sentence ( string $word_count = 4 ) : string
$word_count string around how many words the sentence should contain
리턴 string

sentences() 공개 메소드

Generate an array of sentences
저자: Caius Durling
public sentences ( string $sentence_count = 3 ) : array
$sentence_count string around how many sentences to generate
리턴 array

string() 공개 메소드

public string ( $length = 4 )

suffix() 공개 메소드

public suffix ( )

surname() 공개 메소드

public surname ( )

uuid() 공개 메소드

public uuid ( )

word() 공개 메소드

public word ( )

words() 공개 메소드

Generate an array of random words
저자: Caius Durling
public words ( string $num = 3 ) : array
$num string how many words to return
리턴 array