Upsert::key

public Upsert::key($field) Sets the unique / primary key field to be used as condition for this query. Parameters string $field: The name of the field to set. Return value $this File core/lib/Drupal/Core/Database/Query/Upsert.php, line 51 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Namespace Drupal\Core\Database\Query Code public function key($field) { $this->key = $field; return $this; }

Upsert::__toString

public Upsert::__toString() Implements PHP magic __toString method to convert the query to a string. The toString operation is how we compile a query object to a prepared statement. Return value string A prepared statement query string for this object. Overrides Query::__toString File core/lib/Drupal/Core/Database/Driver/mysql/Upsert.php, line 15 Class Upsert MySQL implementation of \Drupal\Core\Database\Query\Upsert. Namespace Drupal\Core\Database\Driver\mysql Code public function __

Upsert::execute

public Upsert::execute() Runs the query against the database. Return value \Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid. Overrides Query::execute File core/lib/Drupal/Core/Database/Query/Upsert.php, line 93 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Namespace Drupal\Core\Database\Query Code public function execute() { if (!$this->preExecute()) { return NULL; } $max_pla

Upsert

SQLite implementation of \Drupal\Core\Database\Query\Upsert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\sqlite\Upsert File core/lib/Drupal/Core/Database/Driver/sqlite/Upsert.php, line 10 Namespace Drupal\Core\Database\Driver\sqlite Members Name Modifiers Type Description InsertTrait::$defaultFields protected property An

Upsert::execute

public Upsert::execute() Runs the query against the database. Return value \Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid. Overrides Upsert::execute File core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php, line 15 Class Upsert PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. Namespace Drupal\Core\Database\Driver\pgsql Code public function execute() { if (!$this->preExecute()) { return NULL; } // De

Upsert::$key

The unique or primary key of the table. Type: string File core/lib/Drupal/Core/Database/Query/Upsert.php, line 25 Class Upsert General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. Namespace Drupal\Core\Database\Query Code protected $key;

Upsert

MySQL implementation of \Drupal\Core\Database\Query\Upsert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\mysql\Upsert File core/lib/Drupal/Core/Database/Driver/mysql/Upsert.php, line 10 Namespace Drupal\Core\Database\Driver\mysql Members Name Modifiers Type Description InsertTrait::$defaultFields protected property An arr

Upsert

General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. This class can only be used with a table with a single unique index. Often, this will be the primary key. On such a table this class works like Insert except the rows will be set to the desired values even if the key existed before. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTrait File core/lib/Drupal/Cor

Upsert

PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Upsert implements \Countable uses InsertTraitclass \Drupal\Core\Database\Driver\pgsql\Upsert File core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php, line 10 Namespace Drupal\Core\Database\Driver\pgsql Members Name Modifiers Type Description InsertTrait::$defaultFields protected property A

update_theme

update_theme() Implements hook_theme(). File core/modules/update/update.module, line 187 Handles updates of Drupal core and contributed projects. Code function update_theme() { return array( 'update_last_check' => array( 'variables' => array('last' => 0), ), 'update_report' => array( 'variables' => array('data' => NULL), 'file' => 'update.report.inc', ), 'update_project_status' => array( 'variables' => array('project' =&