Skip to content

Commit 46654ab

Browse files
authored
Merge pull request #1 from ILIAS-eLearning/release_5-4
Update des Forks
2 parents 6914782 + 5fd1d46 commit 46654ab

5,955 files changed

Lines changed: 1467175 additions & 1392263 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Modules/Bibliographic/classes/Admin/Facade/class.ilBiblAdminFactoryFacade.php

Lines changed: 97 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -5,93 +5,101 @@
55
*
66
* @author Fabian Schmid <fs@studer-raimann.ch>
77
*/
8-
class ilBiblAdminFactoryFacade implements ilBiblAdminFactoryFacadeInterface {
9-
10-
/**
11-
* @var \ilBiblTranslationFactory
12-
*/
13-
protected $translation_factory;
14-
/**
15-
* @var \ilBiblFieldFactory
16-
*/
17-
protected $field_factory;
18-
/**
19-
* @var \ilBiblTypeInterface|\ilBibTex|\ilRis
20-
*/
21-
protected $type;
22-
/**
23-
* @var \ilBiblTypeFactory
24-
*/
25-
protected $type_factory;
26-
/**
27-
* @var int
28-
*/
29-
protected $object_id;
30-
/**
31-
* @var int
32-
*/
33-
protected $ref_id;
34-
35-
36-
/**
37-
* ilBiblAdminFactoryFacade constructor.
38-
*
39-
* @param \ilObjBibliographicAdmin $ilObjBibliographicAdmin
40-
*/
41-
public function __construct(ilObjBibliographicAdmin $ilObjBibliographicAdmin, $type_id) {
42-
$this->object_id = $ilObjBibliographicAdmin->getId();
43-
$this->ref_id = $ilObjBibliographicAdmin->getRefId();
44-
$this->type_factory = new ilBiblTypeFactory();
45-
$this->type = $this->type_factory->getInstanceForType($type_id);
46-
$this->field_factory = new ilBiblFieldFactory($this->type);
47-
$this->translation_factory = new ilBiblTranslationFactory($this->field_factory);
48-
}
49-
50-
51-
/**
52-
* @inheritDoc
53-
*/
54-
public function typeFactory() {
55-
return $this->type_factory;
56-
}
57-
58-
59-
/**
60-
* @inheritDoc
61-
*/
62-
public function type() {
63-
return $this->type;
64-
}
65-
66-
67-
/**
68-
* @inheritDoc
69-
*/
70-
public function translationFactory() {
71-
return $this->translation_factory;
72-
}
73-
74-
75-
/**
76-
* @inheritDoc
77-
*/
78-
public function fieldFactory() {
79-
return $this->field_factory;
80-
}
81-
82-
83-
/**
84-
* @inheritDoc
85-
*/
86-
public function iliasObjId() {
87-
return $this->object_id;
88-
}
89-
90-
91-
/**
92-
* @inheritDoc
93-
*/
94-
public function iliasRefId() {
95-
return $this->ref_id;
96-
}
8+
class ilBiblAdminFactoryFacade implements ilBiblAdminFactoryFacadeInterface
9+
{
10+
11+
/**
12+
* @var \ilBiblTranslationFactory
13+
*/
14+
protected $translation_factory;
15+
/**
16+
* @var \ilBiblFieldFactory
17+
*/
18+
protected $field_factory;
19+
/**
20+
* @var \ilBiblTypeInterface|\ilBibTex|\ilRis
21+
*/
22+
protected $type;
23+
/**
24+
* @var \ilBiblTypeFactory
25+
*/
26+
protected $type_factory;
27+
/**
28+
* @var int
29+
*/
30+
protected $object_id;
31+
/**
32+
* @var int
33+
*/
34+
protected $ref_id;
35+
36+
37+
/**
38+
* ilBiblAdminFactoryFacade constructor.
39+
*
40+
* @param \ilObjBibliographicAdmin $ilObjBibliographicAdmin
41+
*/
42+
public function __construct(ilObjBibliographicAdmin $ilObjBibliographicAdmin, $type_id)
43+
{
44+
$this->object_id = $ilObjBibliographicAdmin->getId();
45+
$this->ref_id = $ilObjBibliographicAdmin->getRefId();
46+
$this->type_factory = new ilBiblTypeFactory();
47+
$this->type = $this->type_factory->getInstanceForType($type_id);
48+
$this->field_factory = new ilBiblFieldFactory($this->type);
49+
$this->translation_factory = new ilBiblTranslationFactory($this->field_factory);
50+
}
51+
52+
53+
/**
54+
* @inheritDoc
55+
*/
56+
public function typeFactory()
57+
{
58+
return $this->type_factory;
59+
}
60+
61+
62+
/**
63+
* @inheritDoc
64+
*/
65+
public function type()
66+
{
67+
return $this->type;
68+
}
69+
70+
71+
/**
72+
* @inheritDoc
73+
*/
74+
public function translationFactory()
75+
{
76+
return $this->translation_factory;
77+
}
78+
79+
80+
/**
81+
* @inheritDoc
82+
*/
83+
public function fieldFactory()
84+
{
85+
return $this->field_factory;
86+
}
87+
88+
89+
/**
90+
* @inheritDoc
91+
*/
92+
public function iliasObjId()
93+
{
94+
return $this->object_id;
95+
}
96+
97+
98+
/**
99+
* @inheritDoc
100+
*/
101+
public function iliasRefId()
102+
{
103+
return $this->ref_id;
104+
}
97105
}

Modules/Bibliographic/classes/Admin/Facade/class.ilBiblAdminLibraryFacade.php

Lines changed: 50 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,54 @@
55
*
66
* @author Fabian Schmid <fs@studer-raimann.ch>
77
*/
8-
class ilBiblAdminLibraryFacade implements ilBiblAdminLibraryFacadeInterface {
9-
10-
/**
11-
* @var int
12-
*/
13-
protected $object_id;
14-
/**
15-
* @var int
16-
*/
17-
protected $ref_id;
18-
19-
20-
/**
21-
* ilBiblAdminLibraryFacade constructor.
22-
*
23-
* @param \ilObjBibliographicAdmin $ilias_object
24-
*/
25-
public function __construct(ilObjBibliographicAdmin $ilias_object) {
26-
$this->object_id = $ilias_object->getId();
27-
$this->ref_id = $ilias_object->getRefId();
28-
}
29-
30-
31-
/**
32-
* @inheritDoc
33-
*/
34-
public function iliasObjId() {
35-
return $this->object_id;
36-
}
37-
38-
39-
/**
40-
* @inheritDoc
41-
*/
42-
public function iliasRefId() {
43-
return $this->ref_id;
44-
}
45-
46-
47-
/**
48-
* @inheritDoc
49-
*/
50-
public function libraryFactory() {
51-
return new ilBiblLibraryFactory();
52-
}
8+
class ilBiblAdminLibraryFacade implements ilBiblAdminLibraryFacadeInterface
9+
{
10+
11+
/**
12+
* @var int
13+
*/
14+
protected $object_id;
15+
/**
16+
* @var int
17+
*/
18+
protected $ref_id;
19+
20+
21+
/**
22+
* ilBiblAdminLibraryFacade constructor.
23+
*
24+
* @param \ilObjBibliographicAdmin $ilias_object
25+
*/
26+
public function __construct(ilObjBibliographicAdmin $ilias_object)
27+
{
28+
$this->object_id = $ilias_object->getId();
29+
$this->ref_id = $ilias_object->getRefId();
30+
}
31+
32+
33+
/**
34+
* @inheritDoc
35+
*/
36+
public function iliasObjId()
37+
{
38+
return $this->object_id;
39+
}
40+
41+
42+
/**
43+
* @inheritDoc
44+
*/
45+
public function iliasRefId()
46+
{
47+
return $this->ref_id;
48+
}
49+
50+
51+
/**
52+
* @inheritDoc
53+
*/
54+
public function libraryFactory()
55+
{
56+
return new ilBiblLibraryFactory();
57+
}
5358
}

0 commit comments

Comments
 (0)