PHP 클래스 Certificationy\Certification\Loader

저자: Vincent Composieux ([email protected])
파일 보기 프로젝트 열기: certificationy/certificationy 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$count integer

공개 메소드들

메소드 설명
count ( ) : integer Counts total of available questions
getCategories ( $path ) : array Get list of all categories
init ( integer $number, array $categories, $path ) : Certificationy\Certification\Set Returns a new set of randomized questions

보호된 메소드들

메소드 설명
prepareFromYaml ( array $categories = [], $path ) : array Prepares data from Yaml files and returns an array of questions

메소드 상세

count() 공개 정적인 메소드

Counts total of available questions
public static count ( ) : integer
리턴 integer

getCategories() 공개 정적인 메소드

Get list of all categories
public static getCategories ( $path ) : array
리턴 array

init() 공개 정적인 메소드

Returns a new set of randomized questions
public static init ( integer $number, array $categories, $path ) : Certificationy\Certification\Set
$number integer
$categories array
리턴 Certificationy\Certification\Set

prepareFromYaml() 보호된 정적인 메소드

Prepares data from Yaml files and returns an array of questions
protected static prepareFromYaml ( array $categories = [], $path ) : array
$categories array : List of categories which should be included, empty array = all
리턴 array

프로퍼티 상세

$count 공개적으로 정적으로 프로퍼티

public static int $count
리턴 integer