mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
feature 2541 multisize
- admin GUI for choosing derivative parameters + persistence git-svn-id: http://piwigo.org/svn/trunk@12820 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user