ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilBiblTranslationFactory. More...
Public Member Functions | |
__construct (ilBiblFieldFactoryInterface $field_factory) | |
ilBiblTranslationFactory constructor. More... | |
translate (ilBiblFieldInterface $field) | |
translateAttribute (ilBiblAttributeInterface $attribute) | |
translateAttributeString ($type_id, ilBiblAttributeInterface $attribute) | |
getFieldFactory () | |
translationExistsForFieldAndUsersLanguage (ilBiblFieldInterface $field) | |
translationExistsForFieldAndSystemsLanguage (ilBiblFieldInterface $field) | |
translationExistsForField (ilBiblFieldInterface $field) | |
getInstanceForFieldAndUsersLanguage (ilBiblFieldInterface $field) | |
getInstanceForFieldAndSystemsLanguage (ilBiblFieldInterface $field) | |
findArCreateInstanceForFieldAndlanguage (ilBiblFieldInterface $field, $language_key) | |
getAllTranslationsForField (ilBiblFieldInterface $field) | |
getAllTranslationsForFieldAsArray (ilBiblFieldInterface $field) | |
findById ($id) | |
deleteById ($id) | |
Protected Attributes | |
$dic | |
$field_factory | |
Private Member Functions | |
translateInCore (ilBiblFieldInterface $field) | |
getCollectionOfTranslationsForField (ilBiblFieldInterface $field) | |
Class ilBiblTranslationFactory.
Definition at line 8 of file class.ilBiblTranslationFactory.php.
ilBiblTranslationFactory::__construct | ( | ilBiblFieldFactoryInterface | $field_factory | ) |
ilBiblTranslationFactory constructor.
\ilBiblFieldFactoryInterface | $field_factory |
Definition at line 26 of file class.ilBiblTranslationFactory.php.
References $DIC, and $field_factory.
ilBiblTranslationFactory::deleteById | ( | $id | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 221 of file class.ilBiblTranslationFactory.php.
References $id.
ilBiblTranslationFactory::findArCreateInstanceForFieldAndlanguage | ( | ilBiblFieldInterface | $field, |
$language_key | |||
) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 163 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField(), and ilBiblFieldInterface\getId().
ilBiblTranslationFactory::findById | ( | $id | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 212 of file class.ilBiblTranslationFactory.php.
References $id, and ActiveRecord\findOrFail().
ilBiblTranslationFactory::getAllTranslationsForField | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 183 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField().
ilBiblTranslationFactory::getAllTranslationsForFieldAsArray | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 192 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField().
|
private |
\ilBiblFieldInterface | $field |
Definition at line 203 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 83 of file class.ilBiblTranslationFactory.php.
References $field_factory.
Referenced by translateAttributeString(), and translateInCore().
ilBiblTranslationFactory::getInstanceForFieldAndSystemsLanguage | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 149 of file class.ilBiblTranslationFactory.php.
References $DIC, $lng, and getCollectionOfTranslationsForField().
Referenced by translate(), and translationExistsForFieldAndSystemsLanguage().
ilBiblTranslationFactory::getInstanceForFieldAndUsersLanguage | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 136 of file class.ilBiblTranslationFactory.php.
References $DIC, and getCollectionOfTranslationsForField().
Referenced by translate(), and translationExistsForFieldAndUsersLanguage().
ilBiblTranslationFactory::translate | ( | ilBiblFieldInterface | $field | ) |
\ilBiblFieldInterface | $field |
Implements ilBiblTranslationFactoryInterface.
Definition at line 39 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 60 of file class.ilBiblTranslationFactory.php.
References translate().
ilBiblTranslationFactory::translateAttributeString | ( | $type_id, | |
ilBiblAttributeInterface | $attribute | ||
) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 71 of file class.ilBiblTranslationFactory.php.
References getFieldFactory(), and translate().
|
private |
\ilBiblFieldInterface | $field |
Definition at line 94 of file class.ilBiblTranslationFactory.php.
References getFieldFactory(), and ilBiblFieldInterface\getIdentifier().
Referenced by translate().
ilBiblTranslationFactory::translationExistsForField | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 127 of file class.ilBiblTranslationFactory.php.
References getCollectionOfTranslationsForField().
ilBiblTranslationFactory::translationExistsForFieldAndSystemsLanguage | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 118 of file class.ilBiblTranslationFactory.php.
References getInstanceForFieldAndSystemsLanguage().
Referenced by translate().
ilBiblTranslationFactory::translationExistsForFieldAndUsersLanguage | ( | ilBiblFieldInterface | $field | ) |
Implements ilBiblTranslationFactoryInterface.
Definition at line 109 of file class.ilBiblTranslationFactory.php.
References getInstanceForFieldAndUsersLanguage().
Referenced by translate().
|
protected |
Definition at line 14 of file class.ilBiblTranslationFactory.php.
|
protected |
Definition at line 18 of file class.ilBiblTranslationFactory.php.
Referenced by __construct(), and getFieldFactory().