-
Notifications
You must be signed in to change notification settings - Fork 34
classes_lib_controls_table_cellformat.class
Daniel Spors edited this page Dec 19, 2023
·
2 revisions
Handles cell formatting in a Table. Never instanciate this class yourself, this will be done by Table::SetFormat or Table::SetColFormat. Valid formats are:
- duration
- fixed, pre, preformatted
- date
- time
- datetime
- curreny
- int, integer
- percent
- float, double, f2, d2
In fact you may also use
array('float',4)if you want a float with four decimal places but this array syntax only applies to float/double. How the values are actually formatted depends on the CultureInfo you chose.
INTERNAL Performs formatting of a table cell (Td)
Formats a given string.
Definition: public function FormatContent($full_content, $culture=false)
Returns: string The formatted string
Parameters:
-
string $full_contentThe string to format -
\ScavixWDF\Localization\CultureInfo $cultureCultureInfo object or false if not present
Gets the format.
Definition: public function GetFormat()
Returns: string The format