InsertTrait::count

public InsertTrait::count() File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 182 Class InsertTrait Provides common functionality for INSERT and UPSERT queries. Namespace Drupal\Core\Database\Query Code public function count() { return count($this->insertValues); }

InsertTrait::$table

The table on which to insert. Type: string File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 17 Class InsertTrait Provides common functionality for INSERT and UPSERT queries. Namespace Drupal\Core\Database\Query Code protected $table;

InsertTrait::$insertValues

A nested array of values to insert. $insertValues is an array of arrays. Each sub-array is either an associative array whose keys are field names and whose values are field values to insert, or a non-associative array of values in the same order as $insertFields. Whether multiple insert sets will be run in a single query or multiple queries is left to individual drivers to implement in whatever manner is most appropriate. The order of values in each sub-array must match the order of fields in $

InsertTrait::$insertFields

An array of fields on which to insert. Type: array File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 24 Class InsertTrait Provides common functionality for INSERT and UPSERT queries. Namespace Drupal\Core\Database\Query Code protected $insertFields = array();

InsertTrait::$defaultFields

An array of fields that should be set to their database-defined defaults. Type: array File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 31 Class InsertTrait Provides common functionality for INSERT and UPSERT queries. Namespace Drupal\Core\Database\Query Code protected $defaultFields = array();

InsertTrait

Provides common functionality for INSERT and UPSERT queries. Hierarchy trait \Drupal\Core\Database\Query\InsertTrait Related topics Database abstraction layer Allow the use of different database servers using the same code base. File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 10 Namespace Drupal\Core\Database\Query Members Name Modifiers Type Description InsertTrait::$defaultFields protected property An array of fields that should be set to their databas

InsertCommand::__construct

public InsertCommand::__construct($selector, $content, array $settings = NULL) Constructs an InsertCommand object. Parameters string $selector: A CSS selector. string|array $content: The content that will be inserted in the matched element(s), either a render array or an HTML string. array $settings: An array of JavaScript settings to be passed to any attached behaviors. File core/lib/Drupal/Core/Ajax/InsertCommand.php, line 58 Class InsertCommand Generic AJAX command for inserting conten

InsertCommand::render

public InsertCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/InsertCommand.php, line 67 Class InsertCommand Generic AJAX command for inserting content. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'insert', 'method' => NULL, 'selector' => $this->selector, 'data' => $this->getRenderedContent(), 'settings' => $this

InsertCommand::$settings

A settings array to be passed to any attached JavaScript behavior. Type: array File core/lib/Drupal/Core/Ajax/InsertCommand.php, line 45 Class InsertCommand Generic AJAX command for inserting content. Namespace Drupal\Core\Ajax Code protected $settings;

InsertCommand::$selector

A CSS selector string. If the command is a response to a request from an #ajax form element then this value can be NULL. Type: string File core/lib/Drupal/Core/Ajax/InsertCommand.php, line 29 Class InsertCommand Generic AJAX command for inserting content. Namespace Drupal\Core\Ajax Code protected $selector;