diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-01-01 21:10:43 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-01-01 21:10:43 +0000 |
commit | 95a78ca0d3412ffa1d54e13c9caab7bc8b6b0e13 (patch) | |
tree | e6fe20dc51fbd1efefbd0d11aa9d0893b470891e /include/derivative_params.inc.php | |
parent | ec82ebbdccf9340d9168d8c061e94e52100aa8f1 (diff) |
feature 2541 multisize
- admin GUI for choosing derivative parameters + persistence
git-svn-id: http://piwigo.org/svn/trunk@12820 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/derivative_params.inc.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/derivative_params.inc.php b/include/derivative_params.inc.php index a84c0f854..42bdfb7d5 100644 --- a/include/derivative_params.inc.php +++ b/include/derivative_params.inc.php @@ -278,7 +278,7 @@ final class SizingParams /*how we generate a derivative image*/ -final class ImageParams +final class DerivativeParams { public $type = IMG_CUSTOM; public $last_mod_time = 0; // used for non-custom images to regenerate the cached files @@ -289,6 +289,11 @@ final class ImageParams $this->sizing = $sizing; } + public function __sleep() + { + return array('last_mod_time', 'sizing'); + } + function add_url_tokens(&$tokens) { $this->sizing->add_url_tokens($tokens); @@ -297,7 +302,7 @@ final class ImageParams static function from_url_tokens($tokens) { $sizing = SizingParams::from_url_tokens($tokens); - $ret = new ImageParams($sizing); + $ret = new DerivativeParams($sizing); return $ret; } |