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


PHP Variable::Load方法代码示例

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


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

示例1: SetupVariable

 protected function SetupVariable()
 {
     // 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->objVariable = Variable::Load($intId);
         if (!$this->objVariable) {
             throw new Exception('Could not find a Variable object with PK arguments: ' . $intId);
         }
         $this->strTitleVerb = QApplication::Translate('Edit');
         $this->blnEditMode = true;
     } else {
         $this->objVariable = new Variable();
         $this->strTitleVerb = QApplication::Translate('Create');
         $this->blnEditMode = false;
     }
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:18,代码来源:VariableEditFormBase.class.php

示例2: __get

 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'Id':
             /**
              * Gets the value for intId (Read-Only PK)
              * @return integer
              */
             return $this->intId;
         case 'OperationId':
             /**
              * Gets the value for intOperationId (Not Null)
              * @return integer
              */
             return $this->intOperationId;
         case 'OrderNumber':
             /**
              * Gets the value for intOrderNumber 
              * @return integer
              */
             return $this->intOrderNumber;
         case 'VariableId':
             /**
              * Gets the value for intVariableId (Unique)
              * @return integer
              */
             return $this->intVariableId;
         case 'ReferenceFlag':
             /**
              * Gets the value for blnReferenceFlag 
              * @return boolean
              */
             return $this->blnReferenceFlag;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Operation':
             /**
              * Gets the value for the Operation object referenced by intOperationId (Not Null)
              * @return Operation
              */
             try {
                 if (!$this->objOperation && !is_null($this->intOperationId)) {
                     $this->objOperation = Operation::Load($this->intOperationId);
                 }
                 return $this->objOperation;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Variable':
             /**
              * Gets the value for the Variable object referenced by intVariableId (Unique)
              * @return Variable
              */
             try {
                 if (!$this->objVariable && !is_null($this->intVariableId)) {
                     $this->objVariable = Variable::Load($this->intVariableId);
                 }
                 return $this->objVariable;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:94,代码来源:ParameterGen.class.php

示例3: __get

 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'Id':
             /**
              * Gets the value for intId (Read-Only PK)
              * @return integer
              */
             return $this->intId;
         case 'QcodoClassId':
             /**
              * Gets the value for intQcodoClassId (Not Null)
              * @return integer
              */
             return $this->intQcodoClassId;
         case 'VariableGroupId':
             /**
              * Gets the value for intVariableGroupId 
              * @return integer
              */
             return $this->intVariableGroupId;
         case 'ProtectionTypeId':
             /**
              * Gets the value for intProtectionTypeId (Not Null)
              * @return integer
              */
             return $this->intProtectionTypeId;
         case 'VariableId':
             /**
              * Gets the value for intVariableId (Unique)
              * @return integer
              */
             return $this->intVariableId;
         case 'ReadOnlyFlag':
             /**
              * Gets the value for blnReadOnlyFlag 
              * @return boolean
              */
             return $this->blnReadOnlyFlag;
         case 'StaticFlag':
             /**
              * Gets the value for blnStaticFlag 
              * @return boolean
              */
             return $this->blnStaticFlag;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'QcodoClass':
             /**
              * Gets the value for the QcodoClass object referenced by intQcodoClassId (Not Null)
              * @return QcodoClass
              */
             try {
                 if (!$this->objQcodoClass && !is_null($this->intQcodoClassId)) {
                     $this->objQcodoClass = QcodoClass::Load($this->intQcodoClassId);
                 }
                 return $this->objQcodoClass;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'VariableGroup':
             /**
              * Gets the value for the VariableGroup object referenced by intVariableGroupId 
              * @return VariableGroup
              */
             try {
                 if (!$this->objVariableGroup && !is_null($this->intVariableGroupId)) {
                     $this->objVariableGroup = VariableGroup::Load($this->intVariableGroupId);
                 }
                 return $this->objVariableGroup;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Variable':
             /**
              * Gets the value for the Variable object referenced by intVariableId (Unique)
              * @return Variable
              */
             try {
                 if (!$this->objVariable && !is_null($this->intVariableId)) {
                     $this->objVariable = Variable::Load($this->intVariableId);
                 }
                 return $this->objVariable;
             } catch (QCallerException $objExc) {
//.........这里部分代码省略.........
开发者ID:qcodo,项目名称:qcodo-api,代码行数:101,代码来源:ClassVariableGen.class.php

示例4: btnEdit_Click

 public function btnEdit_Click($strFormId, $strControlId, $strParameter)
 {
     $strParameterArray = explode(',', $strParameter);
     $objVariable = Variable::Load($strParameterArray[0]);
     $objEditPanel = new VariableEditPanel($this, $this->strCloseEditPanelMethod, $objVariable);
     $strMethodName = $this->strSetEditPanelMethod;
     $this->objForm->{$strMethodName}($objEditPanel);
 }
开发者ID:qcodo,项目名称:qcodo-api,代码行数:8,代码来源:VariableListPanelBase.class.php

示例5: __get


//.........这里部分代码省略.........
              */
             return $this->strLastVersion;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription 
              * @return string
              */
             return $this->strShortDescription;
         case 'ExtendedDescription':
             /**
              * Gets the value for strExtendedDescription 
              * @return string
              */
             return $this->strExtendedDescription;
         case 'FileId':
             /**
              * Gets the value for intFileId 
              * @return integer
              */
             return $this->intFileId;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'QcodoClass':
             /**
              * Gets the value for the QcodoClass object referenced by intQcodoClassId 
              * @return QcodoClass
              */
             try {
                 if (!$this->objQcodoClass && !is_null($this->intQcodoClassId)) {
                     $this->objQcodoClass = QcodoClass::Load($this->intQcodoClassId);
                 }
                 return $this->objQcodoClass;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'QcodoInterface':
             /**
              * Gets the value for the QcodoInterface object referenced by intQcodoInterfaceId 
              * @return QcodoInterface
              */
             try {
                 if (!$this->objQcodoInterface && !is_null($this->intQcodoInterfaceId)) {
                     $this->objQcodoInterface = QcodoInterface::Load($this->intQcodoInterfaceId);
                 }
                 return $this->objQcodoInterface;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ReturnVariable':
             /**
              * Gets the value for the Variable object referenced by intReturnVariableId 
              * @return Variable
              */
             try {
                 if (!$this->objReturnVariable && !is_null($this->intReturnVariableId)) {
                     $this->objReturnVariable = Variable::Load($this->intReturnVariableId);
                 }
                 return $this->objReturnVariable;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
开发者ID:qcodo,项目名称:qcodo-api,代码行数:67,代码来源:OperationGen.class.php

示例6: __get

 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'Id':
             /**
              * Gets the value for intId (Read-Only PK)
              * @return integer
              */
             return $this->intId;
         case 'QcodoClassId':
             /**
              * Gets the value for intQcodoClassId (Not Null)
              * @return integer
              */
             return $this->intQcodoClassId;
         case 'VariableGroupId':
             /**
              * Gets the value for intVariableGroupId 
              * @return integer
              */
             return $this->intVariableGroupId;
         case 'VariableId':
             /**
              * Gets the value for intVariableId (Unique)
              * @return integer
              */
             return $this->intVariableId;
         case 'ClassVariableId':
             /**
              * Gets the value for intClassVariableId 
              * @return integer
              */
             return $this->intClassVariableId;
         case 'ReadOnlyFlag':
             /**
              * Gets the value for blnReadOnlyFlag 
              * @return boolean
              */
             return $this->blnReadOnlyFlag;
         case 'WriteOnlyFlag':
             /**
              * Gets the value for blnWriteOnlyFlag 
              * @return boolean
              */
             return $this->blnWriteOnlyFlag;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'QcodoClass':
             /**
              * Gets the value for the QcodoClass object referenced by intQcodoClassId (Not Null)
              * @return QcodoClass
              */
             try {
                 if (!$this->objQcodoClass && !is_null($this->intQcodoClassId)) {
                     $this->objQcodoClass = QcodoClass::Load($this->intQcodoClassId);
                 }
                 return $this->objQcodoClass;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'VariableGroup':
             /**
              * Gets the value for the VariableGroup object referenced by intVariableGroupId 
              * @return VariableGroup
              */
             try {
                 if (!$this->objVariableGroup && !is_null($this->intVariableGroupId)) {
                     $this->objVariableGroup = VariableGroup::Load($this->intVariableGroupId);
                 }
                 return $this->objVariableGroup;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Variable':
             /**
              * Gets the value for the Variable object referenced by intVariableId (Unique)
              * @return Variable
              */
             try {
                 if (!$this->objVariable && !is_null($this->intVariableId)) {
                     $this->objVariable = Variable::Load($this->intVariableId);
                 }
                 return $this->objVariable;
             } catch (QCallerException $objExc) {
//.........这里部分代码省略.........
开发者ID:qcodo,项目名称:qcodo-api,代码行数:101,代码来源:ClassPropertyGen.class.php


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