Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'Zend/Image/Action/ActionAbstract.php';
- require_once 'Zend/Image/Point.php';
- // this is NOT ZF's class
- class Zend_Image_Action_ResizeProportionally extends Zend_Image_Action_ActionAbstract
- {
- const NAME = 'ResizeProportionally';
- protected $_colomn;
- protected $_rows;
- public function __construct(array $options = array())
- {
- foreach($options as $key => $value) {
- switch($key) {
- case 'colomn':
- $this->setColomn($value);
- break;
- case 'rows':
- $this->setRows($value);
- break;
- }
- }
- }
- public function setColomn($value)
- {
- $this->_colomn = $value;
- }
- public function getColomn()
- {
- return $this->_colomn;
- }
- public function setRows($value)
- {
- $this->_rows = $value;
- }
- public function getRows()
- {
- return $this->_rows;
- }
- public function getName()
- {
- return self::NAME;
- }
- }
Add Comment
Please, Sign In to add comment