Backend\Core\Engine\Language::lbl PHP Method

lbl() public static method

Get a label from the language-file
Deprecation:
public static lbl ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
return string
    public static function lbl($key, $module = null)
    {
        trigger_error('Backend\\Core\\Engine\\Language is deprecated.
             It has been moved to Backend\\Core\\Language\\Language', E_USER_DEPRECATED);
        return parent::lbl($key, $module);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Loads the settings form
  */
 private function loadForm()
 {
     // init settings form
     $this->frm = new BackendForm('settings');
     $settings = BackendModel::get('fork.settings')->getForModule('Agenda');
     $this->frm->addText('width1', $settings['width1']);
     $this->frm->addText('height1', $settings['height1']);
     $this->frm->addCheckbox('allow_enlargment1', $settings['allow_enlargment1']);
     $this->frm->addCheckbox('force_aspect_ratio1', $settings['force_aspect_ratio1']);
     $this->frm->addText('width1', $settings['width2']);
     $this->frm->addText('height1', $settings['height2']);
     $this->frm->addCheckbox('allow_enlargment2', $settings['allow_enlargment2']);
     $this->frm->addCheckbox('force_aspect_ratio2', $settings['force_aspect_ratio2']);
     $this->frm->addText('width3', $settings['width3']);
     $this->frm->addText('height3', $settings['height3']);
     $this->frm->addCheckbox('allow_enlargment3', $settings['allow_enlargment3']);
     $this->frm->addCheckbox('force_aspect_ratio3', $settings['force_aspect_ratio3']);
     $this->frm->addCheckbox('allow_subscriptions', $settings['allow_subscriptions']);
     $this->frm->addCheckbox('moderation', $settings['moderation']);
     $this->frm->addCheckbox('notify_by_email_on_new_subscription_to_moderate', $settings['notify_by_email_on_new_subscription_to_moderate']);
     $this->frm->addCheckbox('notify_by_email_on_new_subscription', $settings['notify_by_email_on_new_subscription']);
     $this->frm->addText('cache_timeout', $settings['cache_timeout']);
     $this->frm->addDropdown('zoom_level', array_combine(array_merge(array('auto'), range(3, 18)), array_merge(array(BL::lbl('Auto', $this->getModule())), range(3, 18))), $this->get('fork.settings')->get($this->URL->getModule(), 'zoom_level_widget', 13));
     $this->frm->addText('width', $this->get('fork.settings')->get($this->URL->getModule(), 'width'));
     $this->frm->addText('height', $this->get('fork.settings')->get($this->URL->getModule(), 'height'));
     $this->frm->addDropdown('map_type', array('ROADMAP' => BL::lbl('Roadmap', $this->getModule()), 'SATELLITE' => BL::lbl('Satellite', $this->getModule()), 'HYBRID' => BL::lbl('Hybrid', $this->getModule()), 'TERRAIN' => BL::lbl('Terrain', $this->getModule())), $this->get('fork.settings')->get($this->URL->getModule(), 'map_type_widget', 'roadmap'));
 }
All Usage Examples Of Backend\Core\Engine\Language::lbl