Commit Graph

4038 Commits

Author SHA1 Message Date
Carsten Brandt
f759ee1865 Elasticsearch WIP 2013-09-05 09:47:41 +02:00
Qiang Xue
b77ea4dcb0 Allow generator to define actions. 2013-09-04 21:03:10 -04:00
Carsten Brandt
8c753676db Exception about missing class in class file only when YII_DEBUG
See discussion about exceptions in autoloader here:
https://groups.google.com/forum/?fromgroups#!topic/php-fig/kRTVRSIJ0qE
2013-09-04 14:27:20 +02:00
Qiang Xue
7f4e02cb45 crud generator WIP 2013-09-03 19:36:23 -04:00
Qiang Xue
3f2e7fa604 crud wip 2013-09-02 20:25:39 -04:00
Carsten Brandt
38dab3490a Fixed type of db\Exception::$errorInfo
type is array in PHP documentation
2013-09-01 20:00:03 +02:00
Carsten Brandt
75391b7515 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  Removed Yii::import().
2013-09-01 19:58:24 +02:00
Carsten Brandt
9a4d7ff15b Exception message when getting write-only property 2013-09-01 19:57:54 +02:00
Carsten Brandt
7fa81949bf various documentation changes 2013-09-01 19:47:26 +02:00
Qiang Xue
ea10868824 Removed Yii::import(). 2013-09-01 10:26:59 -04:00
Carsten Brandt
7a6ce8251a simplified method check in Component::__call() 2013-09-01 14:40:15 +02:00
Qiang Xue
afd0472784 Fixes #837: turn private variables into public ones. 2013-08-31 21:29:46 -04:00
Qiang Xue
f87e4ce604 automatically hide model class input if needed. 2013-08-31 18:47:30 -04:00
Carsten Brandt
15a3ec2764 added unit tests and call to $behavior->hasMethod in Component 2013-08-31 23:27:52 +02:00
Carsten Brandt
7a55640670 Added hasMethod() to Component and Object class
this allows implementing __call() in behaviors

See this forum topic for details:
http://www.yiiframework.com/forum/index.php/topic/46629-invoke-behavior-method-through-php-magic-method-call-dosent-work/
2013-08-31 18:53:44 +02:00
Carsten Brandt
f83fcc553c fixed return value of Component::can*Property
return false, not null
2013-08-31 18:51:00 +02:00
Carsten Brandt
4d84e09479 typo in query builder, fixes #832 2013-08-30 16:57:11 +02:00
Carsten Brandt
0d91021f02 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  Fixes #829: loginRequired now responds with HTTP 403 in case of AJAX or loginUrl is not set (reverted from commit c2c12a9049)
  add missing return to module template
  Update module.php
  Fixes #829: loginRequired now responds with HTTP 403 in case of AJAX or loginUrl is not set
  gii form width adjustment.
  Make sure query cloning works as expected.
  Fixed test break.
  Fixes #828: refactored QueryBuilder::build()
2013-08-30 16:54:32 +02:00
Carsten Brandt
4b7f5a728a improved control over and handling of file and dir permissions
- rename FileHelper::mkdir for API consistency
- changed default permission for directories to 775 instead of 777
- added some properties to classes that deal with files to allow control
  over directory permissions.
2013-08-30 16:52:33 +02:00
Alexander Makarov
e1a6aacba8 Fixes #829: loginRequired now responds with HTTP 403 in case of AJAX or loginUrl is not set (reverted from commit c2c12a9049) 2013-08-30 18:23:09 +04:00
Philipp Frenzel
e94b455535 add missing return to module template
I think according to the framework it should return the render and otherwise the browser will stay blank...
2013-08-30 15:05:00 +02:00
Philipp Frenzel
70d263d66e Update module.php
module should extend \yii\base\Module as \yii\web\Module doesn't exist...

If this is outdated, then pls just ignore it!
2013-08-30 12:23:10 +02:00
Alexander Makarov
c2c12a9049 Fixes #829: loginRequired now responds with HTTP 403 in case of AJAX or loginUrl is not set 2013-08-30 13:44:22 +04:00
Qiang Xue
2ecdfd6225 gii form width adjustment. 2013-08-29 17:20:04 -04:00
Qiang Xue
cb60fa5ddd Make sure query cloning works as expected. 2013-08-29 17:19:22 -04:00
Qiang Xue
6dba4da3ed Fixes #828: refactored QueryBuilder::build() 2013-08-29 16:47:48 -04:00
Carsten Brandt
147558ea19 added some class documentation 2013-08-28 19:33:06 +02:00
Carsten Brandt
91c16782ef finalized PhpDocController
- cleanup API and usage, add documetation link
- introduced @property feature in getter or setter which has precedence
  over @return or @param tag if present
2013-08-28 18:58:59 +02:00
Carsten Brandt
1d622b65c3 fixed docs about error methods in Model 2013-08-28 15:26:00 +02:00
Carsten Brandt
c582e589d2 added note about differing property types 2013-08-28 15:18:13 +02:00
Carsten Brandt
ca69ef09d4 update of @property annotations 2013-08-28 14:59:52 +02:00
Carsten Brandt
c5b42910a9 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  refactored code.
2013-08-28 14:16:37 +02:00
Carsten Brandt
bdb77f33ba updated @property annotations of many classes 2013-08-28 14:16:13 +02:00
Qiang Xue
172d92958f refactored code. 2013-08-28 06:46:43 -04:00
Carsten Brandt
14181b2be0 Update PHPDoc command to update classfiles automatically 2013-08-28 11:36:25 +02:00
Carsten Brandt
427c373ba6 implement Cache::exists() for various cache backends
fixes #811
2013-08-27 17:54:38 +02:00
Carsten Brandt
3b91801a35 cherry picked RedisCache and redis\Connection from redis WIP branch
commit in redis branch was:
0cd65e7496
2013-08-27 17:29:38 +02:00
Carsten Brandt
0e2ac86566 added Cache::exists() to check key existance in cache 2013-08-27 17:24:09 +02:00
Qiang Xue
d34f8486ab Fixes #811. 2013-08-27 08:13:20 -04:00
Qiang Xue
f941bfee60 Fixes #820. 2013-08-27 08:09:15 -04:00
Qiang Xue
62b4a645f1 crud generator WIP 2013-08-27 08:08:57 -04:00
Carsten Brandt
04a0ca5aab revert accidental change in db ActiveRecord 2013-08-26 19:49:39 +02:00
Qiang Xue
f48508e341 Merge pull request #809 from cebe/autoconfig-sorting
Gridview and DataProviders: Autoconfig sorting
2013-08-26 10:32:08 -07:00
Carsten Brandt
e3df19d984 Redis AR WIP
- introduced RecordSchema class for schema definition
2013-08-26 19:29:55 +02:00
MaximAL
3b8aff5a44 Blowfish cost must be in range 4…31, not 4…30
`generateSalt` parameter validation fix.
2013-08-26 20:49:23 +04:00
Carsten Brandt
82dc3b124c Merge branch 'master' into redis
* master: (131 commits)
  css fix.
  Finished model generator.
  more tests for FileHelper
  Added note about theme asset bundle to bootstrap widgets guide
  fixed typos in ArrayHelperBase phpdoc
  More tests for ArrayHelper and Inflector
  Fixed typo and code style
  Fixes #21: implemented jQueryUI Slider
  Fixes #790: added visible for Nav and Dropdown
  finished rule generation for model generator.
  bug fix of form generator.
  minor fixes of debugger.
  Added SafeValidator.
  fix dataProvider getSort()
  cleanup MemCache timeout API after #804
  Added failureCallback, reduced timeouts to 1s
  Mentioning that timeoutms is available in memcache only.
  set default format for gridview to text
  Removed extra line
  Added timeoutms parameter in MemCache
  ...

Conflicts:
	tests/unit/data/config.php
2013-08-26 18:10:06 +02:00
Carsten Brandt
53b4ed3d7f Moved label for Sort::link() to html options 2013-08-26 18:02:44 +02:00
Carsten Brandt
39c002e83c Refactored DataColumn::renderHeaderCellContent() 2013-08-26 15:23:49 +02:00
Carsten Brandt
155749e18d typos in doc 2013-08-26 15:23:22 +02:00
Carsten Brandt
9847472144 introduced DataColumn::label property 2013-08-26 15:13:16 +02:00