/**
  * Returns an array of modules which need upgrading
  * 
  * @return array
  */
 public static function getOutdatedModules()
 {
     if (self::$_outdated_modules == null) {
         self::$_outdated_modules = array();
         foreach (self::getModules() as $module) {
             if ($module->isOutdated()) {
                 self::$_outdated_modules[] = $module;
             }
         }
     }
     return self::$_outdated_modules;
 }