Commit Graph

882 Commits

Author SHA1 Message Date
Qiang Xue
e683bd3ddb CRUD WIP 2013-09-08 08:05:49 -04:00
Qiang Xue
4edd842558 Added LinkSorter::attributes. 2013-09-07 23:43:47 -04:00
Qiang Xue
02e3b451be Removed sorter from the default display of ListView. 2013-09-07 23:43:26 -04:00
Qiang Xue
263dbd264d Changed default pagination size to 20. 2013-09-07 23:37:36 -04:00
Qiang Xue
a12f8da1ff Fixed debugger style. 2013-09-07 23:37:15 -04:00
Alexander Makarov
409500000a Validation reference, validators phpdoc fixes 2013-09-08 02:26:35 +04:00
Qiang Xue
a9991d4e91 CRUD WIP 2013-09-07 08:18:41 -04:00
Alexander Makarov
6d25d3aef6 Added info about custom validator method signature to Model::rules phpdoc 2013-09-06 18:44:02 +04:00
Carsten Brandt
8ca17bbfbc Merge pull request #847 from yiisoft/cubrid
[WIP] Cubrid db support
2013-09-06 07:14:41 -07:00
Carsten Brandt
23b858a2cc removed comments 2013-09-06 15:51:30 +02:00
Carsten Brandt
164c70eebc Add support for composite FK to cubrid 2013-09-06 15:32:33 +02:00
Carsten Brandt
8abeed03bd added SchemaTest 2013-09-06 15:03:57 +02:00
Qiang Xue
95c2674609 hint fix. 2013-09-06 08:40:44 -04:00
Qiang Xue
4e1ab6e5a5 Fixes #848: Added hidden field for Html::activeFileInput(). 2013-09-06 08:40:16 -04:00
Carsten Brandt
e996f3dfd5 Workaround for broken PDO::quote() in CUBRID 9.1.0
http://jira.cubrid.org/browse/APIS-658
2013-09-06 13:53:33 +02:00
Carsten Brandt
791f9d3f4e better use int for boolean representation
bit has special syntax for storing and retreiving so we'd need a
converter for that.
Storing 1 bit will result in one byte left padded on the disc so the
result of a query for boolean 0 will be 0x00 and for boolean 1 will be
0x80.
2013-09-06 13:21:35 +02:00
Carsten Brandt
c6ef7ec9d5 moved Command::getPdoType() to Schema
this allows different implementation in different DBMS

CUBRID does not supprt PDO::TYPE_BOOL, so we use STRING here which will
be casted by the DBMS
2013-09-06 11:40:29 +02:00
Qiang Xue
b16bf0691a fixed typo 2013-09-05 23:37:15 -04:00
Qiang Xue
fccd8185b5 Enhanced the default implementation of Model::scenarios() to return all scenarios found in rules(). 2013-09-05 22:39:40 -04:00
Carsten Brandt
2387d00341 CUBRID added exception about wrong implementation of quoteValue 2013-09-05 18:22:24 +02:00
Carsten Brandt
57a91c842a CUBRID Query builder 2013-09-05 17:30:18 +02:00
Carsten Brandt
f4fb2d94ef finalizing cubrid Schema 2013-09-05 17:29:47 +02:00
Carsten Brandt
be67559fe1 added CUBIRD DB Schema class 2013-09-05 16:49:11 +02:00
Carsten Brandt
42a9d13bc6 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  doc fix.
2013-09-05 16:47:34 +02:00
Carsten Brandt
267f2d7849 fixed docs in db Schema classes 2013-09-05 16:47:05 +02:00
Qiang Xue
326e98a41c doc fix. 2013-09-05 08:31:04 -04:00
Carsten Brandt
8976b7cbd8 moved MSSQL specific property to mssql TableSchema 2013-09-05 12:48:52 +02:00
Carsten Brandt
d4995ddc57 updated php doc 2013-09-05 12:40:16 +02:00
Carsten Brandt
c306fccd46 fixed FileValidator after UploadedFile refactoring
fixes #845
2013-09-05 12:36:38 +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