Project

General

Profile

« Previous | Next » 

Revision 1965

Added by darkviper about 11 years ago

added framework/UpgradeHelper::getMissingTables()
added alias framework/UpgradeHelper::getMissingTables() with existsAllTables()
added upgrade-script.php add loading class PasswordHash
update some corrections of typos in upgrade-sript.php

View differences:

UpgradeHelper.php
36 36

  
37 37
/**
38 38
 * Compare available tables against a list of tables
39
 * @param array list of needed table names without TablePrefix
39
 * @param  array list of needed table names without TablePrefix
40 40
 * @return array list of missing tables
41
 * @description this method is the replaement for self::existsAllTables()
41 42
 */
42
	public static function existsAllTables(array $aTablesList)
43
	public static function getMissingTables(array $aTablesList)
43 44
	{
44 45
		$aTablesList = array_flip($aTablesList);
45 46
		$oDb = WbDatabase::getInstance();
......
54 55
		}
55 56
		return array_flip($aTablesList);
56 57
	}
58
/**
59
 * Alias for self::getMissingTables()
60
 * @param array list of needed table names without TablePrefix
61
 * @return array list of missing tables
62
 */
63
	public static function existsAllTables(array $aTablesList)
64
	{
65
		return self::getMissingTables($aTablesList);
66
	}
57 67

  
58 68

  
59 69
} // end of class UpgradeHelper

Also available in: Unified diff