Commit cf960e89 by Erik_r

Namespace corrected #2359

parent 0995a740
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
//namespace yii\base; namespace yii\base;
namespace guggach\helpers;
use Yii; use Yii;
use DateTime; use DateTime;
...@@ -16,7 +16,7 @@ use yii\helpers\HtmlPurifier; ...@@ -16,7 +16,7 @@ use yii\helpers\HtmlPurifier;
use yii\helpers\Html; use yii\helpers\Html;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\base\InvalidParamException; use yii\base\InvalidParamException;
use guggach\helpers\FormatDefs; use yii\i18n\FormatDefs;
/** /**
...@@ -567,7 +567,7 @@ class Formatter extends yii\base\Component ...@@ -567,7 +567,7 @@ class Formatter extends yii\base\Component
/** /**
* Set a new local different to Yii configuration for temporale reason. * Set a new local different to Yii configuration for temporale reason.
* @param string $locale language code and country code. * @param string $locale language code and country code.
* @return \guggach\helpers\Formatter object * @return Formatter object
*/ */
public function setLocale($locale = 'en-US'){ public function setLocale($locale = 'en-US'){
$this->locale = $locale; $this->locale = $locale;
...@@ -724,7 +724,7 @@ class Formatter extends yii\base\Component ...@@ -724,7 +724,7 @@ class Formatter extends yii\base\Component
* standard (icu) will be taken. Without loaded "intl" extension the definition can be * standard (icu) will be taken. Without loaded "intl" extension the definition can be
* adapted in FormatDefs.php. * adapted in FormatDefs.php.
* @param string $sign: one sign which is set. * @param string $sign: one sign which is set.
* @return \guggach\helpers\Formatter * @return Formatter object
*/ */
public function setDecimalSeparator($sign = null){ public function setDecimalSeparator($sign = null){
if ($sign === null){ if ($sign === null){
...@@ -754,7 +754,7 @@ class Formatter extends yii\base\Component ...@@ -754,7 +754,7 @@ class Formatter extends yii\base\Component
* standard (icu) will be taken. Without loaded "intl" extension the definition can be * standard (icu) will be taken. Without loaded "intl" extension the definition can be
* adapted in FormatDefs.php. * adapted in FormatDefs.php.
* @param string $sign: one sign which is set. * @param string $sign: one sign which is set.
* @return \guggach\helpers\Formatter * @return Formatter object
*/ */
public function setThousandSeparator($sign = null){ public function setThousandSeparator($sign = null){
if ($sign === null){ if ($sign === null){
......
<?php <?php
namespace guggach\helpers; namespace yii\i18n;
/** /**
* International format definitions for decimal separator, thousand separator, dates, * International format definitions for decimal separator, thousand separator, dates,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment