ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ILIAS\Help\GuidedTour\Step\StepManager Class Reference
+ Collaboration diagram for ILIAS\Help\GuidedTour\Step\StepManager:

Public Member Functions

 __construct (protected InternalDataService $data, InternalRepoService $repo, protected InternalDomainService $domain,)
 
 create (Step $step)
 
 update (Step $step)
 
 getById (int $id)
 
 getStepName (StepType $step_type)
 
 getStepsOfTour (int $tour_id)
 
 countStepsOfTour (int $tour_id)
 
 saveOrder (int $tour_id, array $order)
 
 delete (int $tour_id, int $step_id)
 

Protected Attributes

StepDBRepository $repo
 

Detailed Description

Definition at line 27 of file StepManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Help\GuidedTour\Step\StepManager::__construct ( protected InternalDataService  $data,
InternalRepoService  $repo,
protected InternalDomainService  $domain 
)

Definition at line 31 of file StepManager.php.

35 {
36 $this->repo = $repo->step();
37 }

References ILIAS\Help\GuidedTour\Step\StepManager\$repo.

Member Function Documentation

◆ countStepsOfTour()

ILIAS\Help\GuidedTour\Step\StepManager::countStepsOfTour ( int  $tour_id)

Definition at line 77 of file StepManager.php.

77 : int
78 {
79 return $this->repo->countStepsOfTour($tour_id);
80 }

◆ create()

ILIAS\Help\GuidedTour\Step\StepManager::create ( Step  $step)

Definition at line 39 of file StepManager.php.

39 : int
40 {
41 return $this->repo->create($step);
42 }

◆ delete()

ILIAS\Help\GuidedTour\Step\StepManager::delete ( int  $tour_id,
int  $step_id 
)

Definition at line 87 of file StepManager.php.

87 : void
88 {
89 $this->repo->delete($tour_id, $step_id);
90 }

◆ getById()

ILIAS\Help\GuidedTour\Step\StepManager::getById ( int  $id)

Definition at line 49 of file StepManager.php.

49 : ?Step
50 {
51 return $this->repo->getById($id);
52 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

◆ getStepName()

ILIAS\Help\GuidedTour\Step\StepManager::getStepName ( StepType  $step_type)

Definition at line 54 of file StepManager.php.

54 : string
55 {
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"),
63 StepType::PrimaryButton => $lng->txt("gdtr_primary_button"),
64 StepType::Toolbar => $lng->txt("gdtr_toolbar"),
65 };
66 }
global $lng
Definition: privfeed.php:31

References $lng, and ILIAS\Help\GuidedTour\Step\PrimaryButton.

◆ getStepsOfTour()

ILIAS\Help\GuidedTour\Step\StepManager::getStepsOfTour ( int  $tour_id)
Returns
\Generator<Step>

Definition at line 72 of file StepManager.php.

72 : \Generator
73 {
74 yield from $this->repo->getStepsOfTour($tour_id);
75 }

References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().

+ Here is the call graph for this function:

◆ saveOrder()

ILIAS\Help\GuidedTour\Step\StepManager::saveOrder ( int  $tour_id,
array  $order 
)

Definition at line 82 of file StepManager.php.

82 : void
83 {
84 $this->repo->saveOrder($tour_id, $order);
85 }

◆ update()

ILIAS\Help\GuidedTour\Step\StepManager::update ( Step  $step)

Definition at line 44 of file StepManager.php.

44 : void
45 {
46 $this->repo->update($step);
47 }

Field Documentation

◆ $repo

StepDBRepository ILIAS\Help\GuidedTour\Step\StepManager::$repo
protected

Definition at line 29 of file StepManager.php.

Referenced by ILIAS\Help\GuidedTour\Step\StepManager\__construct().


The documentation for this class was generated from the following file: