…Z/kohana-core into feature/3363-refactored-num-bytes
…es #3314. Thanks solidsnake
Includes new unit tests Non API breaking change, fixes #3314
This reverts commit 1571778.
… from a $uri and $regex parameters. This makes it possible to use extend route compiling or use our compiler for 3rd party libraries.
This reverts commit 3deb9d5. Conflicts: classes/kohana/remote.php
…ea for this method and uneccessary complication. I had initially copied it from the Validate::decimal() code, but Num::bytes() isn't used in the same context.
…tion. This gives the developer using Upload::size() greater flexibility inlcuding specifying decimal file sizes. Comments have been updated to indicate new format capabilities.
…r you can extend the model class as model_database, for example, and add the database property back. Fixes #1926
…(assumes these are in bytes already). This is important for dealing with number from the php.ini, which do not use "B" for bytes, but instead just use a plain integer. Also, I have removed the switch statement in favor of a simple array in conjunction with Arr::get(). There was some code duplication that did not look pretty.
…") to bytes. Fixes #3363. This code is borrowed directly from the Upload::size() method.
… no longer belongs there
Conflicts: base.php classes/kohana/arr.php classes/kohana/core.php classes/kohana/remote.php