forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ILIAS-eLearning/release_5-4
Update des Forks
- Loading branch information
Showing
5,955 changed files
with
1,467,175 additions
and
1,392,263 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,93 +5,101 @@ | |
* | ||
* @author Fabian Schmid <[email protected]> | ||
*/ | ||
class ilBiblAdminFactoryFacade implements ilBiblAdminFactoryFacadeInterface { | ||
|
||
/** | ||
* @var \ilBiblTranslationFactory | ||
*/ | ||
protected $translation_factory; | ||
/** | ||
* @var \ilBiblFieldFactory | ||
*/ | ||
protected $field_factory; | ||
/** | ||
* @var \ilBiblTypeInterface|\ilBibTex|\ilRis | ||
*/ | ||
protected $type; | ||
/** | ||
* @var \ilBiblTypeFactory | ||
*/ | ||
protected $type_factory; | ||
/** | ||
* @var int | ||
*/ | ||
protected $object_id; | ||
/** | ||
* @var int | ||
*/ | ||
protected $ref_id; | ||
|
||
|
||
/** | ||
* ilBiblAdminFactoryFacade constructor. | ||
* | ||
* @param \ilObjBibliographicAdmin $ilObjBibliographicAdmin | ||
*/ | ||
public function __construct(ilObjBibliographicAdmin $ilObjBibliographicAdmin, $type_id) { | ||
$this->object_id = $ilObjBibliographicAdmin->getId(); | ||
$this->ref_id = $ilObjBibliographicAdmin->getRefId(); | ||
$this->type_factory = new ilBiblTypeFactory(); | ||
$this->type = $this->type_factory->getInstanceForType($type_id); | ||
$this->field_factory = new ilBiblFieldFactory($this->type); | ||
$this->translation_factory = new ilBiblTranslationFactory($this->field_factory); | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function typeFactory() { | ||
return $this->type_factory; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function type() { | ||
return $this->type; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function translationFactory() { | ||
return $this->translation_factory; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function fieldFactory() { | ||
return $this->field_factory; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasObjId() { | ||
return $this->object_id; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasRefId() { | ||
return $this->ref_id; | ||
} | ||
class ilBiblAdminFactoryFacade implements ilBiblAdminFactoryFacadeInterface | ||
{ | ||
|
||
/** | ||
* @var \ilBiblTranslationFactory | ||
*/ | ||
protected $translation_factory; | ||
/** | ||
* @var \ilBiblFieldFactory | ||
*/ | ||
protected $field_factory; | ||
/** | ||
* @var \ilBiblTypeInterface|\ilBibTex|\ilRis | ||
*/ | ||
protected $type; | ||
/** | ||
* @var \ilBiblTypeFactory | ||
*/ | ||
protected $type_factory; | ||
/** | ||
* @var int | ||
*/ | ||
protected $object_id; | ||
/** | ||
* @var int | ||
*/ | ||
protected $ref_id; | ||
|
||
|
||
/** | ||
* ilBiblAdminFactoryFacade constructor. | ||
* | ||
* @param \ilObjBibliographicAdmin $ilObjBibliographicAdmin | ||
*/ | ||
public function __construct(ilObjBibliographicAdmin $ilObjBibliographicAdmin, $type_id) | ||
{ | ||
$this->object_id = $ilObjBibliographicAdmin->getId(); | ||
$this->ref_id = $ilObjBibliographicAdmin->getRefId(); | ||
$this->type_factory = new ilBiblTypeFactory(); | ||
$this->type = $this->type_factory->getInstanceForType($type_id); | ||
$this->field_factory = new ilBiblFieldFactory($this->type); | ||
$this->translation_factory = new ilBiblTranslationFactory($this->field_factory); | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function typeFactory() | ||
{ | ||
return $this->type_factory; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function type() | ||
{ | ||
return $this->type; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function translationFactory() | ||
{ | ||
return $this->translation_factory; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function fieldFactory() | ||
{ | ||
return $this->field_factory; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasObjId() | ||
{ | ||
return $this->object_id; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasRefId() | ||
{ | ||
return $this->ref_id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,49 +5,54 @@ | |
* | ||
* @author Fabian Schmid <[email protected]> | ||
*/ | ||
class ilBiblAdminLibraryFacade implements ilBiblAdminLibraryFacadeInterface { | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $object_id; | ||
/** | ||
* @var int | ||
*/ | ||
protected $ref_id; | ||
|
||
|
||
/** | ||
* ilBiblAdminLibraryFacade constructor. | ||
* | ||
* @param \ilObjBibliographicAdmin $ilias_object | ||
*/ | ||
public function __construct(ilObjBibliographicAdmin $ilias_object) { | ||
$this->object_id = $ilias_object->getId(); | ||
$this->ref_id = $ilias_object->getRefId(); | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasObjId() { | ||
return $this->object_id; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasRefId() { | ||
return $this->ref_id; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function libraryFactory() { | ||
return new ilBiblLibraryFactory(); | ||
} | ||
class ilBiblAdminLibraryFacade implements ilBiblAdminLibraryFacadeInterface | ||
{ | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $object_id; | ||
/** | ||
* @var int | ||
*/ | ||
protected $ref_id; | ||
|
||
|
||
/** | ||
* ilBiblAdminLibraryFacade constructor. | ||
* | ||
* @param \ilObjBibliographicAdmin $ilias_object | ||
*/ | ||
public function __construct(ilObjBibliographicAdmin $ilias_object) | ||
{ | ||
$this->object_id = $ilias_object->getId(); | ||
$this->ref_id = $ilias_object->getRefId(); | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasObjId() | ||
{ | ||
return $this->object_id; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function iliasRefId() | ||
{ | ||
return $this->ref_id; | ||
} | ||
|
||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function libraryFactory() | ||
{ | ||
return new ilBiblLibraryFactory(); | ||
} | ||
} |
Oops, something went wrong.