1 | <?php |
||
12 | class Relationships extends AbstractXMLResource |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $relationshipsPath; |
||
20 | |||
21 | /** |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $workSheetPaths; |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $stylePath; |
||
32 | |||
33 | /** |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $sharedStringPath; |
||
38 | |||
39 | /** |
||
40 | * Constructor |
||
41 | * |
||
42 | * @param string $path the path to the XML relationships file |
||
43 | */ |
||
44 | public function __construct($path) |
||
59 | |||
60 | /** |
||
61 | * Returns the path of a worksheet file inside the xlsx file |
||
62 | * |
||
63 | * @param string $id |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getWorksheetPath($id) |
||
71 | |||
72 | /** |
||
73 | * Returns the path of the shared strings file inside the xlsx file |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getSharedStringsPath() |
||
81 | |||
82 | /** |
||
83 | * Returns the path of the styles XML file inside the xlsx file |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getStylesPath() |
||
91 | |||
92 | /** |
||
93 | * stores the relationShip into the right variable |
||
94 | * |
||
95 | * @param string $type |
||
96 | * @param string $id |
||
97 | * @param string $target |
||
98 | */ |
||
99 | private function storeRelationShipByType($type, $id, $target) |
||
113 | |||
114 | } |
||
115 |