ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_Writer_Excel2007_RelsVBA Class Reference
+ Inheritance diagram for PHPExcel_Writer_Excel2007_RelsVBA:
+ Collaboration diagram for PHPExcel_Writer_Excel2007_RelsVBA:

Public Member Functions

 writeVBARelationships (PHPExcel $pPHPExcel=null)
 Write relationships for a signed VBA Project. More...
 
- Public Member Functions inherited from PHPExcel_Writer_Excel2007_WriterPart
 setParentWriter (PHPExcel_Writer_IWriter $pWriter=null)
 Set parent IWriter object. More...
 
 getParentWriter ()
 Get parent IWriter object. More...
 
 __construct (PHPExcel_Writer_IWriter $pWriter=null)
 Set parent IWriter object. More...
 

Detailed Description

Definition at line 36 of file RelsVBA.php.

Member Function Documentation

◆ writeVBARelationships()

PHPExcel_Writer_Excel2007_RelsVBA::writeVBARelationships ( PHPExcel  $pPHPExcel = null)

Write relationships for a signed VBA Project.

Parameters
PHPExcel$pPHPExcel
Returns
string XML Output
Exceptions
PHPExcel_Writer_Exception

Definition at line 45 of file RelsVBA.php.

References $objWriter, PHPExcel_Writer_Excel2007_WriterPart\getParentWriter(), PHPExcel_Shared_XMLWriter\STORAGE_DISK, and PHPExcel_Shared_XMLWriter\STORAGE_MEMORY.

45  {
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  }
getParentWriter()
Get parent IWriter object.
Definition: WriterPart.php:61
$objWriter
const STORAGE_MEMORY
Temporary storage method.
Definition: XMLWriter.php:46
+ Here is the call graph for this function:

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