Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMW\SQLStore\TableBuilder\TableBuilder Class Reference
Inheritance diagram for SMW\SQLStore\TableBuilder\TableBuilder:
Inheritance graph
[legend]
Collaboration diagram for SMW\SQLStore\TableBuilder\TableBuilder:
Collaboration graph
[legend]

Public Member Functions

 setConfig ( $key, $value)
 
 setMessageReporter (MessageReporter $messageReporter)
 
 reportMessage ( $message)
 
 getStandardFieldType ( $fieldType)
 
 create (Table $table)
 
 drop (Table $table)
 
 optimize (Table $table)
 
 checkOn ( $event)
 
 getLog ()
 

Static Public Member Functions

static factory (DatabaseBase $connection)
 

Protected Member Functions

 __construct (DatabaseBase $connection)
 
 doCreateTable ( $tableName, array $tableOptions=null)
 
 doUpdateTable ( $tableName, array $tableOptions=null)
 
 doCreateIndices ( $tableName, array $indexOptions=null)
 
 doDropTable ( $tableName)
 
 doOptimize ( $tableName)
 
 recursive_array_search ( $needle, $haystack)
 

Protected Attributes

 $connection
 
 $config = []
 
 $activityLog = []
 

Detailed Description

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\SQLStore\TableBuilder\TableBuilder::__construct ( DatabaseBase  $connection)
protected
Since
2.5
Parameters
DatabaseBase$connection

Member Function Documentation

◆ checkOn()

SMW\SQLStore\TableBuilder\TableBuilder::checkOn (   $event)
Since
2.5
Parameters
string$event

◆ create()

SMW\SQLStore\TableBuilder\TableBuilder::create ( Table  $table)
Since
2.5

◆ doCreateIndices()

SMW\SQLStore\TableBuilder\TableBuilder::doCreateIndices (   $tableName,
array  $indexOptions = null 
)
abstractprotected
Parameters
string$tableName
array$indexOptions

◆ doCreateTable()

SMW\SQLStore\TableBuilder\TableBuilder::doCreateTable (   $tableName,
array  $tableOptions = null 
)
abstractprotected
Parameters
string$tableName
array$tableOptions

◆ doDropTable()

SMW\SQLStore\TableBuilder\TableBuilder::doDropTable (   $tableName)
abstractprotected
Parameters
string$tableName

◆ doOptimize()

SMW\SQLStore\TableBuilder\TableBuilder::doOptimize (   $tableName)
abstractprotected
Parameters
string$tableName

◆ doUpdateTable()

SMW\SQLStore\TableBuilder\TableBuilder::doUpdateTable (   $tableName,
array  $tableOptions = null 
)
abstractprotected
Parameters
string$tableName
array$tableOptions

◆ drop()

SMW\SQLStore\TableBuilder\TableBuilder::drop ( Table  $table)
Since
2.5

◆ factory()

static SMW\SQLStore\TableBuilder\TableBuilder::factory ( DatabaseBase  $connection)
static
Since
2.5
Parameters
DatabaseBase$connection
Returns
TableBuilder
Exceptions
RuntimeException

◆ getLog()

SMW\SQLStore\TableBuilder\TableBuilder::getLog ( )
Since
3.0

◆ getStandardFieldType()

SMW\SQLStore\TableBuilder\TableBuilder::getStandardFieldType (   $fieldType)
Since
2.5

◆ optimize()

SMW\SQLStore\TableBuilder\TableBuilder::optimize ( Table  $table)
Since
3.0

◆ reportMessage()

SMW\SQLStore\TableBuilder\TableBuilder::reportMessage (   $message)
See also
MessageReporter::reportMessage
Since
2.5
Parameters
string$message

◆ setConfig()

SMW\SQLStore\TableBuilder\TableBuilder::setConfig (   $key,
  $value 
)
Since
2.5
Parameters
string | integer$key
mixed

◆ setMessageReporter()

SMW\SQLStore\TableBuilder\TableBuilder::setMessageReporter ( MessageReporter  $messageReporter)
See also
MessageReporterAware::setMessageReporter
Since
2.5
Parameters
MessageReporter$messageReporter

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy