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


PHP ilPropertyFormGUI::__construct方法代码示例

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


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

示例1: __construct

 public function __construct(ilCtrl $ctrl, ilLanguage $lng, ilAssQuestionSkillAssignmentsGUI $parentGUI)
 {
     $this->ctrl = $ctrl;
     $this->lng = $lng;
     $this->parentGUI = $parentGUI;
     parent::__construct();
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:7,代码来源:class.ilAssQuestionSkillAssignmentPropertyFormGUI.php

示例2: ilTextInputGUI

 function __construct($guiclass)
 {
     parent::__construct();
     global $lng;
     global $ilAccess;
     $this->lng =& $lng;
     $this->guiclass =& $guiclass;
     $this->setFormAction($guiclass->ctrl->getFormAction($this->guiclass));
     $this->setTitle($this->lng->txt('compose'));
     $this->subject = new ilTextInputGUI($this->lng->txt('subject'), 'm_subject');
     $this->subject->setSize(50);
     $this->subject->setRequired(true);
     $this->addItem($this->subject);
     $this->sendtype = new ilRadioGroupInputGUI($this->lng->txt('recipients'), "m_notsent");
     $this->sendtype->addOption(new ilCheckboxOption($this->lng->txt("send_to_all"), 0, ''));
     $this->sendtype->addOption(new ilCheckboxOption($this->lng->txt("not_sent_only"), 1, ''));
     $this->sendtype->addOption(new ilCheckboxOption($this->lng->txt("send_to_unanswered"), 3, ''));
     $this->sendtype->addOption(new ilCheckboxOption($this->lng->txt("send_to_answered"), 2, ''));
     $this->addItem($this->sendtype);
     $existingdata = $this->guiclass->object->getExternalCodeRecipients();
     $existingcolumns = array();
     if (count($existingdata)) {
         $first = array_shift($existingdata);
         foreach ($first as $key => $value) {
             if (strcmp($key, 'code') != 0 && strcmp($key, 'email') != 0 && strcmp($key, 'sent') != 0) {
                 array_push($existingcolumns, '[' . $key . ']');
             }
         }
     }
     global $ilUser;
     $settings = $this->guiclass->object->getUserSettings($ilUser->getId(), 'savemessage');
     if (count($settings)) {
         $options = array(0 => $this->lng->txt('please_select'));
         foreach ($settings as $setting) {
             $options[$setting['settings_id']] = $setting['title'];
         }
         $this->savedmessages = new ilSelectInputGUI($this->lng->txt("saved_messages"), "savedmessage");
         $this->savedmessages->setOptions($options);
         $this->addItem($this->savedmessages);
     }
     $this->mailmessage = new ilTextAreaInputGUI($this->lng->txt('message_content'), 'm_message');
     $this->mailmessage->setRequired(true);
     $this->mailmessage->setCols(80);
     $this->mailmessage->setRows(10);
     $this->mailmessage->setInfo(sprintf($this->lng->txt('message_content_info'), join($existingcolumns, ', ')));
     $this->addItem($this->mailmessage);
     // save message
     $this->savemessage = new ilCheckboxInputGUI('', "savemessage");
     $this->savemessage->setOptionTitle($this->lng->txt("save_reuse_message"));
     $this->savemessage->setValue(1);
     $this->savemessagetitle = new ilTextInputGUI($this->lng->txt('save_reuse_title'), 'savemessagetitle');
     $this->savemessagetitle->setSize(60);
     $this->savemessage->addSubItem($this->savemessagetitle);
     $this->addItem($this->savemessage);
     if (count($settings)) {
         if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
             $this->addCommandButton("deleteSavedMessage", $this->lng->txt("delete_saved_message"));
         }
         if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
             $this->addCommandButton("insertSavedMessage", $this->lng->txt("insert_saved_message"));
         }
     }
     if ($ilAccess->checkAccess("write", "", $_GET["ref_id"])) {
         $this->addCommandButton("sendCodesMail", $this->lng->txt("send"));
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:66,代码来源:FormMailCodesGUI.php

示例3: __construct

 /**
  * Constructor
  */
 public function __construct($a_parent_obj, $a_parent_cmd)
 {
     $this->parent_obj = $a_parent_obj;
     $this->parent_cmd = $a_parent_cmd;
     parent::__construct($a_parent_obj, $a_parent_cmd);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:9,代码来源:class.ilSCORMTrackingItemsPerScoFilterGUI.php

示例4: __construct

 /**
  * Constructor of ilRoomSharingSearchFormGUI. This form is needed to write
  * the inputs of the form inputs into the SESSION, rather than POST.
  *
  * @param    string $a_title   Title
  * @param    string $a_postvar Post Variable
  */
 public function __construct($a_title = "", $a_postvar = "")
 {
     parent::__construct($a_title, $a_postvar);
 }
开发者ID:studer-raimann,项目名称:RoomSharing,代码行数:11,代码来源:class.ilRoomSharingSearchFormGUI.php


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