Пример #1
0
 public function create(LangCreateEvent $event)
 {
     $lang = new LangModel();
     $lang->setDispatcher($event->getDispatcher())->setTitle($event->getTitle())->setCode($event->getCode())->setLocale($event->getLocale())->setDateFormat($event->getDateFormat())->setTimeFormat($event->getTimeFormat())->setDecimalSeparator($event->getDecimalSeparator())->setThousandsSeparator($event->getThousandsSeparator())->setDecimals($event->getDecimals())->save();
     $event->setLang($lang);
 }