Documentation

PresentationLinkbaseParser
in package

Class responsible for parsing XBRL presentation linkbases, processing XML files, and updating the database with taxonomy presentation information.

Table of Contents

Properties

$mySql  : MySql
$namespaceRegistry  : NamespaceRegistry

Methods

__construct()  : void
Constructor method to initialize the MySql and NamespaceRegistry dependencies.
parse()  : void
Parses an XML file, processes its content, and updates the database with taxonomy presentation information.
logSkippedArc()  : void
Logs information about a skipped arc during XBRL import.

Properties

Methods

__construct()

Constructor method to initialize the MySql and NamespaceRegistry dependencies.

public __construct(MySql $mySql, NamespaceRegistry $namespaceRegistry) : void
Parameters
$mySql : MySql

Instance of the MySql class for database interactions.

$namespaceRegistry : NamespaceRegistry

Instance of the NamespaceRegistry class for managing namespaces.

parse()

Parses an XML file, processes its content, and updates the database with taxonomy presentation information.

public parse(string $file, LocatorResolver $resolver) : void
Parameters
$file : string

Path to the XML file to be parsed.

$resolver : LocatorResolver

Instance of LocatorResolver to resolve locators and handle the file context.

Tags
throws
RuntimeException

If the file does not exist or the XML cannot be loaded.

logSkippedArc()

Logs information about a skipped arc during XBRL import.

private logSkippedArc(string $file, string $reason, string $from, string $to) : void
Parameters
$file : string

The name of the file being processed.

$reason : string

The reason the arc was skipped.

$from : string

The source of the arc.

$to : string

The destination of the arc.


        
On this page

Search results