AbstractTranslatorHelper

extends Zend\View\Helper\AbstractHelper implements Zend\I18n\Translator\TranslatorAwareInterface

Known subclasses

Omeka\Form\View\Helper\FormAsset, Omeka\Form\View\Helper\FormCkeditor, Omeka\Form\View\Helper\FormCkeditorInline, Omeka\Form\View\Helper\FormColorPicker, Omeka\Form\View\Helper\FormRecaptcha, Omeka\Form\View\Helper\FormRestoreTextarea, Zend\Form\View\Helper\AbstractHelper, Zend\Form\View\Helper\FormInput, Zend\Form\View\Helper\FormText, Zend\Form\View\Helper\FormTextarea
Abstract
Open source code
Methods Summary
public
# setTranslator( Zend\I18n\Translator\TranslatorInterface $translator = NULL, string $textDomain = NULL )
Sets translator to use in helper

Implementation of

public
# getTranslator( )
Returns translator used in helper

Implementation of

public
# hasTranslator( )
Checks if the helper has a translator

Implementation of

public
# setTranslatorEnabled( bool $enabled = true )
Sets whether translator is enabled and should be used

Implementation of

public
# isTranslatorEnabled( )
Returns whether translator is enabled and should be used

Implementation of

public
# setTranslatorTextDomain( string $textDomain = 'default' )
public
Methods inherited from Zend\View\Helper\AbstractHelper
setView(), getView()
Properties Summary
protected Zend\I18n\Translator\TranslatorInterface $translator
Translator (optional)
# NULL
protected string $translatorTextDomain
Translator text domain (optional)
# 'default'
protected bool $translatorEnabled
Whether translator should be used
# true
Properties inherited from Zend\View\Helper\AbstractHelper
$view