PHP Class Tdt\Core\Validators\CustomValidator

Author: Jan Vansteenlandt ([email protected])
Inheritance: extends Illuminate\Validation\Validator
Show file Open project: tdt/core

Public Methods

Method Description
validateCollectionuri ( $attribute, $value, $parameters ) Check if the collection uri doesn't contain preserved namespaces
validateFile ( $attribute, $value, $parameters ) Check if the given value is a proper file that can be opened with fopen().
validateInstalled ( $attribute, $value, $parameters ) Check if the given file is located in the installed folder and the
validateJson ( $attribute, $value, $parameters ) Check if the given file contains a JSON body.
validateMysqlquery ( $attribute, $value, $parameters ) Check if the MySQL query is legitimate
validateSparqlquery ( $attribute, $value, $parameters ) Check if the SPARQL query is legitimate
validateUri ( $attribute, $value, $parameters ) Check if the URI can be resolved externally or locally

Private Methods

Method Description
getHeadInfo ( $uri )
getRemoteData ( $url )

Method Details

validateCollectionuri() public method

Check if the collection uri doesn't contain preserved namespaces
public validateCollectionuri ( $attribute, $value, $parameters )

validateFile() public method

Check if the given value is a proper file that can be opened with fopen().
public validateFile ( $attribute, $value, $parameters )

validateInstalled() public method

Check if the given file is located in the installed folder and the
public validateInstalled ( $attribute, $value, $parameters )

validateJson() public method

Check if the given file contains a JSON body.
public validateJson ( $attribute, $value, $parameters )

validateMysqlquery() public method

Check if the MySQL query is legitimate
public validateMysqlquery ( $attribute, $value, $parameters )

validateSparqlquery() public method

Check if the SPARQL query is legitimate
public validateSparqlquery ( $attribute, $value, $parameters )

validateUri() public method

Check if the URI can be resolved externally or locally
public validateUri ( $attribute, $value, $parameters )