ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Class ilBiblTranslationFactory. More...
Public Member Functions | |
__construct (protected \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 | |
Container | $dic |
Private Member Functions | |
translateInCore (ilBiblFieldInterface $field) | |
getCollectionOfTranslationsForField (ilBiblFieldInterface $field) | |
Class ilBiblTranslationFactory.
Definition at line 25 of file class.ilBiblTranslationFactory.php.
ilBiblTranslationFactory::__construct | ( | protected \ilBiblFieldFactoryInterface | $field_factory | ) |
ilBiblTranslationFactory constructor.
Definition at line 32 of file class.ilBiblTranslationFactory.php.
References $DIC.
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.
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 27 of file class.ilBiblTranslationFactory.php.