PHP Class Certificationy\Certification\Loader

Author: Vincent Composieux ([email protected])
Afficher le fichier Open project: certificationy/certificationy Class Usage Examples

Méthodes publiques

Свойство Type Description
$count integer

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
prepareFromYaml ( array $categories = [], $path ) : array Prepares data from Yaml files and returns an array of questions

Method Details

count() public static méthode

Counts total of available questions
public static count ( ) : integer
Résultat integer

getCategories() public static méthode

Get list of all categories
public static getCategories ( $path ) : array
Résultat array

init() public static méthode

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

prepareFromYaml() protected static méthode

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
Résultat array

Property Details

$count public_oe static_oe property

public static int $count
Résultat integer