19declare(strict_types=1);
36 $this->repo =
$repo->step();
41 return $this->repo->create($step);
46 $this->repo->update($step);
51 return $this->repo->getById(
$id);
56 $lng = $this->domain->lng();
57 return match($step_type) {
58 StepType::Mainbar =>
$lng->txt(
"gdtr_mainbar"),
59 StepType::Metabar =>
$lng->txt(
"gdtr_metabar"),
60 StepType::Tab =>
$lng->txt(
"gdtr_tabs"),
61 StepType::Form =>
$lng->txt(
"gdtr_form"),
62 StepType::Table =>
$lng->txt(
"gdtr_table"),
64 StepType::Toolbar =>
$lng->txt(
"gdtr_toolbar"),
74 yield
from $this->repo->getStepsOfTour($tour_id);
79 return $this->repo->countStepsOfTour($tour_id);
82 public function saveOrder(
int $tour_id, array $order): void
84 $this->repo->saveOrder($tour_id, $order);
87 public function delete(
int $tour_id,
int $step_id):
void
89 $this->repo->delete($tour_id, $step_id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
countStepsOfTour(int $tour_id)
getStepsOfTour(int $tour_id)
saveOrder(int $tour_id, array $order)
__construct(protected InternalDataService $data, InternalRepoService $repo, protected InternalDomainService $domain,)
getStepName(StepType $step_type)