Browse Source

typos in doc

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
155749e18d
  1. 4
      framework/yii/data/Sort.php
  2. 4
      framework/yii/grid/DataColumn.php

4
framework/yii/data/Sort.php

@ -286,8 +286,8 @@ class Sort extends Object
* with "asc" or "desc".
* @param string $attribute the attribute name by which the data should be sorted by.
* @param string $label the label to be used for the generated link.
* If this is null, the label defined in [[attributes]] we be used.
* If there is no label defined, [[Inflector::camel2words()]] will be called to get a label.
* If this is null, the label defined in [[attributes]] will be used.
* If no label is defined, [[yii\helpers\Inflector::camel2words()]] will be called to get a label.
* @param array $options additional HTML attributes for the hyperlink tag
* @return string the generated hyperlink
* @throws InvalidConfigException if the attribute is unknown

4
framework/yii/grid/DataColumn.php

@ -31,8 +31,8 @@ class DataColumn extends Column
* @var string label to be displayed in the [[header|header cell]] and also to be used as the sorting
* link label when sorting is enabled for this column.
* If it is not set and the models provided by the GridViews data provider are instances
* of [[ActiveRecord]], the label will be determined via [[ActiveRecord::getAttributeLabel()]].
* Otherwise [[yii\helpers\Inflector::camel2words]] will be used to get a label.
* of [[yii\db\ActiveRecord]], the label will be determined using [[yii\db\ActiveRecord::getAttributeLabel()]].
* Otherwise [[yii\helpers\Inflector::camel2words()]] will be used to get a label.
*/
public $label;
/**

Loading…
Cancel
Save