Method | Description | |
---|---|---|
__construct ( string $rootUrl, |
Create a new Scanner instance. | |
getCheckCertificate ( ) : boolean | Get checkCertificate value | |
getCrawl ( ) : boolean | Get crawl value | |
getTimeout ( ) : integer | Get timeout value | |
getVerifyHost ( ) : integer | Get verifyHost value | |
queueUrl ( $url ) : boolean | Queues an URL onto the queue if not queued yet | |
queueUrls ( array $urls ) : void | Queue an array of URLs | |
scan ( ) : void | Scan entire website | |
setCheckCertificate ( $checkCertificate ) | Set checkCertificate value | |
setCrawl ( $crawl ) | Set crawl value | |
setIgnorePatterns ( $ignorePatterns, $toReplace = '{$rootUrl}' ) | ||
setTimeout ( $timeout ) | Set timeout value |
Method | Description | |
---|---|---|
absolutizeUrl ( string $linkedUrl, string $currentPageUrl ) : string | Make a given URL absolute | |
canonicalize ( $url ) : string | Remove . | |
getContents ( string &$pageUrl ) : string | Get the contents of a given URL (via GET) | |
scanPage ( string $pageUrl ) : string[] | Scan a single URL | |
setRootUrl ( string $rootUrl, boolean $limitToPath = true ) | Sets the root URL of the website to scan |
public __construct ( string $rootUrl, |
||
$rootUrl | string | The (root)URL to start scanning |
$logger | ||
$ignorePatterns | string[] |
public getCheckCertificate ( ) : boolean | ||
return | boolean |
public getVerifyHost ( ) : integer | ||
return | integer |
public setCheckCertificate ( $checkCertificate ) |
public setIgnorePatterns ( $ignorePatterns, $toReplace = '{$rootUrl}' ) |