当前位置: 首页>>代码示例>>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;未经允许,请勿转载。