Browse Source

Fixes #915: helper classes renamed again

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
b873f9f242
  1. 2
      build/build.xml
  2. 2
      build/controllers/ClassmapController.php
  3. 2
      build/controllers/PhpDocController.php
  4. 2
      docs/internals/autoloader.md
  5. 8
      framework/yii/BaseYii.php
  6. 8
      framework/yii/Yii.php
  7. 22
      framework/yii/classes.php
  8. 2
      framework/yii/helpers/ArrayHelper.php
  9. 6
      framework/yii/helpers/BaseArrayHelper.php
  10. 6
      framework/yii/helpers/BaseConsole.php
  11. 6
      framework/yii/helpers/BaseFileHelper.php
  12. 6
      framework/yii/helpers/BaseHtml.php
  13. 6
      framework/yii/helpers/BaseHtmlPurifier.php
  14. 6
      framework/yii/helpers/BaseInflector.php
  15. 6
      framework/yii/helpers/BaseJson.php
  16. 6
      framework/yii/helpers/BaseMarkdown.php
  17. 6
      framework/yii/helpers/BaseSecurity.php
  18. 6
      framework/yii/helpers/BaseStringHelper.php
  19. 6
      framework/yii/helpers/BaseVarDumper.php
  20. 2
      framework/yii/helpers/Console.php
  21. 2
      framework/yii/helpers/FileHelper.php
  22. 2
      framework/yii/helpers/Html.php
  23. 2
      framework/yii/helpers/HtmlPurifier.php
  24. 2
      framework/yii/helpers/Inflector.php
  25. 2
      framework/yii/helpers/Json.php
  26. 2
      framework/yii/helpers/Markdown.php
  27. 2
      framework/yii/helpers/Security.php
  28. 2
      framework/yii/helpers/StringHelper.php
  29. 2
      framework/yii/helpers/VarDumper.php
  30. 2
      framework/yii/log/Logger.php

2
build/build.xml

@ -265,7 +265,7 @@ Please update yiisite/common/data/versions.php file with the following code:
where <target name> can be one of the following:
- sync : synchronize yiilite.php and AbstractYii.php
- sync : synchronize yiilite.php and BaseYii.php
- message : extract i18n messages of the framework
- src : build source release
- doc : build documentation release (Windows only)

2
build/controllers/ClassmapController.php

