framework/zii/widgets/grid/CDataColumn.php
public function getHeaderCellContent()
	{
		if($this->grid->enableSorting && $this->sortable && $this->name!==null)
			return $this->grid->dataProvider->getSort()->link($this->name,$this->header,array('class'=>'sort-link'));
		elseif($this->name!==null && $this->header===null)
		{
			if($this->grid->dataProvider instanceof CActiveDataProvider)
				return CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name));
			else
				return CHtml::encode($this->name);
		}
		else
			return parent::getHeaderCellContent();
	}
public function getHeaderCellContent()
	{
		if($this->grid->enableSorting && $this->sortable && $this->name!==null)
			return $this->grid->dataProvider->getSort()->link($this->name,$this->header,array('class'=>'sort-link'));
		elseif($this->name!==null && $this->header===null)
		{
			if($this->grid->dataProvider instanceof CActiveDataProvider)
				return CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name));
			else
				return CHtml::encode($this->name);
		}
		else
			return parent::getHeaderCellContent();
	}
public function getHeaderCellContent ( ) { if ( $ this -> grid -> enableSorting && $ this -> sortable && $ this -> name !== null ) return $ this -> grid -> dataProvider -> getSort ( ) -> link ( $ this -> name , $ this -> header , array ( 'class' => 'sort-link' ) ) ; elseif ( $ this -> name !== null && $ this -> header === null ) { if ( $ this -> grid -> dataProvider instanceof CActiveDataProvider ) return CHtml :: encode ( $ this -> grid -> dataProvider -> model -> getAttributeLabel ( $ this -> name ) ) ; else return CHtml :: encode ( $ this -> name ) ; } else return parent :: getHeaderCellContent ( ) ; }
Returns the header cell content.
This method will render a link that can trigger the sorting if the column is sortable.
@return string the header cell content.
@since 1.1.16
Returns the header cell content . This method will render a link that can trigger the sorting if the column is sortable .