1d4eb072d3
readded comments to phpmd rules #13139
2016-12-05 22:01:05 +01:00
5092c9666d
Code Climate PHPMD settings ( #13139 )
...
* codeclimate phpmd rulesets
* PHPMD ruleset
* phpmd_ruleset moved
* Delete phpmd_ruleset.xml
* ruleset moved
2016-12-05 21:52:39 +01:00
cdaf5c86ef
Merge branch 'arogachev-11163-client-validate-options'
2016-12-05 22:34:04 +02:00
76e253e140
yii\validators\Validator - added separate methods for client-side validation options
...
Closes #11163
2016-12-05 22:33:49 +02:00
0261a5498f
Simplified ListViewTest
2016-12-05 22:27:38 +02:00
25eafa560e
Merge branch '11627-document-and-test-empty-listview' of git://github.com/mytskine/yii2 into mytskine-11627-document-and-test-empty-listview
...
Conflicts:
framework/widgets/BaseListView.php
tests/framework/widgets/ListViewTest.php
2016-12-05 22:19:02 +02:00
7dac3ed1ca
Kirkhansen 9053 add radio button column ( #13126 )
...
* Added the RadioButtonColumn class and updated the changelog.
* - several enhancements:
- unit tests added
- changelog fixed
* Update CHANGELOG.md
* small markdown fixes
* fix travis: custom ID
2016-12-05 13:58:11 +01:00
eb6ea11931
Fix docs about table prefixes ( #13127 )
...
* fixes #8354 to improve docs on table prefixes
* accents
* patched silverfires comments
* Update db-active-record.md
improved wording and added link about quoting.
* fix link to DAO guide
2016-12-05 13:57:07 +01:00
9c1f892ecf
Update concept-di-container.md
...
put code block into the list
2016-12-05 12:57:33 +01:00
72532fe910
Fixed code formatting in concept-di-container.md [skip-ci] ( #13136 )
2016-12-05 13:54:01 +03:00
d7436dea83
fixed urls in bash/zsh installation instructions
2016-12-04 13:17:38 +01:00
496310e7e3
fixed typo in security guide about namespace
...
backslash vs. slash
fixes #13132
2016-12-04 02:50:22 +01:00
a056281fa0
Attempt to make tests pass on travis environment
2016-12-04 00:58:40 +03:00
ce9e6fd6f9
disable codeclimate complaining about else statements
...
encouraging early return is good, but this check complains about every
single else statement in the code.
see https://github.com/yiisoft/yii2/pull/13126#issuecomment-264653343
2016-12-03 19:43:39 +01:00
c5a88ae0b5
Update security-authorization.md
...
fix namespace to fix #13125
2016-12-03 10:31:29 +01:00
35998449eb
Add yii\filters\HostControl::$fallbackHostInfo ( #13117 )
2016-12-03 08:25:39 +02:00
7fead4f011
Merge pull request #12959 from yiisoft/bash-completion
...
Added bash completion file for ./yii commands
2016-12-03 01:25:06 +01:00
6f4dd06183
Merge pull request #12675 from yiisoft/unknown-command
...
Alternative implementation for Unknown command suggestions
2016-12-03 01:20:14 +01:00
187c44e43e
implement suggestion for unknown command in console application
...
suggestion is based on two principles:
- first suggest commands the begin with the unknown name, to suggest
commands after accidentally hitting enter
- second find similar commands by computing the levenshtein distance
which is a measurement on how many changes need to be made to convert
one string into another. This is perfect for finding typos.
2016-12-03 01:17:50 +01:00
1d3495d84d
Alternative implementation for Unknown command suggestions
...
alternative implementation for #12661 , proof of concept, does not
include filtering by similarity yet.
issue #12659
2016-12-03 01:13:28 +01:00
1454d3fa37
Updated CHANGELOG
...
fixed typo
2016-12-03 00:43:14 +01:00
3e6074f32d
bash completion for ./yii command options
2016-12-03 00:36:40 +01:00
4454d05410
Added ZSH completion, moved scripts to a separate directory
2016-12-03 00:36:40 +01:00
beb140446b
added test for helpcontroller list action
2016-12-03 00:36:40 +01:00
05b17ebb65
Added bash completion file for ./yii commands
...
This allows to auto-complete commands available by the `./yii`
executable on the bash by expanding the first argument with the TAB key.
E.g. Typing `./yii [TAB]` will list all commands. `./yii mig[TAB]` will
auto-complete to `./yii migrate` and tab after that will list all
migration sub-commands(actions).
fixes #475
2016-12-03 00:36:40 +01:00
612afdbc66
Merge pull request #13111 from yiisoft/js-tests
...
Making JS tests ready to go into master.
2016-12-02 22:35:35 +01:00
954c771fdb
Code cleanup ( #13113 )
...
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
2016-12-03 00:15:53 +03:00
9c0e94efea
Update CHANGELOG.md
...
typo
2016-12-02 21:53:08 +01:00
f9ee486fd7
Merge pull request #13116 from yiisoft/aria-required-and-aria-invalid-input-attributes
...
Aria required and aria invalid input attributes
2016-12-02 23:43:34 +03:00
e1b0cb4343
Merge branch 'master' into aria-required-and-aria-invalid-input-attributes
2016-12-02 23:38:55 +03:00
faea888652
update codeclimate rules to match yii style
...
follow up to #13121
2016-12-02 16:15:17 +01:00
fc0752f388
Disable Controversial/CamelCasePropertyName codeclimate check ( #13121 )
...
* Disable `Controversial/CamelCasePropertyName` codeclimate check
* Fix indentation
2016-12-02 15:56:49 +01:00
0b9feb28e5
More renaming, removed unnecessary code
2016-12-02 16:59:01 +03:00
560332ed42
Merge branch 'module-di-config'
2016-12-02 15:08:46 +02:00
437825be70
Implemented Container::setDependencies(), Container::setDefinitions
...
Closes #11758
Closes #13029
2016-12-02 15:08:24 +02:00
c17766181f
Added QueryInterface::emulateExecution()
...
Added `QueryInterface::emulateExecution()`, which allows preventing of
the actual query execution.
This allows to cancel `DataProvider` preventing search query execution
in case search model is invalid:
``` php
public function search($params)
{
$query = Item::find();
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
$query->where('0=1');
$query->emulateExecution(); // No SQL execution will be done
return $dataProvider;
}
```
This also fix unecessary query in case of `via()` usage. See #12390 .
fixes #12390
fixes #6373
close #12708
2016-12-02 13:28:51 +01:00
de4f518b94
More renaming
2016-12-02 14:38:44 +03:00
edfbab4a6b
More renaming and formatting fix
2016-12-02 14:37:13 +03:00
dc294ba56f
Renamed variables, changed logic of turning client updates on
2016-12-02 14:30:13 +03:00
b25ebaa782
Fixed formatting
2016-12-02 13:11:34 +03:00
9807b2e1a1
Follow-up to 65c2ade. Smarter fix of #13118
2016-12-02 10:09:08 +02:00
fec8ae2e1e
removed @since
2016-12-02 09:05:10 +01:00
65c2ade8ed
Fixed handleAction() function in yii.js to handle attribute data-pjax=0 as disabled PJAX
...
Fixes #13118
2016-12-02 10:04:59 +02:00
ed8acc8e03
#12399 adjustments
2016-12-02 01:44:57 +03:00
fb779e3ec6
Fixes #12399 : Added ActiveField::addAriaAttributes property for aria-required and aria-invalid attributes rendering
2016-12-02 01:44:34 +03:00
1141fc81a7
Fixes #12735 : Fixed yii\console\controllers\MigrateController creating multiple primary keys for field bigPrimaryKey:unsigned
2016-12-02 01:03:24 +03:00
deea3cf798
Fixes #12854 : Added RangeNotSatisfiableHttpException to cover HTTP error 416 file request exceptions
2016-12-02 00:51:49 +03:00
5784dd1dbf
fix travis
2016-12-01 22:48:40 +01:00
242d850d6c
Shorter variable name, different approach to casting
2016-12-02 00:40:10 +03:00
b17dfa03a2
Fixes #10488 : Fixed incorrect behavior of yii\validation\NumberValidator when used with locales where decimal separator is comma
2016-12-02 00:04:55 +03:00