MarkupQA class

Located in file /wire/core/MarkupQA.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the MarkupQA class also inherits all the methods and properties of: Wire.

Show class?             Show args?        

Common

NameReturnSummary 
MarkupQA::checkImgTags(string $value)
(nothing)Quality assurance for <img> tags 
MarkupQA::debug()
boolGet or set debug status 
MarkupQA::error(string $text)
$thisRecord error message to image-errors log 
MarkupQA::findLinks()
PageArray array intFind pages linking to another 
MarkupQA::ignorePaths()
arrayGet or set paths to ignore for link abstraction 
MarkupQA::setField(Field $field)
(nothing)Set the current Field 
MarkupQA::setPage(Page $page)
(nothing)Set the current Page 
MarkupQA::sleepLinks(string $value)
(nothing)Sleep href attributes, adding a data-pwid attribute to <a> tags that resolve to a Page 
MarkupQA::sleepUrls($value)
(nothing)Sleep URLs in href or src attributes for storage 
MarkupQA::verbose()
boolGet or set verbose state 
MarkupQA::wakeupLinks($value)
arrayWakeup href attributes, using the data-pwid attribute to update the href attribute as necessary 
MarkupQA::wakeupUrls($value)
(nothing)Wakeup URLs in href or src attributes for presentation 

Additional methods and properties

In addition to the methods and properties above, MarkupQA also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #550
    In the 550th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a new third party module called PagefileMetadata, and more. Read on!
    Weekly.pw / 23 November 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“I am currently managing a ProcessWire site with 2 million+ pages. It’s admirably fast, and much, much faster than any other CMS we tested.” —Nickie, Web developer