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


PHP ilPropertyFormGUI::setHideLabels方法代码示例

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


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

示例1: initUploadForm

 public function initUploadForm()
 {
     global $ilCtrl, $lng;
     include_once "./Services/Form/classes/class.ilDragDropFileInputGUI.php";
     include_once "./Services/jQuery/classes/class.iljQueryUtil.php";
     $this->form = new ilPropertyFormGUI();
     $this->form->setId("upload");
     $this->form->setMultipart(true);
     $this->form->setHideLabels();
     $file = new ilDragDropFileInputGUI($lng->txt("cld_upload_flies"), "upload_files");
     $file->setRequired(true);
     $this->form->addItem($file);
     $this->form->addCommandButton("uploadFiles", $lng->txt("upload"));
     $this->form->addCommandButton("cancelAll", $lng->txt("cancel"));
     $this->form->setTableWidth("100%");
     $this->form->setTitle($lng->txt("upload_files_title"));
     $this->form->setTitleIcon(ilUtil::getImagePath('icon_file.gif'), $lng->txt('obj_file'));
     $this->form->setTitle($lng->txt("upload_files"));
     $this->form->setFormAction($ilCtrl->getFormAction($this, "uploadFiles"));
     $this->form->setTarget("cld_blank_target");
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:21,代码来源:class.ilCloudPluginUploadGUI.php

示例2: initMultiUploadForm

 /**
  * Initializes the upload form for multiple files.
  *
  * @return object The created property form.
  */
 public function initMultiUploadForm()
 {
     include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $dnd_form_gui = new ilPropertyFormGUI();
     $dnd_form_gui->setMultipart(true);
     $dnd_form_gui->setHideLabels();
     // file input
     include_once "Services/Form/classes/class.ilDragDropFileInputGUI.php";
     $dnd_input = new ilDragDropFileInputGUI($this->lng->txt("files"), "upload_files");
     $dnd_input->setArchiveSuffixes(array("zip"));
     $dnd_input->setCommandButtonNames("uploadFiles", "cancel");
     $dnd_form_gui->addItem($dnd_input);
     // add commands
     $dnd_form_gui->addCommandButton("uploadFiles", $this->lng->txt("upload_files"));
     $dnd_form_gui->addCommandButton("cancel", $this->lng->txt("cancel"));
     $dnd_form_gui->setTableWidth("100%");
     $dnd_form_gui->setTarget($this->getTargetFrame("save"));
     $dnd_form_gui->setTitle($this->lng->txt("upload_files_title"));
     $dnd_form_gui->setTitleIcon(ilUtil::getImagePath('icon_file.gif'), $this->lng->txt('obj_file'));
     $this->ctrl->setParameter($this, "new_type", "file");
     $dnd_form_gui->setFormAction($this->ctrl->getFormAction($this, "uploadFiles"));
     return $dnd_form_gui;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:28,代码来源:class.ilObjFileGUI.php


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