Added release notes for 'ContentHandler::runLegacyHooks' removal
[mediawiki.git] / includes / libs / rdbms / database / MaintainableDBConnRef.php
blobfa3ddf9eb9c46e40d7f78142e98e2e171d2c68cd
1 <?php
2 /**
3 * Helper class to handle automatically marking connections as reusable (via RAII pattern)
4 * as well handling deferring the actual network connection until the handle is used
6 * @note: proxy methods are defined explicity to avoid interface errors
7 * @ingroup Database
8 * @since 1.29
9 */
10 class MaintainableDBConnRef extends DBConnRef implements IMaintainableDatabase {
11 public function tableName( $name, $format = 'quoted' ) {
12 return $this->__call( __FUNCTION__, func_get_args() );
15 public function tableNames() {
16 return $this->__call( __FUNCTION__, func_get_args() );
19 public function tableNamesN() {
20 return $this->__call( __FUNCTION__, func_get_args() );
23 public function sourceFile(
24 $filename,
25 callable $lineCallback = null,
26 callable $resultCallback = null,
27 $fname = false,
28 callable $inputCallback = null
29 ) {
30 return $this->__call( __FUNCTION__, func_get_args() );
33 public function sourceStream(
34 $fp,
35 callable $lineCallback = null,
36 callable $resultCallback = null,
37 $fname = __METHOD__,
38 callable $inputCallback = null
39 ) {
40 return $this->__call( __FUNCTION__, func_get_args() );
43 public function dropTable( $tableName, $fName = __METHOD__ ) {
44 return $this->__call( __FUNCTION__, func_get_args() );
47 public function deadlockLoop() {
48 return $this->__call( __FUNCTION__, func_get_args() );
51 public function listViews( $prefix = null, $fname = __METHOD__ ) {
52 return $this->__call( __FUNCTION__, func_get_args() );
55 public function textFieldSize( $table, $field ) {
56 return $this->__call( __FUNCTION__, func_get_args() );
59 public function streamStatementEnd( &$sql, &$newLine ) {
60 return $this->__call( __FUNCTION__, func_get_args() );
63 public function duplicateTableStructure(
64 $oldName, $newName, $temporary = false, $fname = __METHOD__
65 ) {
66 return $this->__call( __FUNCTION__, func_get_args() );