<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/




 if (!defined('IN_CKFINDER')) exit; class CKFinder_Connector_Core_ImagesConfig { private $_maxWidth = 0; private $_maxHeight = 0; private $_quality = 80; function __construct($imagesNode) { if(isset($imagesNode['maxWidth'])) { $_maxWidth = intval($imagesNode['maxWidth']); if($_maxWidth>=0) { $this->_maxWidth = $_maxWidth; } } if(isset($imagesNode['maxHeight'])) { $_maxHeight = intval($imagesNode['maxHeight']); if($_maxHeight>=0) { $this->_maxHeight = $_maxHeight; } } if(isset($imagesNode['quality'])) { $_quality = intval($imagesNode['quality']); if($_quality>0 && $_quality<=100) { $this->_quality = $_quality; } } } public function getMaxWidth() { return $this->_maxWidth; } public function getMaxHeight() { return $this->_maxHeight; } public function getQuality() { return $this->_quality; } } 