PHP Class Akeneo\Component\SpreadsheetParser\Xlsx\Relationships

Author: Antoine Guigan ([email protected])
Inheritance: extends AbstractXMLResource
Show file Open project: akeneo-labs/spreadsheet-parser Class Usage Examples

Protected Properties

Property Type Description
$relationshipsPath string
$sharedStringPath string
$stylePath string
$workSheetPaths array

Public Methods

Method Description
__construct ( string $path ) Constructor
getSharedStringsPath ( ) : string Returns the path of the shared strings file inside the xlsx file
getStylesPath ( ) : string Returns the path of the styles XML file inside the xlsx file
getWorksheetPath ( string $id ) : string Returns the path of a worksheet file inside the xlsx file

Private Methods

Method Description
storeRelationShipByType ( string $type, string $id, string $target ) stores the relationShip into the right variable

Method Details

__construct() public method

Constructor
public __construct ( string $path )
$path string the path to the XML relationships file

getSharedStringsPath() public method

Returns the path of the shared strings file inside the xlsx file
public getSharedStringsPath ( ) : string
return string

getStylesPath() public method

Returns the path of the styles XML file inside the xlsx file
public getStylesPath ( ) : string
return string

getWorksheetPath() public method

Returns the path of a worksheet file inside the xlsx file
public getWorksheetPath ( string $id ) : string
$id string
return string

Property Details

$relationshipsPath protected property

protected string $relationshipsPath
return string

$sharedStringPath protected property

protected string $sharedStringPath
return string

$stylePath protected property

protected string $stylePath
return string

$workSheetPaths protected property

protected array $workSheetPaths
return array