ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
RelsVBA.php
Go to the documentation of this file.
1 <?php
37 {
45  public function writeVBARelationships(PHPExcel $pPHPExcel = null){
46  // Create XML writer
47  $objWriter = null;
48  if ($this->getParentWriter()->getUseDiskCaching()) {
50  } else {
52  }
53 
54  // XML header
55  $objWriter->startDocument('1.0','UTF-8','yes');
56 
57  // Relationships
58  $objWriter->startElement('Relationships');
59  $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
60  $objWriter->startElement('Relationship');
61  $objWriter->writeAttribute('Id', 'rId1');
62  $objWriter->writeAttribute('Type', 'http://schemas.microsoft.com/office/2006/relationships/vbaProjectSignature');
63  $objWriter->writeAttribute('Target', 'vbaProjectSignature.bin');
64  $objWriter->endElement();//Relationship
65  $objWriter->endElement();//Relationships
66 
67  // Return
68  return $objWriter->getData();
69 
70  }
71 
72 }
getParentWriter()
Get parent IWriter object.
Definition: WriterPart.php:61
$objWriter
writeVBARelationships(PHPExcel $pPHPExcel=null)
Write relationships for a signed VBA Project.
Definition: RelsVBA.php:45
const STORAGE_MEMORY
Temporary storage method.
Definition: XMLWriter.php:46