Transaction::$rolledBack

A boolean value to indicate whether this transaction has been rolled back. Type: bool File core/lib/Drupal/Core/Database/Transaction.php, line 38 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code protected $rolledBack = FALSE;

Transaction::$name

The name of the transaction. This is used to label the transaction savepoint. It will be overridden to 'drupal_transaction' if there is no transaction depth. File core/lib/Drupal/Core/Database/Transaction.php, line 46 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code protected $name;

Transaction::$connection

The connection object for this transaction. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Database/Transaction.php, line 31 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code protected $connection;

Transaction

PostgreSQL implementation of \Drupal\Core\Database\Transaction. Hierarchy class \Drupal\Core\Database\Transactionclass \Drupal\Core\Database\Driver\pgsql\Transaction File core/lib/Drupal/Core/Database/Driver/pgsql/Transaction.php, line 10 Namespace Drupal\Core\Database\Driver\pgsql Members Name Modifiers Type Description Transaction::$connection protected property The connection object for this transaction. Transaction::$name protected property The name of the t

Transaction

MySQL implementation of \Drupal\Core\Database\Transaction. Hierarchy class \Drupal\Core\Database\Transactionclass \Drupal\Core\Database\Driver\mysql\Transaction File core/lib/Drupal/Core/Database/Driver/mysql/Transaction.php, line 10 Namespace Drupal\Core\Database\Driver\mysql Members Name Modifiers Type Description Transaction::$connection protected property The connection object for this transaction. Transaction::$name protected property The name of the transa

Transaction

SQLite implementation of \Drupal\Core\Database\Transaction. Hierarchy class \Drupal\Core\Database\Transactionclass \Drupal\Core\Database\Driver\sqlite\Transaction File core/lib/Drupal/Core/Database/Driver/sqlite/Transaction.php, line 10 Namespace Drupal\Core\Database\Driver\sqlite Members Name Modifiers Type Description Transaction::$connection protected property The connection object for this transaction. Transaction::$name protected property The name of the tr

Transaction

A wrapper class for creating and managing database transactions. Not all databases or database configurations support transactions. For example, MySQL MyISAM tables do not. It is also easy to begin a transaction and then forget to commit it, which can lead to connection errors when another transaction is started. This class acts as a wrapper for transactions. To begin a transaction, simply instantiate it. When the object goes out of scope and is destroyed it will automatically commit. It also w

tracker_uninstall

tracker_uninstall() Implements hook_uninstall(). File core/modules/tracker/tracker.install, line 11 Install, update, and uninstall functions for tracker.module. Code function tracker_uninstall() { \Drupal::state()->delete('tracker.index_nid'); }

tracker_schema

tracker_schema() Implements hook_schema(). File core/modules/tracker/tracker.install, line 31 Install, update, and uninstall functions for tracker.module. Code function tracker_schema() { $schema['tracker_node'] = array( 'description' => 'Tracks when nodes were last changed or commented on.', 'fields' => array( 'nid' => array( 'description' => 'The {node}.nid this record tracks.', 'type' => 'int', 'unsigned' => TRUE, 'not null'

tracker_node_update

tracker_node_update(NodeInterface $node, $arg = 0) Implements hook_ENTITY_TYPE_update() for node entities. Adds tracking information for this node since it's been updated. File core/modules/tracker/tracker.module, line 182 Tracks recent content posted by a user or users. Code function tracker_node_update(NodeInterface $node, $arg = 0) { _tracker_add($node->id(), $node->getOwnerId(), $node->getChangedTime()); }