當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Parameter::Load方法代碼示例

本文整理匯總了PHP中Parameter::Load方法的典型用法代碼示例。如果您正苦於以下問題:PHP Parameter::Load方法的具體用法?PHP Parameter::Load怎麽用?PHP Parameter::Load使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Parameter的用法示例。


在下文中一共展示了Parameter::Load方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: SetupParameter

 protected function SetupParameter()
 {
     // Lookup Object PK information from Query String (if applicable)
     // Set mode to Edit or New depending on what's found
     $intId = QApplication::QueryString('intId');
     if ($intId) {
         $this->objParameter = Parameter::Load($intId);
         if (!$this->objParameter) {
             throw new Exception('Could not find a Parameter object with PK arguments: ' . $intId);
         }
         $this->strTitleVerb = QApplication::Translate('Edit');
         $this->blnEditMode = true;
     } else {
         $this->objParameter = new Parameter();
         $this->strTitleVerb = QApplication::Translate('Create');
         $this->blnEditMode = false;
     }
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:18,代碼來源:ParameterEditFormBase.class.php

示例2: UpdateVariableFields

 protected function UpdateVariableFields()
 {
     $this->objVariable->Name = $this->txtName->Text;
     $this->objVariable->VariableTypeId = $this->lstVariableType->SelectedValue;
     $this->objVariable->ObjectTypeId = $this->lstObjectType->SelectedValue;
     $this->objVariable->ArrayFlag = $this->chkArrayFlag->Checked;
     $this->objVariable->DefaultValue = $this->txtDefaultValue->Text;
     $this->objVariable->FirstVersion = $this->txtFirstVersion->Text;
     $this->objVariable->LastVersion = $this->txtLastVersion->Text;
     $this->objVariable->ShortDescription = $this->txtShortDescription->Text;
     $this->objVariable->ExtendedDescription = $this->txtExtendedDescription->Text;
     $this->objVariable->ClassProperty = ClassProperty::Load($this->lstClassProperty->SelectedValue);
     $this->objVariable->ClassVariable = ClassVariable::Load($this->lstClassVariable->SelectedValue);
     $this->objVariable->Parameter = Parameter::Load($this->lstParameter->SelectedValue);
     $this->objVariable->QcodoConstant = QcodoConstant::Load($this->lstQcodoConstant->SelectedValue);
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:16,代碼來源:VariableEditFormBase.class.php

示例3: btnEdit_Click

 public function btnEdit_Click($strFormId, $strControlId, $strParameter)
 {
     $strParameterArray = explode(',', $strParameter);
     $objParameter = Parameter::Load($strParameterArray[0]);
     $objEditPanel = new ParameterEditPanel($this, $this->strCloseEditPanelMethod, $objParameter);
     $strMethodName = $this->strSetEditPanelMethod;
     $this->objForm->{$strMethodName}($objEditPanel);
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:8,代碼來源:ParameterListPanelBase.class.php


注:本文中的Parameter::Load方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。