Tasks::$tasks

protected property Tasks::$tasks

Structure that describes each task to run.

Each value of the tasks array is an associative array defining the function to call (optional) and any arguments to be passed to the function.

Type: array

File

core/lib/Drupal/Core/Database/Install/Tasks.php, line 29

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

protected $tasks = array(
  array(
    'function' => 'checkEngineVersion',
    'arguments' => array(),
  ),
  array(
    'arguments' => array(
      'CREATE TABLE {drupal_install_test} (id int NULL)',
      'Drupal can use CREATE TABLE database commands.',
      'Failed to <strong>CREATE</strong> a test table on your database server with the command %query. The server reports the following message: %error.<p>Are you sure the configured username has the necessary permissions to create tables in the database?</p>',
      TRUE,
    ),
  ),
  array(
    'arguments' => array(
      'INSERT INTO {drupal_install_test} (id) VALUES (1)',
      'Drupal can use INSERT database commands.',
      'Failed to <strong>INSERT</strong> a value into a test table on your database server. We tried inserting a value with the command %query and the server reported the following error: %error.',
    ),
  ),
  array(
    'arguments' => array(
      'UPDATE {drupal_install_test} SET id = 2',
      'Drupal can use UPDATE database commands.',
      'Failed to <strong>UPDATE</strong> a value in a test table on your database server. We tried updating a value with the command %query and the server reported the following error: %error.',
    ),
  ),
  array(
    'arguments' => array(
      'DELETE FROM {drupal_install_test}',
      'Drupal can use DELETE database commands.',
      'Failed to <strong>DELETE</strong> a value from a test table on your database server. We tried deleting a value with the command %query and the server reported the following error: %error.',
    ),
  ),
  array(
    'arguments' => array(
      'DROP TABLE {drupal_install_test}',
      'Drupal can use DROP TABLE database commands.',
      'Failed to <strong>DROP</strong> a test table from your database server. We tried dropping a table with the command %query and the server reported the following error %error.',
    ),
  ),
);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Install!Tasks.php/property/Tasks::tasks/8.1.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部