ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilBiblFieldFactoryInterface $field_factory) | |
ilBiblTranslationFactory constructor. More... | |
translate (ilBiblFieldInterface $field) | |
Translates a field in the current users language in tho folowing order: More... | |
translateAttribute (ilBiblAttributeInterface $attribute) | |
translateAttributeString (int $type_id, ilBiblAttributeInterface $attribute) | |
getFieldFactory () | |
translationExistsForFieldAndUsersLanguage (ilBiblFieldInterface $field) | |
translationExistsForFieldAndSystemsLanguage (ilBiblFieldInterface $field) | |
translationExistsForField (ilBiblFieldInterface $field) | |
getInstanceForFieldAndUsersLanguage (ilBiblFieldInterface $field) | |
getInstanceForFieldAndSystemsLanguage (ilBiblFieldInterface $field) | |
findArCreateInstanceForFieldAndlanguage (ilBiblFieldInterface $field, string $language_key) | |
getAllTranslationsForField (ilBiblFieldInterface $field) | |
getAllTranslationsForFieldAsArray (ilBiblFieldInterface $field) | |
findById (int $id) | |
deleteById (int $id) | |
Protected Attributes | |
ILIAS DI Container | $dic |
ilBiblFieldFactoryInterface | $field_factory |
Private Member Functions | |
translateInCore (ilBiblFieldInterface $field) | |
getCollectionOfTranslationsForField (ilBiblFieldInterface $field) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilBiblTranslationFactory
Definition at line 23 of file class.ilBiblTranslationFactory.php.
ilBiblTranslationFactory::__construct | ( | ilBiblFieldFactoryInterface | $field_factory | ) |
ilBiblTranslationFactory constructor.
Definition at line 31 of file class.ilBiblTranslationFactory.php.
References $DIC, and $field_factory.
ilBiblTranslationFactory::deleteById | ( | int | $id | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 192 of file class.ilBiblTranslationFactory.php.
ilBiblTranslationFactory::findArCreateInstanceForFieldAndlanguage | ( | ilBiblFieldInterface | $field, |
string | $language_key | ||
) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 141 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField(), and ilBiblFieldInterface\getId().
ilBiblTranslationFactory::findById | ( | int | $id | ) |
PhpIncompatibleReturnTypeInspection
Implements ilBiblTranslationFactoryInterface.
Definition at line 183 of file class.ilBiblTranslationFactory.php.
References ActiveRecord\findOrFail().
ilBiblTranslationFactory::getAllTranslationsForField | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 162 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField().
ilBiblTranslationFactory::getAllTranslationsForFieldAsArray | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 170 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField().
|
private |
Definition at line 175 of file class.ilBiblTranslationFactory.php.
References ilBiblFieldInterface\getId(), and ActiveRecord\where().
Referenced by findArCreateInstanceForFieldAndlanguage(), getAllTranslationsForField(), getAllTranslationsForFieldAsArray(), getInstanceForFieldAndSystemsLanguage(), getInstanceForFieldAndUsersLanguage(), and translationExistsForField().
ilBiblTranslationFactory::getFieldFactory | ( | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 71 of file class.ilBiblTranslationFactory.php.
References $field_factory.
Referenced by translateAttributeString(), and translateInCore().
ilBiblTranslationFactory::getInstanceForFieldAndSystemsLanguage | ( | ilBiblFieldInterface | $field | ) |
PhpIncompatibleReturnTypeInspection
Implements ilBiblTranslationFactoryInterface.
Definition at line 127 of file class.ilBiblTranslationFactory.php.
References $DIC, $lng, and getCollectionOfTranslationsForField().
Referenced by translate(), and translationExistsForFieldAndSystemsLanguage().
ilBiblTranslationFactory::getInstanceForFieldAndUsersLanguage | ( | ilBiblFieldInterface | $field | ) |
PhpIncompatibleReturnTypeInspection
Implements ilBiblTranslationFactoryInterface.
Definition at line 114 of file class.ilBiblTranslationFactory.php.
References $DIC, and getCollectionOfTranslationsForField().
Referenced by translate(), and translationExistsForFieldAndUsersLanguage().
ilBiblTranslationFactory::translate | ( | ilBiblFieldInterface | $field | ) |
Translates a field in the current users language in tho folowing order:
Implements ilBiblTranslationFactoryInterface.
Definition at line 38 of file class.ilBiblTranslationFactory.php.
References ilBiblFieldInterface\getIdentifier(), getInstanceForFieldAndSystemsLanguage(), getInstanceForFieldAndUsersLanguage(), translateInCore(), translationExistsForFieldAndSystemsLanguage(), and translationExistsForFieldAndUsersLanguage().
Referenced by translateAttribute(), and translateAttributeString().
ilBiblTranslationFactory::translateAttribute | ( | ilBiblAttributeInterface | $attribute | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 55 of file class.ilBiblTranslationFactory.php.
References translate().
ilBiblTranslationFactory::translateAttributeString | ( | int | $type_id, |
ilBiblAttributeInterface | $attribute | ||
) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 63 of file class.ilBiblTranslationFactory.php.
References getFieldFactory(), and translate().
|
private |
Definition at line 76 of file class.ilBiblTranslationFactory.php.
References getFieldFactory(), and ilBiblFieldInterface\getIdentifier().
Referenced by translate().
ilBiblTranslationFactory::translationExistsForField | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 106 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField().
ilBiblTranslationFactory::translationExistsForFieldAndSystemsLanguage | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 98 of file class.ilBiblTranslationFactory.php.
References getInstanceForFieldAndSystemsLanguage().
Referenced by translate().
ilBiblTranslationFactory::translationExistsForFieldAndUsersLanguage | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 90 of file class.ilBiblTranslationFactory.php.
References getInstanceForFieldAndUsersLanguage().
Referenced by translate().
|
protected |
Definition at line 25 of file class.ilBiblTranslationFactory.php.
|
protected |
Definition at line 26 of file class.ilBiblTranslationFactory.php.
Referenced by __construct(), and getFieldFactory().