39 Commits

Author SHA1 Message Date
eab7e4a21a Added $formName to Model::load(). 2013-12-10 18:17:24 -05:00
cb4a8c764c Refactored validators. 2013-12-06 14:19:17 -05:00
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
e4e376ba28 fixed test break. 2013-11-24 11:52:50 -05:00
858326c074 Fixed test break. 2013-11-24 11:51:55 -05:00
039ed688cf Fixes #1301: fixed scenario generation when there are "except" scenarios. 2013-11-24 10:23:22 -05:00
cb4504a10f refactored Model and redis AR to allow drop of RecordSchema 2013-11-22 18:44:22 +01:00
447bad5a12 Merge pull request #1184 from slavcodev/only-arrays-in-rules
Using only arrays in rules instead comma-separated string
2013-11-13 05:37:43 -08:00
539e233d9c massive improvement on class documentation
- added example code for application components
- added missing short description

[ci skip]
2013-11-13 01:16:21 +01:00
2adcd16e0d Update phpDoc 2013-11-12 19:32:11 +02:00
3ff8f10d11 Add array conversion on creating validator 2013-11-12 19:26:49 +02:00
1c2489a3dc Using only arrays in rules instead comma-separated string 2013-11-12 08:02:48 +02:00
b0b1c27c85 Fix phpDoc var tag format 2013-11-12 06:21:04 +02:00
9b95a81b0c Fixed the rest phpDocs [skip ci] 2013-11-12 03:13:37 +00:00
2a71c72d7c fixes #1066: Added ActiveForm::validate() and validateMultiple() 2013-10-24 21:24:30 -04:00
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
6f9785a293 fixes #995 2013-10-17 12:30:41 +04:00
1600889f4e added isAttributeActive to Model
consistent api for safe and required
2013-10-13 19:50:14 +02:00
6d25d3aef6 Added info about custom validator method signature to Model::rules phpdoc 2013-09-06 18:44:02 +04:00
b16bf0691a fixed typo 2013-09-05 23:37:15 -04:00
fccd8185b5 Enhanced the default implementation of Model::scenarios() to return all scenarios found in rules(). 2013-09-05 22:39:40 -04:00
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
1d622b65c3 fixed docs about error methods in Model 2013-08-28 15:26:00 +02:00
d1c41fe144 changed to trace from info. 2013-08-10 12:22:32 -04:00
4727ac8f1d Refactored the feature of transactional operations. 2013-08-07 22:22:23 -04:00
3d5388ff2b Reorganized captcha code. 2013-08-03 07:20:39 -04:00
ab27d16efd * Fixed Model::loadMultiple() when populating from formName()
* Documentation corrections for data population and quoting names in SQL query
2013-07-03 23:02:32 +03:00
452fe3e3b0 delay validation of scenario to validate(). 2013-07-01 19:39:56 -04:00
6c2cf9a268 Removed redundant code. 2013-07-01 07:14:28 -04:00
55daae4773 Fixes issue #589: validate the scenario name. 2013-06-30 18:45:05 -04:00
16dcd9701f Added Model::loadMultiple() and validateMultiple(). 2013-06-26 09:02:42 -04:00
9cf82b3ae1 Added Model::load(). Added Controller::refresh() and redirect(). 2013-06-26 08:34:27 -04:00
6c5dfc04f7 Added default value for error in Model::addError(). 2013-06-21 14:19:41 -04:00
c210de9d71 Merge pull request #556 from creocoder/php5.3-way-to-get-namespace
Model::formName() and ActiveRecord::getNamespacedClass() PHP 5.3 way
2013-06-19 05:13:52 -07:00
a788f505fb Model::formName() correct PHP 5.3 code 2013-06-19 15:01:30 +04:00
a951e1c8e1 Replaced Jsonable with Arrayable.
Added support for different response formats.
Support for error response in different formats.
2013-06-14 16:26:33 -04:00
29ac3aeea6 Added Jsonable support. 2013-06-07 11:02:26 -04:00
641e6ee7cf ported inflection methods from StringHelper to Inflector helper class 2013-05-22 08:34:17 +02:00
f72105166c reorganized the main repo to satisfy PSR-0. 2013-05-21 21:19:05 -04:00