Documentation

XsdSchemaParser
in package

The XsdSchemaParser class provides functionality to process and parse XSD (XML Schema Definition) files, extracting relevant taxonomy elements and storing them in a database.

Table of Contents

Properties

$mySql  : MySql

Methods

__construct()  : void
Constructor method.
parse()  : void
Parses an XSD file to extract taxonomy elements and stores them in the database.

Properties

Methods

__construct()

Constructor method.

public __construct(MySql $mySql) : void
Parameters
$mySql : MySql

Instance of the MySql class.

parse()

Parses an XSD file to extract taxonomy elements and stores them in the database.

public parse(int $taxonomyVersionId, string $file) : void
Parameters
$taxonomyVersionId : int

The ID of the taxonomy version to associate elements with.

$file : string

The path to the XSD file to be parsed.

Tags
throws
RuntimeException

If the XSD file cannot be loaded or is missing essential attributes.


        
On this page

Search results