/**
* Merge another status object into this one
*
- * @param $other Other Status object
+ * @param $other Status Other Status object
* @param $overwriteValue Boolean: whether to override the "value" member
*/
function merge( $other, $overwriteValue = false ) {
*
* @param $table string: table name
* @param $field string: field name
+ *
+ * @return Field
*/
function fieldInfo( $table, $field );
class PostgresField implements Field {
private $name, $tablename, $type, $nullable, $max_length, $deferred, $deferrable, $conname;
- static function fromText($db, $table, $field) {
- global $wgDBmwschema;
+ /**
+ * @static
+ * @param $db DatabaseBase
+ * @param $table
+ * @param $field
+ * @return null|PostgresField
+ */
+ static function fromText( $db, $table, $field ) {
+ global $wgDBmwschema;
$q = <<<SQL
SELECT
* Helper class for LBFactory_Single.
*/
class LoadBalancer_Single extends LoadBalancer {
+
+ /**
+ * @var DatabaseBase
+ */
var $db;
function __construct( $params ) {
return $lagTimes;
}
+ /**
+ * @param $conn DatabaseBase
+ * @param $threshold
+ * @return int
+ */
function postConnectionBackoff( $conn, $threshold ) {
if ( !$threshold ) {
return 0;
*
* TODO: naming this parent is confusing, 'installer' would be clearer.
*
- * @var Installer
+ * @var WebInstaller
*/
public $parent;
/**
* Actually perform the installation.
*
- * @param $startCB A callback array for the beginning of each step
- * @param $endCB A callback array for the end of each step
+ * @param $startCB Array A callback array for the beginning of each step
+ * @param $endCB Array A callback array for the end of each step
*
* @return Array of Status objects
*/
$this->output( "......<b>Deleted</b> " . $this->db->affectedRows() . " records.\n" );
}
-
$this->output( wfTimestamp( TS_DB ) );
$this->output( "......Creating tables.\n" );
$this->db->query( "CREATE TABLE $page (
/**
* Get the LocalisationCache instance
+ *
+ * @return LocalisationCache
*/
public static function getLocalisationCache() {
if ( is_null( self::$dataCache ) ) {