Merge "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git] / includes / libs / rdbms / database / MaintainableDBConnRef.php
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
5 *
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() );
13 }
14
15 public function tableNames() {
16 return $this->__call( __FUNCTION__, func_get_args() );
17 }
18
19 public function tableNamesN() {
20 return $this->__call( __FUNCTION__, func_get_args() );
21 }
22
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() );
31 }
32
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() );
41 }
42
43 public function dropTable( $tableName, $fName = __METHOD__ ) {
44 return $this->__call( __FUNCTION__, func_get_args() );
45 }
46
47 public function deadlockLoop() {
48 return $this->__call( __FUNCTION__, func_get_args() );
49 }
50
51 public function listViews( $prefix = null, $fname = __METHOD__ ) {
52 return $this->__call( __FUNCTION__, func_get_args() );
53 }
54
55 public function textFieldSize( $table, $field ) {
56 return $this->__call( __FUNCTION__, func_get_args() );
57 }
58
59 public function streamStatementEnd( &$sql, &$newLine ) {
60 return $this->__call( __FUNCTION__, func_get_args() );
61 }
62
63 public function duplicateTableStructure(
64 $oldName, $newName, $temporary = false, $fname = __METHOD__
65 ) {
66 return $this->__call( __FUNCTION__, func_get_args() );
67 }
68 }