ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 6846


Ignore:
Timestamp:
Apr 30, 2008, 2:36:27 AM (11 years ago)
Author:
ebihara
Message:

r6884で引き上げたresize_img()メソッドが参照している元クラスのプロパティを新クラスにコピーし、コピーしたプロパティのセッターを追加

Location:
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img.php

    r6845 r6846  
    224224            if ($c_image['type']) {
    225225                $this->source_format = $c_image['type'];
     226                $this->generator->setSourceFormat($this->source_format);
    226227            }
    227228            return base64_decode($c_image['bin']);
     
    347348        $pieces = explode('.', $this->source_filename);
    348349        $this->source_format = $this->check_format(array_pop($pieces));
     350        $this->generator->setSourceFormat($this->source_format);
    349351    }
    350352
     
    361363            $this->output_format = $this->check_format($this->source_format);
    362364        }
     365        $this->generator->setOutputFormat($this->output_format);
    363366    }
    364367
  • OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img/Generator.php

    r6844 r6846  
    1313class OpenPNE_Img_Generator
    1414{
     15    var $source_format;
     16    var $output_format;
     17
    1518    function OpenPNE_Img_Generator()
    1619    {
     
    9194        return $output_gdimg;
    9295    }
     96
     97    function setOutputFormat($output_format)
     98    {
     99        $this->output_format = $output_format;
     100    }
     101
     102    function setSourceFormat($source_format)
     103    {
     104        $this->source_format = $source_format;
     105    }
    93106}
    94107
Note: See TracChangeset for help on using the changeset viewer.