-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves #3482 Signed-off-by: brandonkelly <[email protected]>
- Loading branch information
1 parent
1e196c0
commit 5b0cd57
Showing
6 changed files
with
205 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\events; | ||
|
||
use craft\base\ElementInterface; | ||
use craft\elements\db\ElementQueryInterface; | ||
use yii\base\Event; | ||
|
||
/** | ||
* Resave Element event class. | ||
* | ||
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 3.2.0 | ||
*/ | ||
class ResaveElementEvent extends ResaveElementsEvent | ||
{ | ||
// Properties | ||
// ========================================================================= | ||
|
||
/** | ||
* @var ElementInterface The element being resaved | ||
*/ | ||
public $element; | ||
|
||
/** | ||
* @var int The element's position in the query (1-indexed) | ||
*/ | ||
public $position; | ||
|
||
/** | ||
* @var \Throwable|null $exception The exception that was thrown if any | ||
*/ | ||
public $exception; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\events; | ||
|
||
use craft\base\ElementInterface; | ||
use craft\elements\db\ElementQueryInterface; | ||
use yii\base\Event; | ||
|
||
/** | ||
* Resave Elements event class. | ||
* | ||
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 3.2.0 | ||
*/ | ||
class ResaveElementsEvent extends Event | ||
{ | ||
// Properties | ||
// ========================================================================= | ||
|
||
/** | ||
* @var ElementQueryInterface The element query the elements will be pulled from. | ||
*/ | ||
public $query; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters