Go to the documentation of this file.
69 $this->assertEquals( $expected, $quoted );
95 array(
"`'`",
"'" ), # single quote
96 array(
'`"`',
'"' ), #
double quote
97 array(
'````',
'`' ), # backtick
98 array(
'`’`',
'’' ), # apostrophe (look at your encyclopedia)
102 array(
'`xyzzy`',
"\0x\0y\0z\0z\0y\0" ),
106 self::createUnicodeString(
'`\u0001a\uFFFFb`' ),
107 self::createUnicodeString(
'\u0001a\uFFFFb' )
110 self::createUnicodeString(
'`\u0001\uFFFF`' ),
111 self::createUnicodeString(
'\u0001\u0000\uFFFF\u0000' )
114 array(
'`メインページ`',
'メインページ' ),
115 array(
'`Басты_бет`',
'Басты_бет' ),
118 array(
'`Alix`',
'Alix' ), #
while( ! $recovered ) { sleep(); }
119 array(
'`Backtick: ```',
'Backtick: `' ),
120 array(
'`This is a test`',
'This is a test' ),
125 return json_decode(
'"' . $str .
'"' );
129 $db = $this->getMockBuilder(
'DatabaseMysql' )
130 ->disableOriginalConstructor()
131 ->setMethods(
array(
'fetchRow',
'query' ) )
134 $db->expects( $this->any() )
138 $this->returnValue(
null )
141 $db->expects( $this->any() )
142 ->method(
'fetchRow' )
144 ->will( $this->onConsecutiveCalls(
145 array(
'Tables_in_' =>
'view1' ),
146 array(
'Tables_in_' =>
'view2' ),
147 array(
'Tables_in_' =>
'myview' ),
159 $this->assertEquals(
array(
'view1',
'view2',
'myview' ),
161 $this->assertEquals(
array(
'view1',
'view2',
'myview' ),
165 $this->assertEquals(
array(
'view1',
'view2' ),
167 $this->assertEquals(
array(
'myview' ),
169 $this->assertEquals(
array(),
171 $this->assertEquals(
array(
'view1',
'view2',
'myview' ),
184 $this->assertTrue(
$db->
isView( $viewName ),
185 "$viewName should be considered a view" );
189 $this->assertFalse(
$db->
isView( $viewName ),
190 "$viewName has not been defined as a view" );
199 array(
true,
'view1' ),
200 array(
true,
'view2' ),
201 array(
true,
'myview' ),
203 array(
false,
'user' ),
205 array(
false,
'view10' ),
206 array(
false,
'my' ),
207 array(
false,
'OH_MY_GOD' ), # they killed kenny!
mysqlDataSeek( $res, $row)
Move internal result pointer.
Database abstraction object for MySQL.
closeConnection()
Closes underlying database connection.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
mysqlFetchObject( $res)
Fetch a result row as an object.
provideDiapers()
Feeds testAddIdentifierQuotes.
affectedRows()
Get the number of rows affected by the last write query.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same so they can t rely on Unix and must forbid reads to even standard directories like tmp lest users read each others files We cannot assume that the user has the ability to install or run any programs not written as web accessible PHP scripts Since anything that works on cheap shared hosting will work if you have shell or root access MediaWiki s design is based around catering to the lowest common denominator Although we support higher end setups as the way many things work by default is tailored toward shared hosting These defaults are unconventional from the point of view of and they certainly aren t ideal for someone who s installing MediaWiki as MediaWiki does not conform to normal Unix filesystem layout Hopefully we ll offer direct support for standard layouts in the but for now *any change to the location of files is unsupported *Moving things and leaving symlinks will *probably *not break anything
mysqlFetchField( $res, $n)
Get column information from a result.
mysqlFieldType( $res, $n)
Get the type of the specified field in a result.
mysqlConnect( $realServer)
Open a connection to a MySQL server.
mysqlNumFields( $res)
Get number of fields in result.
isView( $name)
Differentiates between a TABLE and a VIEW.
mysqlError( $conn=null)
Returns the text of the error message from previous MySQL operation.
getServerVersion()
A string describing the current software version, like from mysql_get_server_info().
Fake class around abstract class so we can call concrete methods.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
mysqlFieldName( $res, $n)
Get the name of the specified field in a result.
provideViewExistanceChecks()
mysqlNumRows( $res)
Get number of rows in result.
lastErrno()
Get the last error number.
addIdentifierQuotes( $s)
Quotes an identifier using backticks or "double quotes" depending on the database type.
testIsView( $isView, $viewName)
@covers DatabaseMysqlBase::isView @dataProvider provideViewExistanceChecks
listViews( $prefix=null, $fname=__METHOD__)
Lists all the VIEWs in the database.
mysqlFreeResult( $res)
Free result memory.
insertId()
Get the inserted value of an auto-increment row.
static createUnicodeString( $str)
mysqlPing()
Ping a server connection or reconnect if there is no connection.
mysqlSetCharset( $charset)
Set the character set of the MySQL link.
testListviews()
@covers DatabaseMysqlBase::listViews
doQuery( $sql)
The DBMS-dependent part of query()
testAddIdentifierQuotes( $expected, $in)
@dataProvider provideDiapers @covers DatabaseMysqlBase::addIdentifierQuotes
mysqlFetchArray( $res)
Fetch a result row as an associative and numeric array.