Skip to content

Commit

Permalink
enhancements to CLinkColumn
Browse files Browse the repository at this point in the history
Merge branch 'master' of https://github.com/thyseus/yii

Conflicts:
	framework/zii/widgets/grid/CLinkColumn.php
  • Loading branch information
thyseus committed Jul 14, 2012
2 parents 02de7fc + 30842ed commit 1002ad4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions framework/zii/widgets/grid/CLinkColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class CLinkColumn extends CGridColumn
* @see sortable
*/
public $name;

/**
* @var boolean whether the column is sortable. If so, the header cell will contain a link that may trigger the sorting.
* Defaults to true. Note that if {@link name} is not set, or if {@link name} is not allowed by {@link CSort},
Expand All @@ -45,45 +46,54 @@ class CLinkColumn extends CGridColumn
* @see labelExpression
*/
public $label='Link';

/**
* @var string a PHP expression that will be evaluated for every data cell and whose result will be rendered
* as the label of the hyperlink of the data cells. In this expression, the variable
* <code>$row</code> the row number (zero-based); <code>$data</code> the data model for the row;
* and <code>$this</code> the column object.
*/
public $labelExpression;

/**
* @var string the URL to the image. If this is set, an image link will be rendered.
*/
public $imageUrl;

/**
* @var string the URL of the hyperlinks in the data cells.
* This property is ignored if {@link urlExpression} is set.
* @see urlExpression
*/

public $url='javascript:void(0)';
/**
* @var string a PHP expression that will be evaluated for every data cell and whose result will be rendered
* as the URL of the hyperlink of the data cells. In this expression, the variable
* <code>$row</code> the row number (zero-based); <code>$data</code> the data model for the row;
* and <code>$this</code> the column object.
*/

public $urlExpression;
/**
* @var array the HTML options for the data cell tags.
*/

public $htmlOptions=array('class'=>'link-column');
/**
* @var array the HTML options for the header cell tag.
*/

public $headerHtmlOptions=array('class'=>'link-column');
/**
* @var array the HTML options for the footer cell tag.
*/

public $footerHtmlOptions=array('class'=>'link-column');
/**
* @var array the HTML options for the hyperlinks
*/

public $linkHtmlOptions=array();
/**
* @var mixed the HTML code representing a filter input (eg a text field, a dropdown list)
Expand Down

0 comments on commit 1002ad4

Please sign in to comment.