ICanBoogie/I18n master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • I18n
      • Translator

Classes

  • FormattedString
  • Helpers
  • Locale
  • NumberFormatter
  • Translator

Functions

  • date_period
  • format_currency
  • format_date
  • format_datetime
  • format_number
  • format_size
  • format_time
  • get_cldr
  • get_language
  • get_locale
  • set_locale
  • t

Class FormattedString

A formatted string.

The string is formatted by replacing placeholders with the values provided.

Direct known subclasses

ICanBoogie\FormattedString

Namespace: ICanBoogie\I18n
Located at strings.php

Methods summary

public
# __construct( string $format, array $args = null, array $options = array() )

Initializes the ICanBoogie\I18n\FormattedString::$format, ICanBoogie\I18n\FormattedString::$args and ICanBoogie\I18n\FormattedString::$options properties.

Initializes the ICanBoogie\I18n\FormattedString::$format, ICanBoogie\I18n\FormattedString::$args and ICanBoogie\I18n\FormattedString::$options properties.

Parameters

$format
String format.
$args
Format arguments.
$options
I18n options.
public
# __get( $property )
public string
# __toString( )

Returns the string formatted with the ICanBoogie\I18n\FormattedString::$format function.

Returns the string formatted with the ICanBoogie\I18n\FormattedString::$format function.

Returns

string

Properties summary

protected $format
#
protected $args
#
protected $options
#

Magic properties

public read-only string $format

String format.

public read-only array $args

Format arguments.

public read-only array $options

I18n options.

ICanBoogie/I18n master API documentation generated by ApiGen