本文整理匯總了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();
}
示例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"));
}
}
示例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);
}
示例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);
}