src/wcmf/lib/config/impl/InifileConfiguration.php
protected function unserialize($parsedFiles) {
    if (!$this->isModified() && ($cacheFile = $this->getSerializeFilename($parsedFiles)) && file_exists($cacheFile)) {
      $parsedFiles[] = __FILE__;
      if (!$this->checkFileDate($parsedFiles, $cacheFile)) {
        $vars = unserialize(file_get_contents($cacheFile));

        // check if included ini files were updated since last cache time
        $includes = $vars['containedFiles'];
        if (is_array($includes)) {
          if ($this->checkFileDate($includes, $cacheFile)) {
            return false;
          }
        }

        // everything is up-to-date
        foreach($vars as $key => $val) {
          $this->$key = $val;
        }
        return true;
      }
    }
    return false;
  }
protected function unserialize($parsedFiles) {
    if (!$this->isModified() && ($cacheFile = $this->getSerializeFilename($parsedFiles)) && file_exists($cacheFile)) {
      $parsedFiles[] = __FILE__;
      if (!$this->checkFileDate($parsedFiles, $cacheFile)) {
        $vars = unserialize(file_get_contents($cacheFile));

        // check if included ini files were updated since last cache time
        $includes = $vars['containedFiles'];
        if (is_array($includes)) {
          if ($this->checkFileDate($includes, $cacheFile)) {
            return false;
          }
        }

        // everything is up-to-date
        foreach($vars as $key => $val) {
          $this->$key = $val;
        }
        return true;
      }
    }
    return false;
  }
protected function unserialize ( $ parsedFiles ) { if ( ! $ this -> isModified ( ) && ( $ cacheFile = $ this -> getSerializeFilename ( $ parsedFiles ) ) && file_exists ( $ cacheFile ) ) { $ parsedFiles [ ] = __FILE__ ; if ( ! $ this -> checkFileDate ( $ parsedFiles , $ cacheFile ) ) { $ vars = unserialize ( file_get_contents ( $ cacheFile ) ) ; // check if included ini files were updated since last cache time
 $ includes = $ vars [ 'containedFiles' ] ; if ( is_array ( $ includes ) ) { if ( $ this -> checkFileDate ( $ includes , $ cacheFile ) ) { return false ; } } // everything is up-to-date
 foreach ( $ vars as $ key => $ val ) { $ this -> $ key = $ val ; } return true ; } } return false ; }
Retrieve parsed ini data from the file system and update the current instance.
If the current instance is modified or any file given in parsedFiles
is newer than the serialized data, this call is ignored.
If InifileConfiguration class changed, the call will be ignored as well.
@param $parsedFiles An array of ini filenames that must be contained in the data.
@return Boolean whether the data could be retrieved or not
Retrieve parsed ini data from the file system and update the current instance . If the current instance is modified or any file given in parsedFiles is newer than the serialized data this call is ignored . If InifileConfiguration class changed the call will be ignored as well .