uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
.
/
craft4-newsite-space
/
.
/
vendor
/
craftcms
/
cms
/
src
/
test
/
.
/
DbFixtureTrait.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\test; use yii\db\Connection; use yii\test\DbFixture; /** * trait DbFixtureTrait * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.6.0 * @mixin DbFixture */ trait DbFixtureTrait { /** * @var bool Whether database integrity checks should be explicitly enabled before deleting fixture data, * and then re-disabled afterwards. */ public bool $checkIntegrity = true; /** * Toggles the DB integrity check. * * @param bool $check whether to turn on or off the integrity check. */ protected function checkIntegrity(bool $check): void { if (!$this->checkIntegrity || !$this->db instanceof Connection) { return; } $this->db->createCommand()->checkIntegrity($check)->execute(); } /** * Hard-deletes everything in the database. */ protected function hardDelete(): void { $gc = \Craft::$app->getGc(); $deleteAllTrashed = $gc->deleteAllTrashed; $gc->deleteAllTrashed = true; $gc->run(true); $gc->deleteAllTrashed = $deleteAllTrashed; } }
/srv/users/craft4/apps/./craft4-newsite-space/./vendor/craftcms/cms/src/test/./DbFixtureTrait.php