mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-21 00:54:53 +08:00
fixes #1001
This commit is contained in:
@@ -41,10 +41,10 @@ class DataColumn extends Column
|
|||||||
*/
|
*/
|
||||||
public $value;
|
public $value;
|
||||||
/**
|
/**
|
||||||
* @var string in which format should the value of each data model be displayed as (e.g. "text", "html").
|
* @var string|array 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]].
|
* ['date', 'Y-m-d']). Supported formats are determined by the [[GridView::formatter|formatter]] used by
|
||||||
* Default format is "text" which will format the value as an HTML-encoded plain text when
|
* 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.
|
* [[\yii\base\Formatter::format()]] or [[\yii\i18n\Formatter::format()]] is used.
|
||||||
*/
|
*/
|
||||||
public $format = 'text';
|
public $format = 'text';
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ use yii\base\InvalidConfigException;
|
|||||||
use yii\db\ActiveRecord;
|
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>
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user