30 public $sourceSettings;
85 public $staticFileCacheControl;
90 private $_contentSource;
99 if (!$this->_contentSource) {
100 $settings = $this->sourceSettings[$this->sourceClass];
101 $settings[
'class'] = $this->sourceClass;
102 $this->_contentSource = Yii::createComponent($settings);
103 $this->_contentSource->init();
105 return $this->_contentSource;
131 'contentSource.components.*'
146 $defaultStaticCacheTime = -1;
151 $mimetype = CFileHelper::getMimeTypeByExtension($filename);
153 if (isset($this->staticFileCacheControl[$mimetype]) && is_numeric($this->staticFileCacheControl[$mimetype])) {
154 $defaultStaticCacheTime = $this->staticFileCacheControl[$mimetype];
158 return $defaultStaticCacheTime;