StructureRule
in package
implements
Rule
FinalYes
Level 2: every standard tag is allowed where it stands, and substructures occur as often as the profile says (KV2001–KV2003); 7.0 structures the specification deprecates are warnings (KV2005, values in {@see Payloads7}). 5.x citations and media links are checked by their form (Structure::form()), 7.0 substructures of which one is allowed by Profile::choices(). Extension tags ("_X") and everything under them are not checked; HEAD first and TRLR last are syntax checks (KV1004–KV1006).
Table of Contents
Interfaces
Methods
- begin() : void
- end() : array<int, Diagnostic>
- record() : void
- One record: its document (the whole one, or the record's own) and node, and its key in $records.
Methods
begin()
public
begin(Records $records, Profile $profile) : void
Parameters
end()
public
end() : array<int, Diagnostic>
Return values
array<int, Diagnostic> —in the order found
record()
One record: its document (the whole one, or the record's own) and node, and its key in $records.
public
record(Document $document, int $id, int $key) : void
Parameters
- $document : Document
- $id : int
- $key : int