Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
40cb98bb02
updated `@property` annotations
11 years ago
Alexander Makarov
c5ec3550de
Removed unused "use" statements
11 years ago
Qiang Xue
3f42d5826a
REST wip.
11 years ago
Qiang Xue
a8c7d36c02
Finished HATEOAS support.
11 years ago
Qiang Xue
39947be66b
rest WIP
11 years ago
Qiang Xue
9beba31fc0
rest WIP
11 years ago
Alexander Makarov
9c0572bff9
Fixed `$model->load($data)` returned `true` if `$data` and `formName` were empty
11 years ago
Alexander Makarov
d9d36006a7
Fixed default scenario constant in docs
11 years ago
Alexander Makarov
91444b20c8
#2248 : Renamed `yii\base\Model::DEFAULT_SCENARIO` to `yii\base\Model::SCENARIO_DEFAULT`
11 years ago
Qiang Xue
18d7224ac8
Fixes #2149 : Added `yii\base\DynamicModel` to support ad-hoc data validation
11 years ago
Qiang Xue
9aa006e5ea
Removed implementation of `Arrayable` from `yii\Object`
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
eab7e4a21a
Added $formName to Model::load().
11 years ago
Qiang Xue
cb4a8c764c
Refactored validators.
11 years ago
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
11 years ago
Qiang Xue
e4e376ba28
fixed test break.
11 years ago
Qiang Xue
858326c074
Fixed test break.
11 years ago
Qiang Xue
039ed688cf
Fixes #1301 : fixed scenario generation when there are "except" scenarios.
11 years ago
Carsten Brandt
cb4504a10f
refactored Model and redis AR to allow drop of RecordSchema
11 years ago
Carsten Brandt
539e233d9c
massive improvement on class documentation
...
- added example code for application components
- added missing short description
[ci skip]
11 years ago
slavcodev
2adcd16e0d
Update phpDoc
11 years ago
slavcodev
3ff8f10d11
Add array conversion on creating validator
11 years ago
slavcodev
1c2489a3dc
Using only arrays in rules instead comma-separated string
11 years ago
slavcodev
b0b1c27c85
Fix phpDoc var tag format
11 years ago
Taras Gudz
9b95a81b0c
Fixed the rest phpDocs [skip ci]
11 years ago
Qiang Xue
2a71c72d7c
fixes #1066 : Added ActiveForm::validate() and validateMultiple()
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Alexander Makarov
6f9785a293
fixes #995
11 years ago
Carsten Brandt
1600889f4e
added isAttributeActive to Model
...
consistent api for safe and required
11 years ago
Alexander Makarov
6d25d3aef6
Added info about custom validator method signature to Model::rules phpdoc
11 years ago
Qiang Xue
b16bf0691a
fixed typo
11 years ago
Qiang Xue
fccd8185b5
Enhanced the default implementation of Model::scenarios() to return all scenarios found in rules().
11 years ago
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
11 years ago
Carsten Brandt
1d622b65c3
fixed docs about error methods in Model
11 years ago
Qiang Xue
d1c41fe144
changed to trace from info.
11 years ago
Qiang Xue
4727ac8f1d
Refactored the feature of transactional operations.
11 years ago
Qiang Xue
3d5388ff2b
Reorganized captcha code.
11 years ago
Sw3rtas
ab27d16efd
* Fixed Model::loadMultiple() when populating from formName()
...
* Documentation corrections for data population and quoting names in SQL query
11 years ago
Qiang Xue
452fe3e3b0
delay validation of scenario to validate().
11 years ago
Qiang Xue
6c2cf9a268
Removed redundant code.
11 years ago
Qiang Xue
55daae4773
Fixes issue #589 : validate the scenario name.
11 years ago
Qiang Xue
16dcd9701f
Added Model::loadMultiple() and validateMultiple().
11 years ago
Qiang Xue
9cf82b3ae1
Added Model::load(). Added Controller::refresh() and redirect().
11 years ago
Qiang Xue
6c5dfc04f7
Added default value for error in Model::addError().
11 years ago
Alexander Kochetov
a788f505fb
Model::formName() correct PHP 5.3 code
11 years ago
Qiang Xue
a951e1c8e1
Replaced Jsonable with Arrayable.
...
Added support for different response formats.
Support for error response in different formats.
11 years ago
Qiang Xue
29ac3aeea6
Added Jsonable support.
11 years ago
Antonio Ramirez
641e6ee7cf
ported inflection methods from StringHelper to Inflector helper class
12 years ago