/**
  * Initialize this field by setting the available locales as options
  * @return null
  */
 protected function init()
 {
     parent::init();
     $locales = I18n::getInstance()->getAllLocales();
     $this->setOptions($locales);
     $this->setValueDecorator(new LocaleCodeDecorator());
 }
 /**
  * Initializes this field, fetches the continents and sets them to this field
  * @return null
  */
 protected function init()
 {
     parent::init();
     $continentModel = ModelManager::getInstance()->getModel(ContinentModel::NAME);
     $continents = $continentModel->getDataList();
     $this->setOptions($continents);
 }
 /**
  * Initializes this field, fetches the countries and sets them to this field
  * @return null
  */
 protected function init()
 {
     parent::init();
     $model = ModelManager::getInstance()->getModel(ContinentModel::NAME);
     $continents = $model->getContinents(1);
     foreach ($continents as $continent) {
         $this->setOptions($continent->countries, $continent->name);
     }
     $this->setKeyDecorator(new IdDecorator());
     $this->setValueDecorator(new CountryNameDecorator());
 }