Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
languagejs
{
    "repositories": [
        {
            "repository": "MyRepository",
            "prohibited": [
                "CopyRoot",
                "CopyDefault",
                "CopyRelate",
                "CopyRecursive",
                "DeleteDefault",
                "DeleteRecursive"
            ],
            "multiple": false,
            "guidedActions": [
                {
                    "identifier": "myGuidedAction",
                    "label": {
                        "de": "Lorem Ipsum...",
                        "en": "Lorem Ipsum..."
                    },
                    "actions": [
                        "CopyRecursive",
                        "DeleteRecursive"
                    ],
                    "multiple": false,
                    "nodes": [
                        {
                            "repository": "MyRepository",
                            "nodes": [
                                {
                                    "repository": "MyChildRepository"
                                }
                            ],
                            "relateOnly": false,
                            "withTranslation": true
                         }
                    ]
                }
            ]
        }
    ]
}

Beispiel

Codeblock
languagephp
use Brandbox\Framework\Brandbox\Crud;  

$ids = [1,2,3,4,5];
$entities = ['MyRepository' => $ids]  

$logger = $this
  ->staticController(Crud\CrudManager::class)
  ->copy($entities, 'myGuidedAction')
;

$logger = $this
  ->staticController(Crud\CrudManager::class)
  ->delete($entities, 'myGuidedAction')
;

...