PHP Class Certificationy\Certification\Loader

Author: Vincent Composieux ([email protected])
Datei anzeigen Open project: certificationy/certificationy Class Usage Examples

Public Properties

Property Type Description
$count integer

Public Methods

Method 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

Protected Methods

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

Method Details

count() public static method

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

getCategories() public static method

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

init() public static method

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

prepareFromYaml() protected static method

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
return array

Property Details

$count public_oe static_oe property

public static int $count
return integer