Implements an fileSize option-type for easier handling of file sizes.
authorTim Düsterhus <timwolla@arcor.de>
Wed, 7 Dec 2011 16:21:23 +0000 (17:21 +0100)
committerTim Düsterhus <timwolla@arcor.de>
Wed, 7 Dec 2011 16:21:23 +0000 (17:21 +0100)
commit0885640cef19c995e561a0900d1ae262b47ff864
tree847ac415be92ce548c2625d5100886f2477d96fa
parentf3153b968f140da03cec607ae64a7e5b0d5ebc2e
Implements an fileSize option-type for easier handling of file sizes.

It transparently converts inputs like 42 kB or 1337 MiB to Integers to
save in the database and converts the back to strings in the ACP.
wcfsetup/install/files/lib/system/option/FileSizeOptionType.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/option/user/group/FileSizeUserGroupOptionType.class.php [new file with mode: 0644]