當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。