src/wcmf/lib/config/impl/InifileConfiguration.php
protected function serialize() {
    if (!$this->isModified() && ($cacheFile = $this->getSerializeFilename($this->addedFiles))) {
      if (self::$logger->isDebugEnabled()) {
        self::$logger->debug("Serialize configuration: ".join(',', $this->addedFiles)." to file: ".$cacheFile);
      }
      $this->fileUtil->mkdirRec(dirname($cacheFile));
      if ($fh = @fopen($cacheFile, "w")) {
        if (@fwrite($fh, serialize(array_filter(get_object_vars($this), function($value, $name) {
          return $name != 'comments'; // don't store comments
        }, ARRAY_FILTER_USE_BOTH)))) {
          @fclose($fh);
        }
      }
    }
  }
protected function serialize() {
    if (!$this->isModified() && ($cacheFile = $this->getSerializeFilename($this->addedFiles))) {
      if (self::$logger->isDebugEnabled()) {
        self::$logger->debug("Serialize configuration: ".join(',', $this->addedFiles)." to file: ".$cacheFile);
      }
      $this->fileUtil->mkdirRec(dirname($cacheFile));
      if ($fh = @fopen($cacheFile, "w")) {
        if (@fwrite($fh, serialize(array_filter(get_object_vars($this), function($value, $name) {
          return $name != 'comments'; // don't store comments
        }, ARRAY_FILTER_USE_BOTH)))) {
          @fclose($fh);
        }
      }
    }
  }
protected function serialize ( ) { if ( ! $ this -> isModified ( ) && ( $ cacheFile = $ this -> getSerializeFilename ( $ this -> addedFiles ) ) ) { if ( self :: $ logger -> isDebugEnabled ( ) ) { self :: $ logger -> debug ( "Serialize configuration: " . join ( ',' , $ this -> addedFiles ) . " to file: " . $ cacheFile ) ; } $ this -> fileUtil -> mkdirRec ( dirname ( $ cacheFile ) ) ; if ( $ fh = @ fopen ( $ cacheFile , "w" ) ) { if ( @ fwrite ( $ fh , serialize ( array_filter ( get_object_vars ( $ this ) , function ( $ value , $ name ) { return $ name != 'comments' ; // don't store comments
 } , ARRAY_FILTER_USE_BOTH ) ) ) ) { @ fclose ( $ fh ) ; } } } }
Store the instance in the file system. If the instance is modified, this call is ignored.
Store the instance in the file system . If the instance is modified this call is ignored .