PHP Class RomaricDrigon\MetaYaml\MetaYaml

Mostra file Open project: romaricdrigon/metayaml Class Usage Examples

Public Methods

Method Description
__construct ( array $schema, $validate = false ) need to have a schema array
getDocumentationForNode ( array $keys = [], $unfold_all = false ) get the documentation
getSchema ( ) get the validated schema
validate ( array $data ) validate some data array
validateSchema ( ) can take up to a second

Private Methods

Method Description
findNode ( array $array, array $keys, $unfold_all )
unfoldPartials ( array $node, $unfold_all, $n )

Method Details

__construct() public method

need to have a schema array
public __construct ( array $schema, $validate = false )
$schema array

getDocumentationForNode() public method

get the documentation
public getDocumentationForNode ( array $keys = [], $unfold_all = false )
$keys array

getSchema() public method

get the validated schema
public getSchema ( )

validate() public method

validate some data array
public validate ( array $data )
$data array

validateSchema() public method

can take up to a second
public validateSchema ( )