PHP Класс Certificationy\Certification\Loader

Автор: Vincent Composieux ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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