From f906b3a10b57f10efa8742ca2fc08e0ff8d381b7 Mon Sep 17 00:00:00 2001 From: Thiago Talma Date: Thu, 30 Jan 2014 16:02:24 -0200 Subject: [PATCH] Adjust doc --- framework/grid/DataColumn.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/grid/DataColumn.php b/framework/grid/DataColumn.php index 7011e69a28..5c9500efcf 100644 --- a/framework/grid/DataColumn.php +++ b/framework/grid/DataColumn.php @@ -40,7 +40,8 @@ class DataColumn extends Column */ public $label; /** - * @var \Closure an anonymous function that returns the value to be displayed for every data model. + * @var string|\Closure the attribute name to be displayed in this column or an anonymous function that returns + * the value to be displayed for every data model. * The signature of this function is `function ($model, $index, $widget)`. * If this is not set, `$model[$attribute]` will be used to obtain the value. */