Example #1
0
 public function initialize(IConfigParameter $configuration)
 {
     Project::setResponse($this);
     $this->_common_config($configuration);
     if (($defaultCharset = $configuration->get('DefaultCharset', null)) !== null) {
         $this->_charset = $defaultCharset;
         unset($defaultCharset);
     }
     if (($contentType = $configuration->get('ContentType', null)) !== null) {
         $this->_contentType = $contentType;
         unset($contentType);
     }
     if (($cacheExpire = $configuration->get('CacheExpire', null)) !== null) {
         $this->setCacheExpire($cacheExpire);
         unset($cacheExpire);
     }
     if (($cacheControl = $configuration->get('CacheControl', null)) !== null) {
         $this->setCacheControl($cacheControl);
         unset($cacheControl);
     }
     ob_start();
 }