Sunnysideup\TemplateOverview\Tasks\CheckAllTemplates

Synopsis

class CheckAllTemplates extends BuildTask {
  • // members
  • protected string $title = 'Check URLs for HTTP errors';
  • protected string $description = 'Will go through main URLs (all page types (e.g Page, MyPageTemplate), all page types in CMS (e.g. edit Page, edit HomePage, new MyPage) and all models being edited in ModelAdmin, checking for HTTP response errors (e.g. 404). Click start to run.';
  • private static string $segment = 'smoketest';
}

Hierarchy

Extends

  • SilverStripe\Dev\BuildTask

Members

private

  • $segment

protected

  • $description
  • $title

Methods

protected

public

  • run() — Main function has two streams: 1. check on url specified in GET variable.