Akeneo\Component\SpreadsheetParser\Xlsx\StylesLoader::open PHP 메소드

open() 공개 메소드

Creates a Styles from the archive
public open ( string $path, Akeneo\Component\SpreadsheetParser\Xlsx\Archive $archive ) : Styles
$path string
$archive Akeneo\Component\SpreadsheetParser\Xlsx\Archive The Archive from which the path was extracted
리턴 Styles
    public function open($path, Archive $archive)
    {
        return new $this->class($path, $archive);
    }

Usage Example

예제 #1
0
 /**
  * @return Styles
  */
 protected function getStyles()
 {
     if (!$this->styles) {
         $path = $this->archive->extract($this->relationships->getStylesPath());
         $this->styles = $this->stylesLoader->open($path);
     }
     return $this->styles;
 }