open() public method

Creates a SharedStrings from the archive
public open ( string $path, Akeneo\Component\SpreadsheetParser\Xlsx\Archive $archive ) : SharedStrings
$path string
$archive Akeneo\Component\SpreadsheetParser\Xlsx\Archive The Archive from which the path was extracted
return SharedStrings
Ejemplo n.º 1
0
 /**
  * @return SharedStrings
  */
 protected function getSharedStrings()
 {
     if (!$this->sharedStrings) {
         $path = $this->archive->extract($this->relationships->getSharedStringsPath());
         $this->sharedStrings = $this->sharedStringsLoader->open($path);
     }
     return $this->sharedStrings;
 }