ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent Class Reference
+ Inheritance diagram for ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent:
+ Collaboration diagram for ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent:

Public Member Functions

 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (?Config $config=null)
 
 getBuildObjective ()
 
 getStatusObjective (Metrics\Storage $storage)
 
 getMigrations ()
 
 getNamedObjectives (?Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 

Protected Member Functions

 getOrgUnitObjectives ()
 

Detailed Description

Author
Nicolas Schaefli nick@.nosp@m.flux.nosp@m.labs..nosp@m.ch

Definition at line 35 of file class.ilEmployeeTalkSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getArrayToConfigTransformation ( )

Definition at line 42 of file class.ilEmployeeTalkSetupAgent.php.

42  : Transformation
43  {
44  throw new \LogicException(
45  self::class . " has no config."
46  );
47  }

◆ getBuildObjective()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getBuildObjective ( )

Definition at line 54 of file class.ilEmployeeTalkSetupAgent.php.

54  : Objective
55  {
56  return new Objective\NullObjective();
57  }

◆ getInstallObjective()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getInstallObjective ( ?Config  $config = null)

Definition at line 49 of file class.ilEmployeeTalkSetupAgent.php.

49  : Objective
50  {
51  return new \ilTreeAdminNodeAddedObjective('tala', '__TalkTemplateAdministration');
52  }

◆ getMigrations()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getMigrations ( )

Definition at line 64 of file class.ilEmployeeTalkSetupAgent.php.

64  : array
65  {
66  return [];
67  }

◆ getNamedObjectives()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getNamedObjectives ( ?Config  $config = null)

Definition at line 69 of file class.ilEmployeeTalkSetupAgent.php.

69  : array
70  {
71  return [];
72  }

◆ getOrgUnitObjectives()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getOrgUnitObjectives ( )
protected

Definition at line 86 of file class.ilEmployeeTalkSetupAgent.php.

References $objectives, ilOrgUnitOperationContext\CONTEXT_ETAL, ilOrgUnitOperationContext\CONTEXT_OBJECT, ilOrgUnitOperation\OP_CREATE_EMPLOYEE_TALK, ilOrgUnitOperation\OP_EDIT_EMPLOYEE_TALK, and ilOrgUnitOperation\OP_READ_EMPLOYEE_TALK.

Referenced by ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent\getUpdateObjective().

86  : array
87  {
88  $objectives = [];
89 
90  $objectives[] = new \ilOrgUnitOperationContextRegisteredObjective(
93  );
94 
95  $objectives[] = new \ilOrgUnitOperationRegisteredObjective(
97  'Read Employee Talk',
99  );
100 
101  $objectives[] = new \ilOrgUnitOperationRegisteredObjective(
103  'Create Employee Talk',
105  );
106 
107  $objectives[] = new \ilOrgUnitOperationRegisteredObjective(
109  'Edit Employee Talk (not only own)',
111  );
112 
113  return $objectives;
114  }
$objectives
+ Here is the caller graph for this function:

◆ getStatusObjective()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getStatusObjective ( Metrics\Storage  $storage)

Definition at line 59 of file class.ilEmployeeTalkSetupAgent.php.

59  : Objective
60  {
61  return new \ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new ilEmployeeTalkDBUpdateSteps());
62  }

◆ getUpdateObjective()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 75 of file class.ilEmployeeTalkSetupAgent.php.

References ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent\getOrgUnitObjectives().

75  : Setup\Objective
76  {
77  return new Setup\ObjectiveCollection(
78  'Employee Talks',
79  true,
80  new \ilTreeAdminNodeAddedObjective('tala', '__TalkTemplateAdministration'),
81  new \ilDatabaseUpdateStepsExecutedObjective(new ilEmployeeTalkDBUpdateSteps()),
82  ...$this->getOrgUnitObjectives()
83  );
84  }
+ Here is the call graph for this function:

◆ hasConfig()

ILIAS\EmployeeTalk\Setup\ilEmployeeTalkSetupAgent::hasConfig ( )

Definition at line 37 of file class.ilEmployeeTalkSetupAgent.php.

37  : bool
38  {
39  return false;
40  }

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