コード例 #1
0
 /**
  * Check for module updates...
  */
 public function checkForModuleUpdate()
 {
     include_once "core/lib/ModuleUpdateCheck.php";
     $muc = new ModuleUpdateCheck();
     //Check Modules, but discard results.
     $muc->getVersionArray($this->listFiles("modules"), true);
 }
コード例 #2
0
 /**
  * Checks an individual update exists
  */
 public function checkModForUpdates($mod)
 {
     include_once "core/lib/ModuleUpdateCheck.php";
     $muc = new ModuleUpdateCheck();
     //Get array of version information
     $vA = $muc->getVersionArray($this->listFiles("modules"));
     if (!empty($vA[$mod])) {
         return $vA[$mod];
     } else {
         return false;
     }
 }