1 | <?php |
||
21 | abstract class AbstractSyncFrom extends Action |
||
22 | { |
||
23 | use CheckAccessTrait; |
||
24 | |||
25 | /** |
||
26 | * @param ElementInterface $element |
||
27 | * @param Objects $field |
||
28 | * @param string|null $objectId |
||
29 | * @return ElementInterface|mixed |
||
30 | * @throws \Throwable |
||
31 | * @throws \craft\errors\ElementNotFoundException |
||
32 | * @throws \yii\base\Exception |
||
33 | * @throws \yii\web\UnauthorizedHttpException |
||
34 | */ |
||
35 | protected function runInternal( |
||
51 | |||
52 | /** |
||
53 | * @param ElementInterface $element |
||
54 | * @param Objects $field |
||
55 | * @param string|null $objectId |
||
56 | * @return bool |
||
57 | * @throws \Throwable |
||
58 | * @throws \craft\errors\ElementNotFoundException |
||
59 | * @throws \yii\base\Exception |
||
60 | */ |
||
61 | protected function performAction( |
||
68 | |||
69 | /** |
||
70 | * @param ElementInterface $element |
||
71 | * @return ElementInterface |
||
72 | */ |
||
73 | protected function handleSuccessResponse(ElementInterface $element) |
||
78 | |||
79 | /** |
||
80 | * @param ElementInterface $element |
||
81 | * @return ElementInterface |
||
82 | */ |
||
83 | protected function handleFailResponse(ElementInterface $element) |
||
88 | } |
||
89 |