ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPDFGenerationDefinitionProcessor Class Reference
+ Inheritance diagram for ilPDFGenerationDefinitionProcessor:
+ Collaboration diagram for ilPDFGenerationDefinitionProcessor:

Public Member Functions

 __construct (ilDBInterface $db)
 
 purge ()
 This methods is supposed to purge existing data in the provider of the component, so new components can be added to a clean slate. More...
 
 beginComponent (string $component, string $type)
 This method is called when parsing of component.xml for the given component starts. More...
 
 endComponent (string $component, string $type)
 This method is called when parsing of component.xml for the given component ends. More...
 
 beginTag (string $name, array $attributes)
 This is called when a tag starts in the context of the given component. More...
 
 endTag (string $name)
 This is called when a tag ends in the context of the given component. More...
 

Protected Attributes

ilDBInterface $db
 
string $component = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilPDFGenerationDefinitionProcessor::__construct ( ilDBInterface  $db)

Definition at line 29 of file class.ilPDFGenerationDefinitionProcessor.php.

References $db.

30  {
31  $this->db = $db;
32  }

Member Function Documentation

◆ beginComponent()

ilPDFGenerationDefinitionProcessor::beginComponent ( string  $component,
string  $type 
)

This method is called when parsing of component.xml for the given component starts.

This is supposed to reset any internal parsing state.

Implements ilComponentDefinitionProcessor.

Definition at line 38 of file class.ilPDFGenerationDefinitionProcessor.php.

References $component.

38  : void
39  {
40  $this->component = $type . "/" . $component;
41  }
$type

◆ beginTag()

ilPDFGenerationDefinitionProcessor::beginTag ( string  $name,
array  $attributes 
)

This is called when a tag starts in the context of the given component.

Parameters
string[]$attributes

Implements ilComponentDefinitionProcessor.

Definition at line 48 of file class.ilPDFGenerationDefinitionProcessor.php.

References ilPDFCompInstaller\updateFromXML().

48  : void
49  {
50  if ($name !== "pdfpurpose") {
51  return;
52  }
53 
54  ilPDFCompInstaller::updateFromXML($this->component, $attributes['name'], $attributes['preferred']);
55  }
$attributes
Definition: metadata.php:248
static updateFromXML(string $service, string $purpose, string $preferred)
if($format !==null) $name
Definition: metadata.php:247
+ Here is the call graph for this function:

◆ endComponent()

ilPDFGenerationDefinitionProcessor::endComponent ( string  $component,
string  $type 
)

This method is called when parsing of component.xml for the given component ends.

Implements ilComponentDefinitionProcessor.

Definition at line 43 of file class.ilPDFGenerationDefinitionProcessor.php.

43  : void
44  {
45  $this->component = null;
46  }

◆ endTag()

ilPDFGenerationDefinitionProcessor::endTag ( string  $name)

This is called when a tag ends in the context of the given component.

Implements ilComponentDefinitionProcessor.

Definition at line 57 of file class.ilPDFGenerationDefinitionProcessor.php.

57  : void
58  {
59  }

◆ purge()

ilPDFGenerationDefinitionProcessor::purge ( )

This methods is supposed to purge existing data in the provider of the component, so new components can be added to a clean slate.

Implements ilComponentDefinitionProcessor.

Definition at line 34 of file class.ilPDFGenerationDefinitionProcessor.php.

34  : void
35  {
36  }

Field Documentation

◆ $component

string ilPDFGenerationDefinitionProcessor::$component = null
protected

Definition at line 27 of file class.ilPDFGenerationDefinitionProcessor.php.

Referenced by beginComponent().

◆ $db

ilDBInterface ilPDFGenerationDefinitionProcessor::$db
protected

Definition at line 26 of file class.ilPDFGenerationDefinitionProcessor.php.

Referenced by __construct().


The documentation for this class was generated from the following file: