Ejemplo n.º 1
0
 /**
  * This method is intend to act as constructor.
  *
  * @param Doozr_Registry_Interface      $registry   The Doozr_Registry instance
  * @param string                        $locale     The locale this instance is working with
  * @param string                        $namespace  The active namespace of this format-class
  * @param object                        $configI18n An instance of Doozr_Config_Ini holding the I18n-configuration
  * @param object                        $configL10n An instance of Doozr_Config_Ini holding the I10n-configuration (locale)
  * @param Doozr_I18n_Service_Translator $translator An instance of a translator (for locale)
  *
  * @author Benjamin Carl <*****@*****.**>
  *
  * @return Doozr_I18n_Service_Localize_Currency
  */
 public function __construct(Doozr_Registry_Interface $registry = null, $locale = null, $namespace = null, $configI18n = null, $configL10n = null, Doozr_I18n_Service_Translator $translator = null)
 {
     // Set type of format-class
     $this->type = 'Currency';
     // Call parents constructor
     parent::__construct($registry, $locale, $namespace, $configI18n, $configL10n, $translator);
 }
Ejemplo n.º 2
0
 /**
  * This method is intend to act as constructor.
  *
  * @param Doozr_Registry_Interface $registry   The Doozr_Registry instance
  * @param string                   $locale     The locale this instance is working with
  * @param string                   $namespace  The active namespace of this format-class
  * @param \stdClass                $configI18n An instance of Doozr_Config_Ini holding the I18n-configuration
  * @param \stdClass                $configL10n An instance of Doozr_Config_Ini holding the I10n-configuration (for locale)
  * @param object                   $translator An instance of a translator (for locale)
  *
  * @author Benjamin Carl <*****@*****.**>
  */
 public function __construct(Doozr_Registry_Interface $registry = null, $locale = null, $namespace = null, $configI18n = null, $configL10n = null, $translator = null)
 {
     // Set type of format-class
     $this->type = 'Measure';
     // Setup default in- and output format (measure-system)
     $this->setInputMeasureSystem($this->defaultMeasureSystem);
     $this->setOutputMeasureSystem($this->defaultMeasureSystem);
     // Call parents constructor
     parent::__construct($registry, $locale, $namespace, $configI18n, $configL10n, $translator);
 }
Ejemplo n.º 3
0
 /**
  * Constructor.
  *
  * @param Doozr_Registry_Interface                $registry   Instance of Doozr_Registry
  * @param string                                  $locale     Locale
  * @param string                                  $namespace  Namespace of this localizer
  * @param Doozr_Configuration_Hierarchy_I18n      $configI18n I18n configuration
  * @param Doozr_Configuration_Hierarchy_I18n_L10n $configL10n L10n configuration of the current active locale
  * @param Doozr_I18n_Service_Translator           $translator An instance of a translator (for locale).
  *
  * @author Benjamin Carl <*****@*****.**>
  *
  * @return Doozr_I18n_Service_Localize_Datetime Instance of this class
  */
 public function __construct(Doozr_Registry_Interface $registry = null, $locale = null, $namespace = null, $configI18n = null, $configL10n = null, Doozr_I18n_Service_Translator $translator = null)
 {
     // Set type of format-class
     $this->type = 'Datetime';
     // Store the default and active timeset
     $this->timeset = $configL10n->datetime->default_timeset;
     // Call parents constructor
     parent::__construct($registry, $locale, $namespace, $configI18n, $configL10n, $translator);
 }