framework/zii/widgets/grid/CLinkColumn.php
public function getDataCellContent($row)
	{
		$data=$this->grid->dataProvider->data[$row];
		if($this->urlExpression!==null)
			$url=$this->evaluateExpression($this->urlExpression,array('data'=>$data,'row'=>$row));
		else
			$url=$this->url;
		if($this->labelExpression!==null)
			$label=$this->evaluateExpression($this->labelExpression,array('data'=>$data,'row'=>$row));
		else
			$label=$this->label;
		$options=$this->linkHtmlOptions;
		if(is_string($this->imageUrl))
			return CHtml::link(CHtml::image($this->imageUrl,$label),$url,$options);
		else
			return CHtml::link($label,$url,$options);
	}
public function getDataCellContent($row)
	{
		$data=$this->grid->dataProvider->data[$row];
		if($this->urlExpression!==null)
			$url=$this->evaluateExpression($this->urlExpression,array('data'=>$data,'row'=>$row));
		else
			$url=$this->url;
		if($this->labelExpression!==null)
			$label=$this->evaluateExpression($this->labelExpression,array('data'=>$data,'row'=>$row));
		else
			$label=$this->label;
		$options=$this->linkHtmlOptions;
		if(is_string($this->imageUrl))
			return CHtml::link(CHtml::image($this->imageUrl,$label),$url,$options);
		else
			return CHtml::link($label,$url,$options);
	}
public function getDataCellContent ( $ row ) { $ data = $ this -> grid -> dataProvider -> data [ $ row ] ; if ( $ this -> urlExpression !== null ) $ url = $ this -> evaluateExpression ( $ this -> urlExpression , array ( 'data' => $ data , 'row' => $ row ) ) ; else $ url = $ this -> url ; if ( $ this -> labelExpression !== null ) $ label = $ this -> evaluateExpression ( $ this -> labelExpression , array ( 'data' => $ data , 'row' => $ row ) ) ; else $ label = $ this -> label ; $ options = $ this -> linkHtmlOptions ; if ( is_string ( $ this -> imageUrl ) ) return CHtml :: link ( CHtml :: image ( $ this -> imageUrl , $ label ) , $ url , $ options ) ; else return CHtml :: link ( $ label , $ url , $ options ) ; }
Returns the data cell content.
This method renders a hyperlink in the data cell.
@param integer $row the row number (zero-based)
@return string the data cell content.
@since 1.1.16
Returns the data cell content . This method renders a hyperlink in the data cell .