* with a \n. This is with the PHP flag auto_detect_line_endings set
* to falase (the default).
*
- * @param $sock Ressource: socket to send command on
+ * @param $sock Resource: socket to send command on
* @param $cmd String: command to run
*
* @return Array: output array
/**
* Load items into $ret from $sock
*
- * @param $sock Ressource: socket to read from
+ * @param $sock Resource: socket to read from
* @param $ret Array: returned values
*
* @access private
* @ingroup Cache
*/
class SqlBagOStuff extends BagOStuff {
- var $lb, $db, $serverInfo;
+
+ /**
+ * @var LoadBalancer
+ */
+ var $lb;
+
+ /**
+ * @var DatabaseBase
+ */
+ var $db;
+ var $serverInfo;
var $lastExpireAll = 0;
/**
}
}
+ /**
+ * @return DatabaseBase
+ */
protected function getDB() {
if ( !isset( $this->db ) ) {
# If server connection info was given, use that