/**
  * setting
  *
  * @param VirtualConnectionInterface $conn     database connection
  * @param bool               $revision 리비전 처리
  * @return \Illuminate\View\View
  */
 public function setting(VirtualConnectionInterface $conn, $revision = false)
 {
     /** @var \Xpressengine\DynamicField\DynamicFieldHandler $dynamicField */
     $dynamicField = app('xe.dynamicField');
     $parent = $dynamicField->getConfigHandler()->parent($this->group);
     $configs = [];
     if ($parent !== null) {
         /**
          * @var ConfigEntity $config
          */
         foreach (Cfg::children($parent) as $config) {
             if ($config->get('use') === true) {
                 $configs[$config->get('id')] = $config;
             }
         }
     }
     /**
      * @var \Xpressengine\DynamicField\RegisterHandler $registerHandler
      */
     $dynamicFieldHandler = app('xe.dynamicField');
     $registerHandler = $dynamicFieldHandler->getRegisterHandler();
     $types = $registerHandler->getTypes($dynamicFieldHandler);
     $fieldTypes = [];
     foreach ($types as $types) {
         $fieldTypes[] = $types;
     }
     \Frontend::rule('dynamicFieldSection', $this->getRules());
     return View::make('dynamicField.setting', ['databaseName' => $conn->getName(), 'group' => $this->group, 'configs' => $configs, 'fieldTypes' => $fieldTypes, 'revision' => $revision]);
 }
 /**
  * Get the evaluated contents of the object.
  *
  * @return string
  */
 public function render()
 {
     /** @var \Xpressengine\DynamicField\DynamicFieldHandler $dynamicField */
     $dynamicField = app('xe.dynamicField');
     $parent = $dynamicField->getConfigHandler()->parent($this->group);
     $configs = [];
     if ($parent !== null) {
         /**
          * @var ConfigEntity $config
          */
         foreach (XeConfig::children($parent) as $config) {
             if ($config->get('use') === true) {
                 $configs[$config->get('id')] = $config;
             }
         }
     }
     /**
      * @var \Xpressengine\DynamicField\RegisterHandler $registerHandler
      */
     $dynamicFieldHandler = app('xe.dynamicField');
     $registerHandler = $dynamicFieldHandler->getRegisterHandler();
     $types = $registerHandler->getTypes($dynamicFieldHandler);
     $fieldTypes = [];
     foreach ($types as $types) {
         $fieldTypes[] = $types;
     }
     XeFrontend::rule('dynamicFieldSection', static::getRules());
     // 다국어 입력 필드
     XeFrontend::js('/assets/vendor/jqueryui/jquery-ui.js')->appendTo('head')->load();
     XeFrontend::css('/assets/vendor/jqueryui/jquery-ui.css')->load();
     XeFrontend::js('/assets/vendor/expanding/expanding.js')->appendTo('head')->load();
     //        XeFrontend::js('/assets/vendor/vendor.bundle.js')->appendTo('head')->load();
     XeFrontend::js('/assets/core/lang/langEditorBox.bundle.js')->appendTo('head')->load();
     XeFrontend::css('/assets/core/lang/langEditorBox.css')->load();
     XeFrontend::css('/assets/core/xe-ui-component/xe-ui-component.css')->load();
     return View::make('dynamicField.setting', ['databaseName' => $this->conn->getName(), 'group' => $this->group, 'configs' => $configs, 'fieldTypes' => $fieldTypes, 'revision' => $this->revision]);
 }