\CheckExternalLinksTask
Synopsis
class CheckExternalLinksTask
extends BuildTask
{
- // members
- private static array $dependencies = ;
- protected bool $silent = false;
- protected LinkChecker $linkChecker;
- protected string $title = 'Checking broken External links in the SiteTree';
- protected string $description = 'A task that records external broken links in the SiteTree';
- protected boolean $enabled = true;
- // methods
- protected void log()
- public void run()
- public void setSilent()
- public void setLinkChecker()
- public LinkChecker getLinkChecker()
- protected void checkPageLink()
- protected bool isCodeBroken()
- public BrokenExternalPageTrackStatus runLinksCheck()
- private void updateCompletedPages()
- private void updateJobInfo()
Hierarchy
Extends
- BuildTask
Members
private
- $dependencies
protected
- $description
- $enabled
- $linkChecker — LinkChecker
- $silent — bool
- $title
Methods
private
protected
- checkPageLink() — Check the status of a single link on a page
- isCodeBroken() — Determine if the given HTTP code is "broken"
- log() — Log a message
public
- getLinkChecker()
- run()
- runLinksCheck() — Runs the links checker and returns the track used
- setLinkChecker()
- setSilent() — Turn on or off message output