@ -45,7 +45,7 @@ class ClassmapController extends Controller
'only' => array('.php'),
'except' => array(
'Yii.php',
'AbstractYii.php',
'BaseYii.php',
'/debug/',
'/console/',
'/test/',

2
build/controllers/PhpDocController.php

@ -56,7 +56,7 @@ class PhpDocController extends Controller
},
'only' => array('.php'),
'except' => array(
'AbstractYii.php',
'BaseYii.php',
'Yii.php',
'/debug/views/',
'/requirements/',

2
docs/internals/autoloader.md

@ -16,4 +16,4 @@ PEAR-style libraries
References
----------
- AbstractYii::autoload
- BaseYii::autoload

8
framework/yii/AbstractYii.php → framework/yii/BaseYii.php

@ -49,15 +49,15 @@ defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER', true);
/**
* AbstractYii is the core helper class for the Yii framework.
* BaseYii is the core helper class for the Yii framework.
*
* Do not use AbstractYii directly. Instead, use its child class [[Yii]] where
* you can customize methods of AbstractYii.
* Do not use BaseYii directly. Instead, use its child class [[Yii]] where
* you can customize methods of BaseYii.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract class AbstractYii
class BaseYii
{
/**
* @var array class map used by the Yii autoloading mechanism.

8
framework/yii/Yii.php

@ -7,18 +7,18 @@
* @license http://www.yiiframework.com/license/
*/
require(__DIR__ . '/YiiBase.php');
require(__DIR__ . '/BaseYii.php');
/**
* Yii is a helper class serving common framework functionalities.
*
* It extends from [[AbstractYii]] which provides the actual implementation.
* By writing your own Yii class, you can customize some functionalities of [[AbstractYii]].
* It extends from [[BaseYii]] which provides the actual implementation.
* By writing your own Yii class, you can customize some functionalities of [[BaseYii]].
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class Yii extends \yii\AbstractYii
class Yii extends \yii\BaseYii
{
}

22
framework/yii/classes.php

@ -125,27 +125,27 @@ return array(
'yii\grid\GridViewAsset' => YII_PATH . '/grid/GridViewAsset.php',
'yii\grid\SerialColumn' => YII_PATH . '/grid/SerialColumn.php',
'yii\helpers\ArrayHelper' => YII_PATH . '/helpers/ArrayHelper.php',
'yii\helpers\AbstractArrayHelper' => YII_PATH . '/helpers/AbstractArrayHelper.php',
'yii\helpers\BaseArrayHelper' => YII_PATH . '/helpers/BaseArrayHelper.php',
'yii\helpers\Console' => YII_PATH . '/helpers/Console.php',
'yii\helpers\AbstractConsole' => YII_PATH . '/helpers/AbstractConsole.php',
'yii\helpers\BaseConsole' => YII_PATH . '/helpers/BaseConsole.php',
'yii\helpers\FileHelper' => YII_PATH . '/helpers/FileHelper.php',
'yii\helpers\AbstractFileHelper' => YII_PATH . '/helpers/AbstractFileHelper.php',
'yii\helpers\BaseFileHelper' => YII_PATH . '/helpers/BaseFileHelper.php',
'yii\helpers\Html' => YII_PATH . '/helpers/Html.php',
'yii\helpers\AbstractHtml' => YII_PATH . '/helpers/AbstractHtml.php',
'yii\helpers\BaseHtml' => YII_PATH . '/helpers/BaseHtml.php',
'yii\helpers\HtmlPurifier' => YII_PATH . '/helpers/HtmlPurifier.php',
'yii\helpers\AbstractHtmlPurifier' => YII_PATH . '/helpers/AbstractHtmlPurifier.php',
'yii\helpers\BaseHtmlPurifier' => YII_PATH . '/helpers/BaseHtmlPurifier.php',
'yii\helpers\Inflector' => YII_PATH . '/helpers/Inflector.php',
'yii\helpers\AbstractInflector' => YII_PATH . '/helpers/AbstractInflector.php',
'yii\helpers\BaseInflector' => YII_PATH . '/helpers/BaseInflector.php',
'yii\helpers\Json' => YII_PATH . '/helpers/Json.php',
'yii\helpers\AbstractJson' => YII_PATH . '/helpers/AbstractJson.php',
'yii\helpers\BaseJson' => YII_PATH . '/helpers/BaseJson.php',
'yii\helpers\Markdown' => YII_PATH . '/helpers/Markdown.php',
'yii\helpers\AbstractMarkdown' => YII_PATH . '/helpers/AbstractMarkdown.php',
'yii\helpers\BaseMarkdown' => YII_PATH . '/helpers/BaseMarkdown.php',
'yii\helpers\Security' => YII_PATH . '/helpers/Security.php',
'yii\helpers\AbstractSecurity' => YII_PATH . '/helpers/AbstractSecurity.php',
'yii\helpers\BaseSecurity' => YII_PATH . '/helpers/BaseSecurity.php',
'yii\helpers\StringHelper' => YII_PATH . '/helpers/StringHelper.php',
'yii\helpers\AbstractStringHelper' => YII_PATH . '/helpers/AbstractStringHelper.php',
'yii\helpers\BaseStringHelper' => YII_PATH . '/helpers/BaseStringHelper.php',
'yii\helpers\VarDumper' => YII_PATH . '/helpers/VarDumper.php',
'yii\helpers\AbstractVarDumper' => YII_PATH . '/helpers/AbstractVarDumper.php',
'yii\helpers\BaseVarDumper' => YII_PATH . '/helpers/BaseVarDumper.php',
'yii\i18n\DbMessageSource' => YII_PATH . '/i18n/DbMessageSource.php',
'yii\i18n\Formatter' => YII_PATH . '/i18n/Formatter.php',
'yii\i18n\GettextFile' => YII_PATH . '/i18n/GettextFile.php',

2
framework/yii/helpers/ArrayHelper.php

@ -14,6 +14,6 @@ namespace yii\helpers;
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class ArrayHelper extends AbstractArrayHelper
class ArrayHelper extends BaseArrayHelper
{
}

6
framework/yii/helpers/AbstractArrayHelper.php → framework/yii/helpers/BaseArrayHelper.php

@ -12,14 +12,14 @@ use yii\base\Arrayable;
use yii\base\InvalidParamException;
/**
* AbstractArrayHelper provides concrete implementation for [[ArrayHelper]].
* BaseArrayHelper provides concrete implementation for [[ArrayHelper]].
*
* Do not use AbstractArrayHelper. Use [[ArrayHelper]] instead.
* Do not use BaseArrayHelper. Use [[ArrayHelper]] instead.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract class AbstractArrayHelper
class BaseArrayHelper
{
/**
* Converts an object or an array of objects into an array.

6
framework/yii/helpers/AbstractConsole.php → framework/yii/helpers/BaseConsole.php

@ -8,14 +8,14 @@
namespace yii\helpers;
/**
* AbstractConsole provides concrete implementation for [[Console]].
* BaseConsole provides concrete implementation for [[Console]].
*
* Do not use AbstractConsole. Use [[Console]] instead.
* Do not use BaseConsole. Use [[Console]] instead.
*
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
*/
abstract class AbstractConsole
class BaseConsole
{
const FG_BLACK = 30;
const FG_RED = 31;

6
framework/yii/helpers/AbstractFileHelper.php → framework/yii/helpers/BaseFileHelper.php

@ -12,15 +12,15 @@ namespace yii\helpers;
use Yii;
/**
* AbstractFileHelper provides concrete implementation for [[FileHelper]].
* BaseFileHelper provides concrete implementation for [[FileHelper]].
*
* Do not use AbstractFileHelper. Use [[FileHelper]] instead.
* Do not use BaseFileHelper. Use [[FileHelper]] instead.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Alex Makarov <sam@rmcreative.ru>
* @since 2.0
*/
abstract class AbstractFileHelper
class BaseFileHelper
{
/**
* Normalizes a file/directory path.

6
framework/yii/helpers/AbstractHtml.php → framework/yii/helpers/BaseHtml.php

@ -13,14 +13,14 @@ use yii\web\Request;
use yii\base\Model;
/**
* AbstractHtml provides concrete implementation for [[Html]].
* BaseHtml provides concrete implementation for [[Html]].
*
* Do not use AbstractHtml. Use [[Html]] instead.
* Do not use BaseHtml. Use [[Html]] instead.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract class AbstractHtml
class BaseHtml
{
/**
* @var array list of void elements (element name => 1)

6
framework/yii/helpers/AbstractHtmlPurifier.php → framework/yii/helpers/BaseHtmlPurifier.php

@ -7,14 +7,14 @@
namespace yii\helpers;
/**
* AbstractHtmlPurifier provides concrete implementation for [[HtmlPurifier]].
* BaseHtmlPurifier provides concrete implementation for [[HtmlPurifier]].
*
* Do not use AbstractHtmlPurifier. Use [[HtmlPurifier]] instead.
* Do not use BaseHtmlPurifier. Use [[HtmlPurifier]] instead.
*
* @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0
*/
abstract class AbstractHtmlPurifier
class BaseHtmlPurifier
{
/**
* Passes markup through HTMLPurifier making it safe to output to end user

6
framework/yii/helpers/AbstractInflector.php → framework/yii/helpers/BaseInflector.php

@ -10,14 +10,14 @@ namespace yii\helpers;
use Yii;
/**
* AbstractInflector provides concrete implementation for [[Inflector]].
* BaseInflector provides concrete implementation for [[Inflector]].
*
* Do not use AbstractInflector. Use [[Inflector]] instead.
* Do not use BaseInflector. Use [[Inflector]] instead.
*
* @author Antonio Ramirez <amigo.cobos@gmail.com>
* @since 2.0
*/
abstract class AbstractInflector
class BaseInflector
{
/**
* @var array the rules for converting a word into its plural form.

6
framework/yii/helpers/AbstractJson.php → framework/yii/helpers/BaseJson.php

@ -12,14 +12,14 @@ use yii\base\Arrayable;
use yii\web\JsExpression;
/**
* AbstractJson provides concrete implementation for [[Json]].
* BaseJson provides concrete implementation for [[Json]].
*
* Do not use AbstractJson. Use [[Json]] instead.
* Do not use BaseJson. Use [[Json]] instead.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract class AbstractJson
class BaseJson
{
/**
* Encodes the given value into a JSON string.

6
framework/yii/helpers/AbstractMarkdown.php → framework/yii/helpers/BaseMarkdown.php

@ -10,14 +10,14 @@ namespace yii\helpers;
use Michelf\MarkdownExtra;
/**
* AbstractMarkdown provides concrete implementation for [[Markdown]].
* BaseMarkdown provides concrete implementation for [[Markdown]].
*
* Do not use AbstractMarkdown. Use [[Markdown]] instead.
* Do not use BaseMarkdown. Use [[Markdown]] instead.
*
* @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0
*/
abstract class AbstractMarkdown
class BaseMarkdown
{
/**
* @var MarkdownExtra

6
framework/yii/helpers/AbstractSecurity.php → framework/yii/helpers/BaseSecurity.php

@ -13,15 +13,15 @@ use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
/**
* AbstractSecurity provides concrete implementation for [[Security]].
* BaseSecurity provides concrete implementation for [[Security]].
*
* Do not use AbstractSecurity. Use [[Security]] instead.
* Do not use BaseSecurity. Use [[Security]] instead.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Tom Worster <fsb@thefsb.org>
* @since 2.0
*/
abstract class AbstractSecurity
class BaseSecurity
{
/**
* Encrypts data.

6
framework/yii/helpers/AbstractStringHelper.php → framework/yii/helpers/BaseStringHelper.php

@ -10,15 +10,15 @@ namespace yii\helpers;
use yii\base\InvalidParamException;
/**
* AbstractStringHelper provides concrete implementation for [[StringHelper]].
* BaseStringHelper provides concrete implementation for [[StringHelper]].
*
* Do not use AbstractStringHelper. Use [[StringHelper]] instead.
* Do not use BaseStringHelper. Use [[StringHelper]] instead.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Alex Makarov <sam@rmcreative.ru>
* @since 2.0
*/
abstract class AbstractStringHelper
class BaseStringHelper
{
/**
* Returns the number of bytes in the given string.

6
framework/yii/helpers/AbstractVarDumper.php → framework/yii/helpers/BaseVarDumper.php

@ -9,14 +9,14 @@
namespace yii\helpers;
/**
* AbstractVarDumper provides concrete implementation for [[VarDumper]].
* BaseVarDumper provides concrete implementation for [[VarDumper]].
*
* Do not use AbstractVarDumper. Use [[VarDumper]] instead.
* Do not use BaseVarDumper. Use [[VarDumper]] instead.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
abstract class AbstractVarDumper
class BaseVarDumper
{
private static $_objects;
private static $_output;

2
framework/yii/helpers/Console.php

@ -14,6 +14,6 @@ namespace yii\helpers;
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
*/
class Console extends AbstractConsole
class Console extends BaseConsole
{
}

2
framework/yii/helpers/FileHelper.php

@ -16,6 +16,6 @@ namespace yii\helpers;
* @author Alex Makarov <sam@rmcreative.ru>
* @since 2.0
*/
class FileHelper extends AbstractFileHelper
class FileHelper extends BaseFileHelper
{
}

2
framework/yii/helpers/Html.php

@ -13,6 +13,6 @@ namespace yii\helpers;
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class Html extends AbstractHtml
class Html extends BaseHtml
{
}

2
framework/yii/helpers/HtmlPurifier.php

@ -32,6 +32,6 @@ namespace yii\helpers;
* @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0
*/
class HtmlPurifier extends AbstractHtmlPurifier
class HtmlPurifier extends BaseHtmlPurifier
{
}

2
framework/yii/helpers/Inflector.php

@ -13,6 +13,6 @@ namespace yii\helpers;
* @author Antonio Ramirez <amigo.cobos@gmail.com>
* @since 2.0
*/
class Inflector extends AbstractInflector
class Inflector extends BaseInflector
{
}

2
framework/yii/helpers/Json.php

@ -14,6 +14,6 @@ namespace yii\helpers;
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class Json extends AbstractJson
class Json extends BaseJson
{
}

2
framework/yii/helpers/Markdown.php

@ -30,6 +30,6 @@ namespace yii\helpers;
* @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0
*/
class Markdown extends AbstractMarkdown
class Markdown extends BaseMarkdown
{
}

2
framework/yii/helpers/Security.php

@ -24,6 +24,6 @@ namespace yii\helpers;
* @author Tom Worster <fsb@thefsb.org>
* @since 2.0
*/
class Security extends AbstractSecurity
class Security extends BaseSecurity
{
}

2
framework/yii/helpers/StringHelper.php

@ -14,6 +14,6 @@ namespace yii\helpers;
* @author Alex Makarov <sam@rmcreative.ru>
* @since 2.0
*/
class StringHelper extends AbstractStringHelper
class StringHelper extends BaseStringHelper
{
}

2
framework/yii/helpers/VarDumper.php

@ -23,6 +23,6 @@ namespace yii\helpers;
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class VarDumper extends AbstractVarDumper
class VarDumper extends BaseVarDumper
{
}

2
framework/yii/log/Logger.php

@ -220,7 +220,7 @@ class Logger extends Component
* Returns the total elapsed time since the start of the current request.
* This method calculates the difference between now and the timestamp
* defined by constant `YII_BEGIN_TIME` which is evaluated at the beginning
* of [[AbstractYii]] class file.
* of [[BaseYii]] class file.
* @return float the total elapsed time in seconds for current request.
*/
public function getElapsedTime()

Loading…
Cancel
Save