Ignore:
Timestamp:
Jan 1, 2012, 10:10:43 PM (12 years ago)
Author:
rvelices
Message:

feature 2541 multisize

  • admin GUI for choosing derivative parameters + persistence
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/derivative_params.inc.php

    r12797 r12820  
    279279
    280280/*how we generate a derivative image*/
    281 final class ImageParams
     281final class DerivativeParams
    282282{
    283283  public $type = IMG_CUSTOM;
     
    290290  }
    291291
     292  public function __sleep()
     293  {
     294      return array('last_mod_time', 'sizing');
     295  }
     296   
    292297  function add_url_tokens(&$tokens)
    293298  {
     
    298303  {
    299304    $sizing = SizingParams::from_url_tokens($tokens);
    300     $ret = new ImageParams($sizing);
     305    $ret = new DerivativeParams($sizing);
    301306    return $ret;
    302307  }
Note: See TracChangeset for help on using the changeset viewer.