mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
1254e8d618
. added translation functionality by -- adding loadPhrases-method in Controllers -- replacing hardcoded html-text with $this->p->t(...)
21 lines
439 B
PHP
21 lines
439 B
PHP
<?php
|
|
|
|
class Zgv_widget extends DropdownWidget
|
|
{
|
|
public function display($widgetData)
|
|
{
|
|
// Zgv
|
|
$this->load->model('codex/zgv_model', 'ZgvModel');
|
|
$this->ZgvModel->addOrder('zgv_bez');
|
|
|
|
$this->addSelectToModel($this->ZgvModel, 'zgv_code', 'zgv_bez');
|
|
|
|
$this->setElementsArray(
|
|
$this->ZgvModel->load(),
|
|
true,
|
|
$this->p->t('ui', 'bitteEintragWaehlen')
|
|
);
|
|
|
|
$this->loadDropDownView($widgetData);
|
|
}
|
|
} |