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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
12217a3e
Commit
12217a3e
authored
Dec 10, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style and docs
parent
2c9a8b91
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Generator.php
extensions/yii/gii/generators/crud/Generator.php
+2
-2
DataColumn.php
framework/yii/grid/DataColumn.php
+1
-0
No files found.
extensions/yii/gii/generators/crud/Generator.php
View file @
12217a3e
...
...
@@ -188,9 +188,9 @@ class Generator extends \yii\gii\Generator
$tableSchema
=
$this
->
getTableSchema
();
if
(
$tableSchema
===
false
||
!
isset
(
$tableSchema
->
columns
[
$attribute
]))
{
if
(
preg_match
(
'/^(password|pass|passwd|passcode)$/i'
,
$attribute
))
{
return
"
\$
form->field(
\$
model, '
$attribute
')->passwordInput()
;
"
;
return
"
\$
form->field(
\$
model, '
$attribute
')->passwordInput()"
;
}
else
{
return
"
\$
form->field(
\$
model, '
$attribute
')
;
"
;
return
"
\$
form->field(
\$
model, '
$attribute
')"
;
}
}
$column
=
$tableSchema
->
columns
[
$attribute
];
...
...
framework/yii/grid/DataColumn.php
View file @
12217a3e
...
...
@@ -41,6 +41,7 @@ class DataColumn extends Column
public
$label
;
/**
* @var \Closure an anonymous function that returns the value to be displayed for every data model.
* The signature of this function is `function ($model, $index, $widget)`.
* If this is not set, `$model[$attribute]` will be used to obtain the value.
*/
public
$value
;
...
...
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