Browse Source

fixes #1001

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
ffb37f8eab
  1. 8
      framework/yii/grid/DataColumn.php
  2. 2
      framework/yii/validators/UniqueValidator.php

8
framework/yii/grid/DataColumn.php

@ -41,10 +41,10 @@ class DataColumn extends Column
*/
public $value;
/**
* @var string in which format should the value of each data model be displayed as (e.g. "text", "html").
* Supported formats are determined by the [[GridView::formatter|formatter]] used by the [[GridView]].
* Default format is "text" which will format the value as an HTML-encoded plain text when
* [[\yii\base\Formatter]] or [[\yii\i18n\Formatter]] is used.
* @var string|array in which format should the value of each data model be displayed as (e.g. "text", "html",
* ['date', 'Y-m-d']). Supported formats are determined by the [[GridView::formatter|formatter]] used by
* the [[GridView]]. Default format is "text" which will format the value as an HTML-encoded plain text when
* [[\yii\base\Formatter::format()]] or [[\yii\i18n\Formatter::format()]] is used.
*/
public $format = 'text';
/**

2
framework/yii/validators/UniqueValidator.php

@ -12,7 +12,7 @@ use yii\base\InvalidConfigException;
use yii\db\ActiveRecord;
/**
* CUniqueValidator validates that the attribute value is unique in the corresponding database table.
* UniqueValidator validates that the attribute value is unique in the corresponding database table.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0

Loading…
Cancel
Save