Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
OpenSpout\Reader\XLSX\Manager\StyleManagerInterface Interface Reference
Inheritance diagram for OpenSpout\Reader\XLSX\Manager\StyleManagerInterface:
OpenSpout\Reader\XLSX\Manager\StyleManager

Public Member Functions

 getNumberFormatCode (int $styleId)
 Returns the format as defined in "styles.xml" of the given style.
 
 shouldFormatNumericValueAsDate (int $styleId)
 Returns whether the style with the given ID should consider numeric values as timestamps and format the cell as a date.
 

Member Function Documentation

◆ getNumberFormatCode()

OpenSpout\Reader\XLSX\Manager\StyleManagerInterface::getNumberFormatCode ( int $styleId)

Returns the format as defined in "styles.xml" of the given style.

NOTE: It is assumed that the style DOES have a number format associated to it.

Parameters
int$styleIdZero-based style ID
Return values
stringThe number format code associated with the given style

Implemented in OpenSpout\Reader\XLSX\Manager\StyleManager.

◆ shouldFormatNumericValueAsDate()

OpenSpout\Reader\XLSX\Manager\StyleManagerInterface::shouldFormatNumericValueAsDate ( int $styleId)

Returns whether the style with the given ID should consider numeric values as timestamps and format the cell as a date.

Parameters
int$styleIdZero-based style ID
Return values
boolWhether the cell with the given cell should display a date instead of a numeric value

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