示例#1
0
文件: Image.php 项目: kbaranov/php-fw
 /**
  * Конструктор
  *
  * @param Cfg $config
  * @param string $type
  */
 function __construct($config, $type = 'pics')
 {
     if ($type == 'pics') {
         $this->pathImage = $config->getConstantPathStaticPics();
         $this->urlImage = $config->getConstantUrlStaticPics();
     }
     $this->pathWatermark = $config->getConstantPathStaticImg() . '/watermarks/';
 }