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
613e6a0c
Commit
613e6a0c
authored
Feb 27, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://github.com/yiisoft/yii2
parents
5d0ec52a
84890625
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
10 deletions
+13
-10
BaseRenderer.php
extensions/apidoc/templates/BaseRenderer.php
+0
-1
constSummary.php
extensions/apidoc/templates/html/views/constSummary.php
+1
-1
Tabs.php
extensions/bootstrap/Tabs.php
+1
-1
CHANGELOG.md
extensions/jui/CHANGELOG.md
+1
-0
DatePicker.php
extensions/jui/DatePicker.php
+8
-6
LuaScriptBuilder.php
extensions/redis/LuaScriptBuilder.php
+1
-0
QueryBuilder.php
extensions/sphinx/QueryBuilder.php
+1
-1
No files found.
extensions/apidoc/templates/BaseRenderer.php
View file @
613e6a0c
...
...
@@ -50,7 +50,6 @@ abstract class BaseRenderer extends Component
* @param array $files list of markdown files to render
* @param Context $context the api documentation context to render.
* @param Controller $controller the apidoc controller instance. Can be used to control output.
* @return
*/
public
abstract
function
renderMarkdownFiles
(
$controller
);
...
...
extensions/apidoc/templates/html/views/constSummary.php
View file @
613e6a0c
...
...
@@ -33,7 +33,7 @@ ArrayHelper::multisort($constants, 'name');
<tr
<?=
$constant
->
definedBy
!=
$type
->
name
?
' class="inherited"'
:
''
?>
id=
"
<?=
$constant
->
name
?>
"
>
<td>
<?=
$constant
->
name
?>
<a
name=
"
<?=
$constant
->
name
?>
-detail"
></a></td>
<td>
<?=
$constant
->
value
?>
</td>
<td>
<?=
A
P
iMarkdown
::
process
(
$constant
->
shortDescription
.
"
\n
"
.
$constant
->
description
,
$constant
->
definedBy
,
true
)
?>
</td>
<td>
<?=
A
p
iMarkdown
::
process
(
$constant
->
shortDescription
.
"
\n
"
.
$constant
->
description
,
$constant
->
definedBy
,
true
)
?>
</td>
<td>
<?=
$this
->
context
->
typeLink
(
$constant
->
definedBy
)
?>
</td>
</tr>
<?php
endforeach
;
?>
...
...
extensions/bootstrap/Tabs.php
View file @
613e6a0c
...
...
@@ -92,7 +92,7 @@ class Tabs extends Widget
*/
public
$encodeLabels
=
true
;
/**
* @var string
,
specifies the Bootstrap tab styling.
* @var string specifies the Bootstrap tab styling.
*/
public
$navType
=
'nav-tabs'
;
...
...
extensions/jui/CHANGELOG.md
View file @
613e6a0c
...
...
@@ -6,6 +6,7 @@ Yii Framework 2 jui extension Change Log
-
Bug #1550: fixed the issue that JUI input widgets did not property input IDs. (qiangxue)
-
Bug #2514: Jui sortable clientEvents were not working because of wrong naming assumptions. (cebe)
-
Enh #2573: Jui datepicker now uses the current appliaction language by default. (andy5)
2.
0.0 alpha, December 1, 2013
-----------------------------
...
...
extensions/jui/DatePicker.php
View file @
613e6a0c
...
...
@@ -7,11 +7,12 @@
namespace
yii\jui
;
use
Yii
;
use
yii\helpers\Html
;
use
yii\helpers\Json
;
/**
* DatePicker renders a
n
datepicker jQuery UI widget.
* DatePicker renders a datepicker jQuery UI widget.
*
* For example:
*
...
...
@@ -46,9 +47,9 @@ class DatePicker extends InputWidget
{
/**
* @var string the locale ID (eg 'fr', 'de') for the language to be used by the date picker.
* If this property
set to false, I18N will not be involved. That is, the date picker will show in English
.
* If this property
is empty, then the current application language will be used
.
*/
public
$language
=
false
;
public
$language
;
/**
* @var boolean If true, shows the widget as an inline calendar and the input as a hidden field.
*/
...
...
@@ -77,15 +78,16 @@ class DatePicker extends InputWidget
{
echo
$this
->
renderWidget
()
.
"
\n
"
;
$containerID
=
$this
->
inline
?
$this
->
containerOptions
[
'id'
]
:
$this
->
options
[
'id'
];
if
(
$this
->
language
!==
false
)
{
$language
=
$this
->
language
?
$this
->
language
:
Yii
::
$app
->
language
;
if
(
$language
!=
'en'
)
{
$view
=
$this
->
getView
();
DatePickerRegionalAsset
::
register
(
$view
);
$options
=
Json
::
encode
(
$this
->
clientOptions
);
$view
->
registerJs
(
"$('#
{
$containerID
}
').datepicker($.extend({}, $.datepicker.regional['
{
$
this
->
language
}
'],
$options
));"
);
$view
->
registerJs
(
"$('#
{
$containerID
}
').datepicker($.extend({}, $.datepicker.regional['
{
$language
}
'],
$options
));"
);
$options
=
$this
->
clientOptions
;
$this
->
clientOptions
=
false
;
// the datepicker js widget is already registered
$this
->
clientOptions
=
false
;
// the datepicker js widget is already registered
$this
->
registerWidget
(
'datepicker'
,
DatePickerAsset
::
className
(),
$containerID
);
$this
->
clientOptions
=
$options
;
}
else
{
...
...
extensions/redis/LuaScriptBuilder.php
View file @
613e6a0c
...
...
@@ -7,6 +7,7 @@
namespace
yii\redis
;
use
yii\base\InvalidParamException
;
use
yii\base\NotSupportedException
;
use
yii\db\Exception
;
use
yii\db\Expression
;
...
...
extensions/sphinx/QueryBuilder.php
View file @
613e6a0c
...
...
@@ -77,7 +77,7 @@ class QueryBuilder extends Object
$clauses
=
[
$this
->
buildSelect
(
$query
->
select
,
$params
,
$query
->
distinct
,
$query
->
selectOption
),
$this
->
buildFrom
(
$from
,
$
P
arams
),
$this
->
buildFrom
(
$from
,
$
p
arams
),
$this
->
buildWhere
(
$query
->
from
,
$query
->
where
,
$params
),
$this
->
buildGroupBy
(
$query
->
groupBy
),
$this
->
buildWithin
(
$query
->
within
),
...
...
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