当前位置: 首页>>代码示例>>PHP>>正文


PHP ilNonEditableValueGUI::setMulti方法代码示例

本文整理汇总了PHP中ilNonEditableValueGUI::setMulti方法的典型用法代码示例。如果您正苦于以下问题:PHP ilNonEditableValueGUI::setMulti方法的具体用法?PHP ilNonEditableValueGUI::setMulti怎么用?PHP ilNonEditableValueGUI::setMulti使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ilNonEditableValueGUI的用法示例。


在下文中一共展示了ilNonEditableValueGUI::setMulti方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initEditCustomForm

 protected function initEditCustomForm(ilPropertyFormGUI $a_form)
 {
     global $lng, $ilSetting;
     $this->setSettingsSubTabs("properties");
     if ($this->id_type == self::REPOSITORY_NODE_ID) {
         $appr = new ilCheckboxInputGUI($lng->txt("blog_enable_approval"), "approval");
         $appr->setInfo($lng->txt("blog_enable_approval_info"));
         $a_form->addItem($appr);
     }
     $notes = new ilCheckboxInputGUI($lng->txt("blog_enable_notes"), "notes");
     $a_form->addItem($notes);
     if ($ilSetting->get('enable_global_profiles')) {
         $rss = new ilCheckboxInputGUI($lng->txt("blog_enable_rss"), "rss");
         $rss->setInfo($lng->txt("blog_enable_rss_info"));
         $a_form->addItem($rss);
     }
     // navigation
     $nav = new ilFormSectionHeaderGUI();
     $nav->setTitle($lng->txt("blog_settings_navigation"));
     $a_form->addItem($nav);
     $nav_mode = new ilRadioGroupInputGUI($lng->txt("blog_nav_mode"), "nav");
     $nav_mode->setRequired(true);
     $a_form->addItem($nav_mode);
     $opt = new ilRadioOption($lng->txt("blog_nav_mode_month_list"), ilObjBlog::NAV_MODE_LIST);
     $opt->setInfo($lng->txt("blog_nav_mode_month_list_info"));
     $nav_mode->addOption($opt);
     $detail_num = new ilNumberInputGUI($lng->txt("blog_nav_mode_month_list_num_detail"), "nav_list_detail");
     $detail_num->setInfo($lng->txt("blog_nav_mode_month_list_num_detail_info"));
     $detail_num->setRequired(true);
     $detail_num->setSize(3);
     $detail_num->setMinValue(0);
     $opt->addSubItem($detail_num);
     $mon_num = new ilNumberInputGUI($lng->txt("blog_nav_mode_month_list_num_month"), "nav_list_mon");
     $mon_num->setInfo($lng->txt("blog_nav_mode_month_list_num_month_info"));
     $mon_num->setSize(3);
     $mon_num->setMinValue(1);
     $opt->addSubItem($mon_num);
     $opt = new ilRadioOption($lng->txt("blog_nav_mode_month_single"), ilObjBlog::NAV_MODE_MONTH);
     $opt->setInfo($lng->txt("blog_nav_mode_month_single_info"));
     $nav_mode->addOption($opt);
     $order_options = array();
     if ($this->object->getOrder()) {
         foreach ($this->object->getOrder() as $item) {
             $order_options[] = $lng->txt("blog_" . $item);
         }
     }
     if (!in_array($lng->txt("blog_navigation"), $order_options)) {
         $order_options[] = $lng->txt("blog_navigation");
     }
     if ($this->id_type == self::REPOSITORY_NODE_ID) {
         if (!in_array($lng->txt("blog_authors"), $order_options)) {
             $order_options[] = $lng->txt("blog_authors");
         }
         $auth = new ilCheckboxInputGUI($lng->txt("blog_enable_nav_authors"), "nav_authors");
         $auth->setInfo($lng->txt("blog_enable_nav_authors_info"));
         $a_form->addItem($auth);
     }
     $keyw = new ilCheckboxInputGUI($lng->txt("blog_enable_keywords"), "keywords");
     $keyw->setInfo($lng->txt("blog_enable_keywords_info"));
     $a_form->addItem($keyw);
     if (!in_array($lng->txt("blog_keywords"), $order_options)) {
         $order_options[] = $lng->txt("blog_keywords");
     }
     $order = new ilNonEditableValueGUI($lng->txt("blog_nav_sortorder"), "order");
     $order->setMultiValues($order_options);
     $order->setValue(array_shift($order_options));
     $order->setMulti(true, true, false);
     $a_form->addItem($order);
     // presentation (frame)
     $pres = new ilFormSectionHeaderGUI();
     $pres->setTitle($lng->txt("blog_presentation_frame"));
     $a_form->addItem($pres);
     $ppic = new ilCheckboxInputGUI($lng->txt("blog_profile_picture"), "ppic");
     $a_form->addItem($ppic);
     if ($this->id_type == self::REPOSITORY_NODE_ID) {
         $ppic->setInfo($lng->txt("blog_profile_picture_repository_info"));
     }
     $blga_set = new ilSetting("blga");
     if ($blga_set->get("banner")) {
         include_once "Services/Form/classes/class.ilFileInputGUI.php";
         ilFileInputGUI::setPersonalWorkspaceQuotaCheck(true);
         $dimensions = " (" . $blga_set->get("banner_width") . "x" . $blga_set->get("banner_height") . ")";
         $img = new ilImageFileInputGUI($lng->txt("blog_banner") . $dimensions, "banner");
         $a_form->addItem($img);
         // show existing file
         $file = $this->object->getImageFullPath(true);
         if ($file) {
             $img->setImage($file);
         }
     }
     /* #15000
     		$bg_color = new ilColorPickerInputGUI($lng->txt("blog_background_color"), "bg_color");
     		$a_form->addItem($bg_color);
     
     		$font_color = new ilColorPickerInputGUI($lng->txt("blog_font_color"), "font_color");
     		$a_form->addItem($font_color);	
     		*/
     // presentation (overview)
     $list = new ilFormSectionHeaderGUI();
     $list->setTitle($lng->txt("blog_presentation_overview"));
//.........这里部分代码省略.........
开发者ID:arlendotcn,项目名称:ilias,代码行数:101,代码来源:class.ilObjBlogGUI.php


注:本文中的ilNonEditableValueGUI::setMulti方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。