PHP Class GrumPHP\Linter\Xml\XmlLinter

Inheritance: implements GrumPHP\Linter\LinterInterface
Mostrar archivo Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
isInstalled ( ) : boolean
lint ( SplFileInfo $file ) : LintErrorsCollection
setDtdValidation ( boolean $dtdValidation )
setLoadFromNet ( boolean $loadFromNet )
setSchemeValidation ( boolean $schemeValidation )
setXInclude ( boolean $xInclude )

Private Methods

Method Description
collectXmlErrors ( LintErrorsCollection $errors ) : array
flushXmlErrors ( ) Make sure the libxml errors are flushed and won't be occurring again.
loadDocument ( SplFileInfo $file ) : DOMDocumen\DOMDocument | null
locateScheme ( SplFileInfo $xmlFile, string $scheme ) : null | string
registerXmlStreamContext ( ) This is added to fix a bug with remote DTDs that are blocking automated php request on some domains:
useInternalXmlLoggin ( boolean $useInternalErrors = false ) : boolean
validateDTD ( DOMDocument $document ) : boolean
validateInternalSchemes ( SplFileInfo $file, DOMDocument $document ) : boolean

Method Details

isInstalled() public method

public isInstalled ( ) : boolean
return boolean

lint() public method

public lint ( SplFileInfo $file ) : LintErrorsCollection
$file SplFileInfo
return GrumPHP\Collection\LintErrorsCollection

setDtdValidation() public method

public setDtdValidation ( boolean $dtdValidation )
$dtdValidation boolean

setLoadFromNet() public method

public setLoadFromNet ( boolean $loadFromNet )
$loadFromNet boolean

setSchemeValidation() public method

public setSchemeValidation ( boolean $schemeValidation )
$schemeValidation boolean

setXInclude() public method

public setXInclude ( boolean $xInclude )
$xInclude boolean