Skip to content

classes_lib_controls_table_cellformat.class

Daniel Spors edited this page Dec 19, 2023 · 2 revisions

Classes in file lib/controls/table/cellformat.class.php

class CellFormat

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.

Format

INTERNAL Performs formatting of a table cell (Td)

FormatContent

Formats a given string.

Definition: public function FormatContent($full_content, $culture=false)

Returns: string The formatted string

Parameters:

  • string $full_content The string to format

  • \ScavixWDF\Localization\CultureInfo $culture CultureInfo object or false if not present

GetFormat

Gets the format.

Definition: public function GetFormat()

Returns: string The format

Clone this wiki locally