BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
BlueSpice\Data\DatabaseWriter Class Reference
Inheritance diagram for BlueSpice\Data\DatabaseWriter:
Collaboration diagram for BlueSpice\Data\DatabaseWriter:

Public Member Functions

 __construct (IReader $reader, $loadBalancer,\IContextSource $context=null,\Config $config=null)
 
 write ($recordSet)
 
 remove ($recordSet)
 
- Public Member Functions inherited from BlueSpice\Data\Writer
 __construct (\IContextSource $context=null,\Config $config=null)
 
- Public Member Functions inherited from BlueSpice\Data\IWriter
 getSchema ()
 

Protected Member Functions

 getIdentifierFields ()
 
 getTableName ()
 
 insert ($record)
 
 modify ($existingRecord, $record)
 
 delete ($existingRecord, $record)
 
 makeInsertFields ($record)
 
 makeUpdateFields ($existingRecord, $record)
 
 makeUpdateConditions ($existingRecord, $record)
 
 makeDeleteConditions ($existingRecord, $record)
 
 getExistingRecord ($record)
 
 makeExistingRecordFilters ($record)
 
 makeExistingRecordFilter ($record, $fieldName)
 
 getFieldType ($fieldName)
 
- Protected Member Functions inherited from BlueSpice\Data\Writer
 getUser ()
 
 getTitle ()
 

Protected Attributes

 $db = null
 
 $reader = null
 
- Protected Attributes inherited from BlueSpice\Data\Writer
 $context = null
 
 $config = null
 

Constructor & Destructor Documentation

BlueSpice\Data\DatabaseWriter::__construct ( IReader  $reader,
  $loadBalancer,
\IContextSource  $context = null,
\Config  $config = null 
)
Parameters
IReader$reader
\Wikimedia\Rdbms\LoadBalancer$loadBalancer
\IContextSource$context
\Config$config

Member Function Documentation

BlueSpice\Data\DatabaseWriter::delete (   $existingRecord,
  $record 
)
protected
Parameters
\BlueSpice\Data\IRecord$existingRecord
\BlueSpice\Data\IRecord$record
BlueSpice\Data\DatabaseWriter::getExistingRecord (   $record)
protected
Parameters
BlueSpice\Data\Record$record
BlueSpice\Data\DatabaseWriter::insert (   $record)
protected
Parameters
\BlueSpice\Data\IRecord$record
BlueSpice\Data\DatabaseWriter::makeDeleteConditions (   $existingRecord,
  $record 
)
protected
Parameters
\BlueSpice\Data\IRecord$existingRecord
\BlueSpice\Data\IRecord$record
BlueSpice\Data\DatabaseWriter::makeExistingRecordFilter (   $record,
  $fieldName 
)
protected
Parameters
BlueSpice\Data\Record$record
BlueSpice\Data\DatabaseWriter::makeExistingRecordFilters (   $record)
protected
Parameters
BlueSpice\Data\Record$record
BlueSpice\Data\DatabaseWriter::makeInsertFields (   $record)
protected
Parameters
\BlueSpice\Data\IRecord$record
BlueSpice\Data\DatabaseWriter::makeUpdateConditions (   $existingRecord,
  $record 
)
protected
Parameters
\BlueSpice\Data\IRecord$existingRecord
\BlueSpice\Data\IRecord$record
BlueSpice\Data\DatabaseWriter::makeUpdateFields (   $existingRecord,
  $record 
)
protected
Parameters
\BlueSpice\Data\IRecord$existingRecord
\BlueSpice\Data\IRecord$record
BlueSpice\Data\DatabaseWriter::modify (   $existingRecord,
  $record 
)
protected
Parameters
\BlueSpice\Data\IRecord$existingRecord
\BlueSpice\Data\IRecord$record
BlueSpice\Data\DatabaseWriter::remove (   $recordSet)

Remove given records

Parameters
RecordSet$recordSet
Returns
RecordSet

Implements BlueSpice\Data\IWriter.

BlueSpice\Data\DatabaseWriter::write (   $recordSet)

Create or Update given records

Parameters
RecordSet$recordSet
Returns
RecordSet

Implements BlueSpice\Data\IWriter.


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