PHP 트레잇 HelperTrait

파일 보기 프로젝트 열기: phalcon/forum

공개 메소드들

메소드 설명
amAdmin ( array $attributes = null ) : integer Creates an admin user and return it id
amRegularUser ( array $attributes = null ) : integer Creates a random user and return it id
haveCategory ( array $attributes = null ) : integer Creates a random category and return its id
havePost ( array $attributes = null ) : integer Creates a random post and return its id
havePostHistory ( array $attributes = null ) : integer Creates a random post history and return its id
haveReply ( array $attributes = null ) : integer Creates a random post reply and return its id

메소드 상세

amAdmin() 공개 메소드

Creates an admin user and return it id
public amAdmin ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
리턴 integer

amRegularUser() 공개 메소드

Creates a random user and return it id
public amRegularUser ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
리턴 integer

haveCategory() 공개 메소드

Creates a random category and return its id
public haveCategory ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
리턴 integer

havePost() 공개 메소드

Creates a random post and return its id
public havePost ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
리턴 integer

havePostHistory() 공개 메소드

Creates a random post history and return its id
public havePostHistory ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
리턴 integer

haveReply() 공개 메소드

Creates a random post reply and return its id
public haveReply ( array $attributes = null ) : integer
$attributes array Model attributes [Optional]
리턴 integer