WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('AdEdit', ['id' => $returnValues['returnValues']->adID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(AdEditForm::class, ['id' => $returnValues['returnValues']->adID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('ArticleEdit', ['id' => $article->getObjectID()]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ArticleEditForm::class, ['id' => $article->getObjectID()]),
]);
// reset variables
parent::save();
WCF::getTPL()->assign([
- 'objectEditLink' => LinkHandler::getInstance()->getLink('ArticleCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ArticleCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
]);
$this->sortField = 'publicationDate';
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('BBCodeEdit', ['id' => $returnValues['returnValues']->bbcodeID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(BBCodeEditForm::class, ['id' => $returnValues['returnValues']->bbcodeID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('BBCodeMediaProviderEdit', ['id' => $provider->providerID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(BBCodeMediaProviderEditForm::class, ['id' => $provider->providerID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('BoxEdit', ['id' => $box->getObjectID()]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(BoxEditForm::class, ['id' => $box->getObjectID()]),
]);
// reset variables
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('CaptchaQuestionEdit', ['id' => $questionID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(CaptchaQuestionEditForm::class, ['id' => $questionID]),
]);
}
parent::save();
WCF::getTPL()->assign([
- 'objectEditLink' => LinkHandler::getInstance()->getLink('ContactOptionEdit', ['id' => $this->objectAction->executeAction()['returnValues']->getObjectID()]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ContactOptionEditForm::class, ['id' => $this->objectAction->executeAction()['returnValues']->getObjectID()]),
]);
}
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('ContactRecipientEdit', ['id' => $recipientID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ContactRecipientEditForm::class, ['id' => $recipientID]),
]);
// reset values
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('CronjobEdit', ['id' => $cronjobID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(CronjobEditForm::class, ['id' => $cronjobID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('LabelEdit', ['id' => $labelID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(LabelEditForm::class, ['id' => $labelID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('LabelGroupEdit', ['id' => $returnValues['returnValues']->groupID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(LabelGroupEditForm::class, ['id' => $returnValues['returnValues']->groupID]),
]);
I18nHandler::getInstance()->reset();
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('LanguageEdit', ['id' => $this->language->languageID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(LanguageEditForm::class, ['id' => $this->language->languageID]),
]);
// reset values
parent::save();
WCF::getTPL()->assign([
- 'objectEditLink' => LinkHandler::getInstance()->getLink('MediaCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(MediaCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
]);
}
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('MenuEdit', ['id' => $menuEditor->menuID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(MenuEditForm::class, ['id' => $menuEditor->menuID]),
]);
I18nHandler::getInstance()->reset();
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('MenuItemEdit', ['id' => $menuItem->itemID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(MenuItemEditForm::class, ['id' => $menuItem->itemID]),
]);
// reset variables
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('NoticeEdit', ['id' => $returnValues['returnValues']->noticeID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(NoticeEditForm::class, ['id' => $returnValues['returnValues']->noticeID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('PackageUpdateServerEdit', ['id' => $returnValues['returnValues']->packageUpdateServerID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(PackageUpdateServerEditForm::class, ['id' => $returnValues['returnValues']->packageUpdateServerID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('PageEdit', ['id' => $page->pageID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(PageEditForm::class, ['id' => $page->pageID]),
]);
// reset variables
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('PaidSubscriptionEdit', ['id' => $returnValues['returnValues']->subscriptionID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(PaidSubscriptionEditForm::class, ['id' => $returnValues['returnValues']->subscriptionID]),
]);
}
/**
* @inheritDoc
*/
- public $objectEditLinkController = 'ReactionTypeEdit';
+ public $objectEditLinkController = ReactionTypeEditForm::class;
/**
* @inheritDoc
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('SmileyEdit', ['id' => $smileyID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(SmileyEditForm::class, ['id' => $smileyID]),
]);
}
parent::save();
WCF::getTPL()->assign([
- 'objectEditLink' => LinkHandler::getInstance()->getLink('SmileyCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(SmileyCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
]);
}
}
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('StyleEdit', ['id' => $style->styleID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(StyleEditForm::class, ['id' => $style->styleID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('TagEdit', ['id' => $returnValues['returnValues']->tagID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TagEditForm::class, ['id' => $returnValues['returnValues']->tagID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('TemplateEdit', ['id' => $returnValues['returnValues']->templateID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TemplateEditForm::class, ['id' => $returnValues['returnValues']->templateID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('TemplateGroupEdit', ['id' => $returnValues['returnValues']->templateGroupID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TemplateGroupEditForm::class, ['id' => $returnValues['returnValues']->templateGroupID]),
]);
}
$this->reset();
WCF::getTPL()->assign([
- 'objectEditLink' => LinkHandler::getInstance()->getLink('TrophyEdit', ['id' => $returnValues['returnValues']->trophyID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TrophyEditForm::class, ['id' => $returnValues['returnValues']->trophyID]),
]);
}
parent::save();
WCF::getTPL()->assign([
- 'objectEditLink' => LinkHandler::getInstance()->getLink('TrophyCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(TrophyCategoryEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
]);
}
}
// show empty add form
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('UserEdit', ['id' => $returnValues['returnValues']->userID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserEditForm::class, ['id' => $returnValues['returnValues']->userID]),
]);
// reset values
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('UserGroupEdit', ['id' => $groupID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserGroupEditForm::class, ['id' => $groupID]),
]);
// reset values
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('UserGroupAssignmentEdit', ['id' => $returnValues['returnValues']->assignmentID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserGroupAssignmentEditForm::class, ['id' => $returnValues['returnValues']->assignmentID]),
]);
}
// show success
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('UserOptionEdit', ['id' => $userOption->optionID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserOptionEditForm::class, ['id' => $userOption->optionID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('UserOptionCategoryEdit', ['id' => $categoryID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserOptionCategoryEditForm::class, ['id' => $categoryID]),
]);
}
// show success message
WCF::getTPL()->assign([
'success' => true,
- 'objectEditLink' => LinkHandler::getInstance()->getLink('UserRankEdit', ['id' => $rankID]),
+ 'objectEditLink' => LinkHandler::getInstance()->getControllerLink(UserRankEditForm::class, ['id' => $rankID]),
]);
}
WCF::getTPL()->assign('success', true);
if ($this->formAction === 'create' && $this->objectEditLinkController) {
- WCF::getTPL()->assign('objectEditLink', LinkHandler::getInstance()->getLink($this->objectEditLinkController, [
+ WCF::getTPL()->assign('objectEditLink', LinkHandler::getInstance()->getControllerLink($this->objectEditLinkController, [
'application' => $this->objectEditLinkApplication,
'id' => $this->objectAction->getReturnValues()['returnValues']->getObjectID(),
]));