XbrlTaxonomyImporter
in package
The XbrlTaxonomyImporter class is responsible for importing XBRL taxonomy data and processing associated linkbase files, including presentation, definition, and label types.
Table of Contents
Properties
- $basePath : mixed
- $definitionLinkbaseParser : DefinitionLinkbaseParser
- $labelLinkbaseParser : LabelLinkbaseParser
- $locatorResolver : LocatorResolver
- $mySql : MySql
- $presentationLinkbaseParser : PresentationLinkbaseParser
- $schemaParser : SchemaParser
Methods
- __construct() : void
- Constructor method for initializing dependencies.
- import() : void
- Imports taxonomy data and processes linkbase files.
Properties
$basePath
private
mixed
$basePath
$definitionLinkbaseParser
private
DefinitionLinkbaseParser
$definitionLinkbaseParser
$labelLinkbaseParser
private
LabelLinkbaseParser
$labelLinkbaseParser
$locatorResolver
private
LocatorResolver
$locatorResolver
$mySql
private
MySql
$mySql
$presentationLinkbaseParser
private
PresentationLinkbaseParser
$presentationLinkbaseParser
$schemaParser
private
SchemaParser
$schemaParser
Methods
__construct()
Constructor method for initializing dependencies.
public
__construct(MySql $mySql, SchemaParser $schemaParser, LocatorResolver $locatorResolver, PresentationLinkbaseParser $presentationLinkbaseParser, DefinitionLinkbaseParser $definitionLinkbaseParser, LabelLinkbaseParser $labelLinkbaseParser) : void
Parameters
- $mySql : MySql
-
Database connection handler.
- $schemaParser : SchemaParser
-
Parser for schema definitions.
- $locatorResolver : LocatorResolver
-
Resolves locator references.
- $presentationLinkbaseParser : PresentationLinkbaseParser
-
Parses presentation linkbase files.
- $definitionLinkbaseParser : DefinitionLinkbaseParser
-
Parses definition linkbase files.
- $labelLinkbaseParser : LabelLinkbaseParser
-
Parses label linkbase files.
import()
Imports taxonomy data and processes linkbase files.
public
import(int $taxonomyVersionId, string $entryFile) : void
Parameters
- $taxonomyVersionId : int
-
The ID of the taxonomy version to be imported.
- $entryFile : string
-
The path to the taxonomy's entry file.