Commit Graph

41 Commits

Author SHA1 Message Date
Steffen Dietz
610689a710 updated upgrade instructions, minor code style upgrade 2012-05-15 10:29:28 +02:00
CeBe
b0d51705aa small doc enhancements
ensure clearness
2012-05-01 00:03:57 +02:00
Carsten Brandt
a098f97b0e code style and small documentation fixes
due to comments in a6d8222 4fd934d
2012-04-28 00:32:09 +02:00
Carsten Brandt
a6d8222df1 for consistency: alwas return integer exit code
the default implementation of CConsoleCommand now always returns integer
exit code.
If for some reason someone does not want application to exit he could
overide run() method to return null or some other non integer value.
2012-04-27 22:28:01 +02:00
Carsten Brandt
86b75f31f1 Allowed returning exit code in console actions
Allowed returning integer values as application exit code in
CConsoleCommand actions.
Application will now exit with the given integer values as exit code.
This is better than just exit(1) because onAfterAction event is called
And you can use the return value when doing
Yii::app()->getCommandRunner()->run(...) to run a specific command
inside an other command.
2012-04-27 19:24:27 +02:00
Carsten Brandt
0f3ab344ac fixed typos and whitespace
documentation of stopCommand was just the other way round
2012-04-27 19:04:15 +02:00
Musterknabe
3c7628fcf3 Added @since doc 2012-04-13 23:30:31 +02:00
Musterknabe
63dd38dcae added default value to CConsoleCommand::confirm() 2012-04-13 23:21:01 +02:00
Damián Nohales
95ff55d65a Strict comparission on CConsoleCommand::prompt.
This avoid the return of default value when user writes '0'.
2012-03-06 22:22:00 -03:00
Damián Nohales
42ff7a20e3 Some changelog, code and documentation fixes on CConsoleCommand::prompt 2012-03-06 17:10:32 -03:00
Damián Nohales
e70404b32c Added changelog and fixed comment for CConsoleCommand::prompt. 2012-03-06 12:14:16 -03:00
Damián Nohales
94e36e6ab8 Support for default value on CConsoleCommand::prompt. 2012-03-05 23:27:45 -03:00
Yiivgeny
1a924950c9 2012-02-19 04:32:43 +03:00
Yiivgeny
aaf660062a Adding CConsoleCommand behaviors support 2012-02-18 15:21:38 +03:00
Yiivgeny
67a8d51738 Compatible fixes and better naming 2012-02-17 22:41:15 +03:00
Yiivgeny
cc531e47ef Adding full-featured events CConsoleCommand::onBeforeAction & CConsoleCommand::onAfterAction 2012-02-16 19:58:33 +03:00
Dariusz Górecki
e5806c0c70 Make WebApp command ignore .gitignore files 2012-02-16 16:08:52 +01:00
mdomba
6027064a36 added rules to CConsoleCommand->pluralize(), too 2012-01-24 11:42:59 +00:00
alexander.makarow
d63336d148 added @since to CConsoleCommand 2011-12-20 20:24:18 +00:00
alexander.makarow
dcd17e7741 (Fixes issue 2872) Added CConsoleCommand::prompt() that asks for input and CConsoleCommand::confirm() that asks for confirmation 2011-12-06 22:33:37 +00:00
alexander.makarow
646cbb2b9a Documented component accessors with @property for significantly better IDE autocomplete 2011-10-25 00:01:09 +00:00
alexander.makarow
0050917775 reverted 2498 fix 2011-06-15 14:21:12 +00:00
alexander.makarow
20d3489b32 (Fixes issue 2498) When no value is returned from before* event-methods, it now always behaves the same way as when true was returned 2011-06-13 16:02:22 +00:00
qiang.xue
f08b07d82d (Fixes issue 2163) 2011-03-02 17:51:26 +00:00
alexander.makarow
2ab981b454 reverted method chaining support 2011-02-24 16:42:44 +00:00
alexander.makarow
75041e8620 Chained calls are now possible for most framework class setters and methods not returning a value 2011-02-23 20:20:28 +00:00
qiang.xue
4be0af6917 changed copyright year. 2011-01-01 19:31:13 +00:00
qiang.xue
028bbeefd1 * Added support for using anonymous parameters and global options in console commands 2010-12-02 04:30:18 +00:00
qiang.xue
90acdc4a08 Added CConsoleCommand::init(). 2010-11-28 23:07:10 +00:00
qiang.xue
8b6e8d016c further improvement to console command actions. 2010-10-28 18:08:46 +00:00
qiang.xue
1e2e3e27d4 * Added support for console command actions and parameter binding 2010-10-28 17:57:02 +00:00
mdomba
72b974560b Updated PHPDoc @param parameter names 2010-09-23 13:28:52 +00:00
qiang.xue
54a24afe66 merge from 1.0 2010-02-20 03:22:45 +00:00
qiang.xue
eb54ba7407 modified copyright info. 2010-01-07 21:02:00 +00:00
qiang.xue
40aa75f791 Implemented test generation for crud command. 2009-06-19 20:41:53 +00:00
qiang.xue
84da51853f 2009-06-19 18:40:14 +00:00
qiang.xue
20bf28469f merge from 1.0. 2008-12-30 23:14:31 +00:00
qiang.xue
49e07d391b merge from 1.0 branch. 2008-12-16 20:18:30 +00:00
qiang.xue
55bdd955a5 removed carriage returns from files. 2008-10-13 21:26:19 +00:00
qiang.xue
7311114bbb 2008-10-09 22:07:12 +00:00
qiang.xue
662798d8a5 2008-09-28 12:03:53 +00:00