Skip to content

Commit

Permalink
PSR-2 (+X) Big Bang
Browse files Browse the repository at this point in the history
As announced on 2019-05-19 via developers@ and PR, this commit introduces the
[new ILIAS coding style](https://github.com/ILIAS-TechnicalBoard/ILIAS/blob/trunk_coding_style/docs/documentation/coding-style.md)
to release_6.
  • Loading branch information
klees committed Dec 11, 2019
1 parent 78312b7 commit e04362c
Show file tree
Hide file tree
Showing 4,116 changed files with 859,210 additions and 888,507 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Expand Up @@ -5,93 +5,101 @@
*
* @author Fabian Schmid <fs@studer-raimann.ch>
*/
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;
}
}
Expand Up @@ -5,49 +5,54 @@
*
* @author Fabian Schmid <fs@studer-raimann.ch>
*/
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();
}
}

0 comments on commit e04362c

Please sign in to comment.