Exemplo n.º 1
0
 /**
  * Forces all modules to be reloaded if the development build number
  * has changed since the last call. The build number is then cached in
  * $this->_storedBuild so that multiple filesystem accesses are not
  * required.
  *
  * @return void
  */
 public function checkForcedUpdate()
 {
     $build = CATSUtility::getBuild();
     /* We don't want to force an update on the first check (when the stored
      * build -1), because we just reloaded all of the modules anyway.
      * CATSUtility::getBuild() should never return -1, but just in case...
      */
     if ($this->_storedBuild != -1 && $this->_storedBuild != $build) {
         $this->forceUpdate();
     }
     $this->_storedBuild = $build;
 }