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
Collaboration diagram for SMW\SQLStore\TableBuilder\TableBuilder:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Member Functions

static factory (DatabaseBase $connection)
 

Protected Member Functions

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

Protected Attributes

 $connection
 
 $configurations = array()
 

Detailed Description

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

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

Member Function Documentation

SMW\SQLStore\TableBuilder\TableBuilder::addConfiguration (   $key,
  $value 
)
Since
2.5
Parameters
string | integer$key
mixed
SMW\SQLStore\TableBuilder\TableBuilder::checkOn (   $event)
Since
2.5
Parameters
string$event
SMW\SQLStore\TableBuilder\TableBuilder::create ( Table  $table)
Since
2.5
SMW\SQLStore\TableBuilder\TableBuilder::doCreateIndicies (   $tableName,
array  $indexOptions = null 
)
abstractprotected
Parameters
string$tableName
array$indexOptions
SMW\SQLStore\TableBuilder\TableBuilder::doCreateTable (   $tableName,
array  $tableOptions = null 
)
abstractprotected
Parameters
string$tableName
array$tableOptions
SMW\SQLStore\TableBuilder\TableBuilder::doDropTable (   $tableName)
abstractprotected
Parameters
string$tableName
SMW\SQLStore\TableBuilder\TableBuilder::doUpdateTable (   $tableName,
array  $tableOptions = null 
)
abstractprotected
Parameters
string$tableName
array$tableOptions
SMW\SQLStore\TableBuilder\TableBuilder::drop ( Table  $table)
Since
2.5
static SMW\SQLStore\TableBuilder\TableBuilder::factory ( DatabaseBase  $connection)
static
Since
2.5
Parameters
DatabaseBase$connection
Returns
TableBuilder
Exceptions
RuntimeException
SMW\SQLStore\TableBuilder\TableBuilder::getStandardFieldType (   $fieldType)
Since
2.5
SMW\SQLStore\TableBuilder\TableBuilder::recursive_array_search (   $needle,
  $haystack 
)
protected
SMW\SQLStore\TableBuilder\TableBuilder::reportMessage (   $message)
See also
MessageReporter::reportMessage
Since
2.5
Parameters
string$message
SMW\SQLStore\TableBuilder\TableBuilder::setMessageReporter ( MessageReporter  $messageReporter)
See also
MessageReporterAware::setMessageReporter
Since
2.5
Parameters
MessageReporter$messageReporter

Member Data Documentation

SMW\SQLStore\TableBuilder\TableBuilder::$configurations = array()
protected
SMW\SQLStore\TableBuilder\TableBuilder::$connection
protected

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