Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
eaa1ba02
Commit
eaa1ba02
authored
Feb 25, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor cs fixes.
parent
3ad7d6d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Column.php
framework/grid/Column.php
+3
-2
DataColumn.php
framework/grid/DataColumn.php
+1
-1
No files found.
framework/grid/Column.php
View file @
eaa1ba02
...
...
@@ -116,7 +116,8 @@ class Column extends Object
}
/**
* Get the raw data cell content.
* Returns the raw data cell content.
* This method is called by [[renderDataCellContent()]] when rendering the content of a data cell.
* @param mixed $model the data model
* @param mixed $key the key associated with the data model
* @param integer $index the zero-based index of the data model among the models array returned by [[GridView::dataProvider]].
...
...
@@ -140,7 +141,7 @@ class Column extends Object
*/
protected
function
renderDataCellContent
(
$model
,
$key
,
$index
)
{
return
(
$this
->
content
!==
null
)
?
$this
->
getDataCellContent
(
$model
,
$key
,
$index
)
:
$this
->
grid
->
emptyCell
;
return
$this
->
content
!==
null
?
$this
->
getDataCellContent
(
$model
,
$key
,
$index
)
:
$this
->
grid
->
emptyCell
;
}
/**
...
...
framework/grid/DataColumn.php
View file @
eaa1ba02
...
...
@@ -136,7 +136,7 @@ class DataColumn extends Column
}
/**
*
Return raw content
*
@inheritdoc
*/
protected
function
getDataCellContent
(
$model
,
$key
,
$index
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment