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
f7148c2d
Commit
f7148c2d
authored
Mar 08, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
callback -> callable
this term is resolveable by the php docs when linking types in apidoc
parent
05e79d4f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
AssetController.php
framework/console/controllers/AssetController.php
+3
-2
DetailView.php
framework/widgets/DetailView.php
+1
-1
ListView.php
framework/widgets/ListView.php
+1
-1
No files found.
framework/console/controllers/AssetController.php
View file @
f7148c2d
...
...
@@ -62,7 +62,7 @@ class AssetController extends Controller
*/
public
$targets
=
[];
/**
* @var string|call
back
JavaScript file compressor.
* @var string|call
able
JavaScript file compressor.
* If a string, it is treated as shell command template, which should contain
* placeholders {from} - source file name - and {to} - output file name.
* Otherwise, it is treated as PHP callback, which should perform the compression.
...
...
@@ -72,7 +72,7 @@ class AssetController extends Controller
*/
public
$jsCompressor
=
'java -jar compiler.jar --js {from} --js_output_file {to}'
;
/**
* @var string|call
back
CSS file compressor.
* @var string|call
able
CSS file compressor.
* If a string, it is treated as shell command template, which should contain
* placeholders {from} - source file name - and {to} - output file name.
* Otherwise, it is treated as PHP callback, which should perform the compression.
...
...
@@ -88,6 +88,7 @@ class AssetController extends Controller
*/
private
$_assetManager
=
[];
/**
* Returns the asset manager instance.
* @throws \yii\console\Exception on invalid configuration.
...
...
framework/widgets/DetailView.php
View file @
f7148c2d
...
...
@@ -76,7 +76,7 @@ class DetailView extends Widget
*/
public
$attributes
;
/**
* @var string|call
back
the template used to render a single attribute. If a string, the token `{label}`
* @var string|call
able
the template used to render a single attribute. If a string, the token `{label}`
* and `{value}` will be replaced with the label and the value of the corresponding attribute.
* If a callback (e.g. an anonymous function), the signature must be as follows:
*
...
...
framework/widgets/ListView.php
View file @
f7148c2d
...
...
@@ -25,7 +25,7 @@ class ListView extends BaseListView
*/
public
$itemOptions
=
[];
/**
* @var string|call
back
the name of the view for rendering each data item, or a callback (e.g. an anonymous function)
* @var string|call
able
the name of the view for rendering each data item, or a callback (e.g. an anonymous function)
* for rendering each data item. If it specifies a view name, the following variables will
* be available in the view:
*
...
...
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