Carsten Brandt
1e75427393
updated classmap and phpdoc
2014-03-24 23:26:30 +01:00
Qiang Xue
8e11ad0360
refactored code to use Instance::ensure()
2014-03-18 12:31:27 -04:00
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
2014-03-17 23:57:01 -04:00
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
Carsten Brandt
1b7e1cd027
Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
...
* 'feature' of https://github.com/mongosoft/yii2 :
returned back formatting language files
code style. WHILE
code style. FOR
code style. FOREACH
code style. operator IF
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
short echo tags
short array syntax
Conflicts:
extensions/apidoc/commands/RenderController.php
extensions/apidoc/models/BaseDoc.php
extensions/apidoc/models/Context.php
extensions/apidoc/templates/bootstrap/Renderer.php
extensions/apidoc/templates/bootstrap/layouts/guide.php
extensions/apidoc/templates/bootstrap/layouts/main.php
extensions/apidoc/templates/bootstrap/views/index.php
extensions/apidoc/templates/html/Renderer.php
extensions/apidoc/templates/offline/views/index.php
extensions/apidoc/templates/offline/views/offline.php
extensions/apidoc/templates/online/views/index.php
extensions/elasticsearch/Connection.php
extensions/redis/ActiveQuery.php
framework/base/ErrorException.php
framework/helpers/BaseFileHelper.php
tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
Carsten Brandt
668dacbab6
Merge pull request #2622 branch 'ext-codestyle-fix' of https://github.com/AlexGx/yii2 into code-style
...
* 'ext-codestyle-fix' of https://github.com/AlexGx/yii2 :
fix php5.4 array syntax
many phpcs fixes
fix phpDoc LuaScriptBuilder build @throws
Conflicts:
extensions/apidoc/commands/RenderController.php
extensions/apidoc/models/BaseDoc.php
extensions/apidoc/templates/BaseRenderer.php
extensions/apidoc/templates/bootstrap/Renderer.php
extensions/apidoc/templates/bootstrap/layouts/guide.php
extensions/apidoc/templates/bootstrap/layouts/main.php
extensions/apidoc/templates/html/Renderer.php
extensions/apidoc/templates/offline/Renderer.php
extensions/apidoc/templates/offline/assets/AssetBundle.php
extensions/apidoc/templates/offline/views/index.php
2014-03-07 21:34:23 +01:00
Carsten Brandt
e2aacad8aa
Added links to PHP.net to apidoc
2014-03-07 19:41:43 +01:00
AlexGx
1982efbdfe
many phpcs fixes
2014-03-05 00:22:55 +02:00
Alexander Mohorev
95ea1c20bb
code style. FOREACH
2014-03-03 21:47:47 +03:00
Alexander Makarov
a7a1bd8da0
Merge pull request #2578 from schmunk42/feature/update-composer-keywords
...
replaced keyword "yii" with "yii2" in composer.json files (fixes #2557 )
2014-03-03 21:39:41 +03:00
Alexander Mohorev
c7e8d8b900
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
2014-03-03 20:50:44 +03:00
Carsten Brandt
db8685ccad
fixed a bunch of typos and errors
2014-02-27 23:18:27 +01:00
Tobias Munk
825a71c6df
replaced keyword "yii" with "yii2" in composer.json files ( fixes #2557 )
2014-02-27 17:37:08 +01:00
Carsten Brandt
505762d49c
updated docs about active relation
2014-02-21 18:53:28 +01:00
Carsten Brandt
cb8237c1b7
merged ActiveQueryInterface and ActiveRelatioInterface
2014-02-20 16:15:10 +01:00
Carsten Brandt
e76fb238d4
added missing use statement
2014-02-20 13:53:24 +01:00
Carsten Brandt
3b40d44909
made createQuery() config param optional
2014-02-20 05:54:47 +01:00
Carsten Brandt
1708a36d95
WIP merge ActiveRelation into ActiveQuery
...
allow extending only one class to add scopes, fixes #2146
TODO:
- [ ] adjust guide docs
- [ ] adjust README files of extensions
- [ ] finish work and fix test breaks
2014-02-20 05:53:36 +01:00
Qiang Xue
bea9e3fc06
Fixes #1645 : Added support for nested DB transactions
2014-02-15 22:16:09 -05:00
Qiang Xue
25b466d278
Fixes #2083 : make sure keys of object type work with ActionColumn, GridView, etc.
2014-02-13 12:04:37 -05:00
Paul Klimov
be2b76d40f
Method "callSnippetsInternal" for the Sphinx Query extracted
2014-02-12 23:20:12 +02:00
Qiang Xue
f59598bb8b
Added support for building SQLs with sub-queries
2014-02-11 23:23:02 -05:00
Alexander Makarov
dd26d39dd8
Removed unused namespace imports
2014-02-07 13:26:00 +04:00
Alexander Makarov
0e8063302d
Removed unused variable
2014-02-06 00:48:48 +04:00
Carsten Brandt
4a9f47bedd
refactored sphinx and db AR to call parent implementation of populateRecord()
2014-02-03 14:12:03 +01:00
Carsten Brandt
16e1aff41b
renamed ActiveRecord::create() to populateRecord()
...
- refactored elasticsearch AR to make type and index available in
instantiate(), issue #1313
fixes #2281
2014-02-03 14:07:12 +01:00
Qiang Xue
8e11629a65
Fixes #2160 : SphinxQL does not support OFFSET
...
Improved `QueryBuilder::buildLimit()` to support big numbers
2014-01-29 22:42:56 -05:00
Qiang Xue
f6dd6fa2e9
Renamed ActiveRecordInterface::createActiveRelation() to createRelation()
2014-01-24 14:46:53 -05:00
Qiang Xue
5b3fa9f5ba
Fixes #2091 : QueryBuilder::buildInCondition() fails to handle array not starting with index 0
2014-01-21 08:52:36 -05:00
Carsten Brandt
796284cba1
reworked fix for #1993
2014-01-16 11:05:26 +01:00
Carsten Brandt
81d23332df
afterFind event in AR is now called after relations have been populated
...
fixes #1993
2014-01-16 10:28:58 +01:00
Qiang Xue
da9d544c54
psr-4 change.
2014-01-10 21:06:25 -05:00
Qiang Xue
41685a2409
moved extensions under yii.
2013-12-09 23:51:49 -05:00
Alexander Makarov
26767735dc
Renamed byte methods, moved path methods back to StringHelper
2013-12-04 14:26:47 +01:00
Alexander Makarov
5f2a612c78
Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods
2013-12-04 09:48:01 +01:00
Paul Klimov
3db7a07534
Method "yii\sphinx\ActiveRecord::find()" removed in favour of "BaseActiveRecord::find()".
2013-12-03 11:17:51 +02:00
Paul Klimov
c9624eee55
Sphinx Active Record refactored to extend "BaseActiveRecord".
2013-12-03 11:09:45 +02:00
Carsten Brandt
d52cf5a222
Fixed sphinx composer.json
2013-12-01 05:43:40 +01:00
Qiang Xue
73442fb12a
doc fix.
2013-11-30 15:51:20 -05:00
Qiang Xue
8245e574d9
fixed readme
2013-11-29 23:59:09 -05:00
Qiang Xue
a5e3c00d75
replaced inheritdoc tags.
2013-11-29 12:49:07 -05:00
Paul Klimov
3dbb3d40dd
Sphinx unit tests fixed.
2013-11-28 11:34:13 +02:00
Carsten Brandt
83527e85ca
made Model::attributes() non static again
...
- allows to have dynamic definition of attributes depended on the
instance
- there was no real need for it to be static. Places that used it static
have been refactored.
fixes #1318
2013-11-28 01:01:48 +01:00
Carsten Brandt
16239c2395
reverted wrong change in sphinx
2013-11-27 22:31:44 +01:00
Panagiotis Moustafellos
21014b4064
swapped docs and Exception to type InvalidParamException
2013-11-26 04:56:07 +02:00
Qiang Xue
16739ec3f0
Merge pull request #1321 from pmoust/inheritdoc-fix
...
fixed PhpDoc by swapping to {@inheritdoc}
2013-11-25 18:29:59 -08:00
Panagiotis Moustafellos
2ff8ac3d61
fixed PhpDoc by swapping to {@inheritdoc}
2013-11-26 04:24:20 +02:00
Carsten Brandt
324e10694d
updated sphinx active record with changes from DB AR
2013-11-26 01:48:52 +01:00
Carsten Brandt
e2ff98ab53
fixed broken sphinx AR::attributes() declaration
...
Model::attributes() has been made static
2013-11-25 15:34:26 +01:00
Carsten Brandt
8be4f3778a
updated properties of extensions
2013-11-25 15:33:59 +01:00