Drupal 8  8.0.2
Tasks Class Reference
Inheritance diagram for Tasks:

Public Member Functions

 __construct ()
 
 name ()
 
 minimumVersion ()
 
 checkBinaryOutput ()
 
 checkStandardConformingStrings ()
 
 initializeDatabase ()
 
 getFormOptions (array $database)
 
- Public Member Functions inherited from Tasks
 installable ()
 
 name ()
 
 minimumVersion ()
 
 runTasks ()
 
 getFormOptions (array $database)
 
 validateDatabaseSettings ($database)
 

Protected Member Functions

 connect ()
 
 checkEncoding ()
 
 checkBinaryOutputSuccess ()
 
 checkStandardConformingStringsSuccess ()
 
- Protected Member Functions inherited from Tasks
 hasPdoDriver ()
 
 fail ($message)
 
 pass ($message)
 
 connect ()
 
 runTestQuery ($query, $pass, $fail, $fatal=FALSE)
 
 checkEngineVersion ()
 

Protected Attributes

 $pdoDriver = 'pgsql'
 
- Protected Attributes inherited from Tasks
 $pdoDriver
 
 $tasks
 
 $results
 

Detailed Description

Specifies installation tasks for PostgreSQL databases.

Constructor & Destructor Documentation

__construct ( )

Constructs a object.

Member Function Documentation

checkBinaryOutput ( )

Check Binary Output.

Unserializing does not work on Postgresql 9 when bytea_output is 'hex'.

References Tasks\checkBinaryOutputSuccess(), db_close(), db_query(), Tasks\fail(), Database\getConnection(), and t().

Here is the call graph for this function:

checkBinaryOutputSuccess ( )
protected

Verify that a binary data roundtrip returns the original string.

References db_query().

Referenced by Tasks\checkBinaryOutput().

Here is the call graph for this function:

Here is the caller graph for this function:

checkEncoding ( )
protected

Check encoding is UTF8.

References db_query(), Tasks\fail(), Tasks\name(), Tasks\pass(), and t().

Here is the call graph for this function:

checkStandardConformingStrings ( )

Ensures standard_conforming_strings setting is 'on'.

When standard_conforming_strings setting is 'on' string literals ('...') treat backslashes literally, as specified in the SQL standard. This allows Drupal to convert between bytea, text and varchar columns.

References Tasks\checkStandardConformingStringsSuccess(), Database\closeConnection(), Tasks\fail(), Database\getConnection(), and t().

Here is the call graph for this function:

checkStandardConformingStringsSuccess ( )
protected

Verifies the standard_conforming_strings setting.

References Database\getConnection().

Referenced by Tasks\checkStandardConformingStrings().

Here is the call graph for this function:

Here is the caller graph for this function:

connect ( )
protected

{}

References Database\addConnectionInfo(), Database\closeConnection(), Connection\DATABASE_NOT_FOUND, db_set_active(), Tasks\fail(), Database\getConnection(), Database\getConnectionInfo(), Tasks\pass(), Database\removeConnection(), and t().

Here is the call graph for this function:

getFormOptions ( array  $database)

{}

initializeDatabase ( )

Make PostgreSQL Drupal friendly.

References Tasks\fail(), Database\getConnection(), Tasks\pass(), and t().

Here is the call graph for this function:

minimumVersion ( )

{}

name ( )

{}

References t().

Referenced by Tasks\checkEncoding().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$pdoDriver = 'pgsql'
protected

{}


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