ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilBiblTranslationFactoryInterface Interface Reference

Created by PhpStorm. More...

+ Inheritance diagram for ilBiblTranslationFactoryInterface:
+ Collaboration diagram for ilBiblTranslationFactoryInterface:

Public Member Functions

 translate (ilBiblFieldInterface $field)
 Translates a field in the current users language in tho folowing order: More...
 
 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)
 

Detailed Description

Created by PhpStorm.

User: fschmid Date: 20.11.17 Time: 16:38 Class ilBiblTranslationFactory

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 14 of file interface.ilBiblTranslationFactoryInterface.php.

Member Function Documentation

◆ deleteById()

ilBiblTranslationFactoryInterface::deleteById (   $id)
Parameters
int$id
Returns
bool

Implemented in ilBiblTranslationFactory.

◆ findArCreateInstanceForFieldAndlanguage()

ilBiblTranslationFactoryInterface::findArCreateInstanceForFieldAndlanguage ( ilBiblFieldInterface  $field,
  $language_key 
)
Parameters
\ilBiblFieldInterface$field
string$language_key
Returns

Implemented in ilBiblTranslationFactory.

◆ findById()

ilBiblTranslationFactoryInterface::findById (   $id)
Parameters
int$id
Returns

Implemented in ilBiblTranslationFactory.

◆ getAllTranslationsForField()

ilBiblTranslationFactoryInterface::getAllTranslationsForField ( ilBiblFieldInterface  $field)
Parameters
\ilBiblFieldInterface$field
Returns
[]

Implemented in ilBiblTranslationFactory.

◆ getAllTranslationsForFieldAsArray()

ilBiblTranslationFactoryInterface::getAllTranslationsForFieldAsArray ( ilBiblFieldInterface  $field)
Parameters
\ilBiblFieldInterface$field
Returns
array

Implemented in ilBiblTranslationFactory.

◆ getFieldFactory()

ilBiblTranslationFactoryInterface::getFieldFactory ( )
Returns

Implemented in ilBiblTranslationFactory.

◆ getInstanceForFieldAndSystemsLanguage()

ilBiblTranslationFactoryInterface::getInstanceForFieldAndSystemsLanguage ( ilBiblFieldInterface  $field)
Parameters
\ilBiblFieldInterface$field
Returns

Implemented in ilBiblTranslationFactory.

◆ getInstanceForFieldAndUsersLanguage()

ilBiblTranslationFactoryInterface::getInstanceForFieldAndUsersLanguage ( ilBiblFieldInterface  $field)
Parameters
\ilBiblFieldInterface$field
Returns

Implemented in ilBiblTranslationFactory.

◆ translate()

ilBiblTranslationFactoryInterface::translate ( ilBiblFieldInterface  $field)

Translates a field in the current users language in tho folowing order:

  • if standard-field, user ILIAS ilLanguage
  • if a explicit translation in the users language is available, use this
  • if a translation is only for the systems language, us this
  • return string like "bib_year"
Parameters
\ilBiblFieldInterface$field
Returns
string

Implemented in ilBiblTranslationFactory.

◆ translateAttribute()

ilBiblTranslationFactoryInterface::translateAttribute ( ilBiblAttributeInterface  $attribute)
Parameters
\ilBiblAttributeInterface$attribute
Returns
string

Implemented in ilBiblTranslationFactory.

◆ translateAttributeString()

ilBiblTranslationFactoryInterface::translateAttributeString (   $type_id,
ilBiblAttributeInterface  $attribute 
)
Parameters
int$type_id
ilBiblAttributeInterface$attribute
Returns
string

Implemented in ilBiblTranslationFactory.

◆ translationExistsForField()

ilBiblTranslationFactoryInterface::translationExistsForField ( ilBiblFieldInterface  $field)
Parameters
\ilBiblFieldInterface$field
Returns
bool

Implemented in ilBiblTranslationFactory.

◆ translationExistsForFieldAndSystemsLanguage()

ilBiblTranslationFactoryInterface::translationExistsForFieldAndSystemsLanguage ( ilBiblFieldInterface  $field)
Parameters
\ilBiblFieldInterface$field
Returns
bool

Implemented in ilBiblTranslationFactory.

◆ translationExistsForFieldAndUsersLanguage()

ilBiblTranslationFactoryInterface::translationExistsForFieldAndUsersLanguage ( ilBiblFieldInterface  $field)
Parameters
\ilBiblFieldInterface$field
Returns
bool

Implemented in ilBiblTranslationFactory.


The documentation for this interface was generated from the following file: