Created
January 19, 2017 11:52
-
-
Save joshuaruesweg/77fa87af859d7d59d10a8e65adada00d to your computer and use it in GitHub Desktop.
Example to reproduce an bug
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
<?php | |
$this->objectAction = new \wcf\data\menu\item\MenuItemAction([], 'create', ['data' => [ | |
'title' => 'Mein super toller Titel!', | |
'pageID' => \wcf\data\page\Page::getPageByIdentifier('de.wcflabs.example.examplePage')->pageID, // dein page identifer | |
'pageObjectID' => 1337, // die object id! | |
'menuID' => $menuID, // zu wechem Menü, dzu die menuID | |
'parentItemID' => $parentItemID, // parent item, wenn es eins gibt. | |
'showOrder' => $showOrder, // in welcher reihenfolge soll es angezeigt werden | |
'identifier' => \wcf\util\StringUtil::getRandomID(), | |
'packageID' => 1337 // deine package id, bekommst du über die Package-Klasse | |
]]); | |
$this->objectAction->executeAction(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment