PHP 클래스 GrumPHP\Linter\Xml\XmlLinter

상속: implements GrumPHP\Linter\LinterInterface
파일 보기 프로젝트 열기: phpro/grumphp 1 사용 예제들

공개 메소드들

메소드 설명
isInstalled ( ) : boolean
lint ( SplFileInfo $file ) : LintErrorsCollection
setDtdValidation ( boolean $dtdValidation )
setLoadFromNet ( boolean $loadFromNet )
setSchemeValidation ( boolean $schemeValidation )
setXInclude ( boolean $xInclude )

비공개 메소드들

메소드 설명
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

메소드 상세

isInstalled() 공개 메소드

public isInstalled ( ) : boolean
리턴 boolean

lint() 공개 메소드

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

setDtdValidation() 공개 메소드

public setDtdValidation ( boolean $dtdValidation )
$dtdValidation boolean

setLoadFromNet() 공개 메소드

public setLoadFromNet ( boolean $loadFromNet )
$loadFromNet boolean

setSchemeValidation() 공개 메소드

public setSchemeValidation ( boolean $schemeValidation )
$schemeValidation boolean

setXInclude() 공개 메소드

public setXInclude ( boolean $xInclude )
$xInclude boolean