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


PHP QBaseClass::__set方法代碼示例

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


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

示例1: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "HtmlIncludeFilePath":
             // Passed-in value is null -- use the "default" path name of file".tpl.php"
             if (!$mixValue) {
                 $strPath = realpath(substr(QApplication::$ScriptFilename, 0, strrpos(QApplication::$ScriptFilename, '.php')) . '.tpl.php');
             } else {
                 $strPath = realpath($mixValue);
             }
             // Verify File Exists, and if not, throw exception
             if (is_file($strPath)) {
                 $this->strHtmlIncludeFilePath = $strPath;
                 return $strPath;
             } else {
                 throw new QCallerException('Accompanying HTML Include File does not exist: "' . $mixValue . '"');
             }
             break;
         case "CssClass":
             try {
                 return $this->strCssClass = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
開發者ID:kmcelhinney,項目名稱:qcodo,代碼行數:34,代碼來源:QFormBase.class.php

示例2: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "Title":
             try {
                 return $this->strTitle = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ActiveEvent":
             try {
                 return $this->objActiveEvent = $mixValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "SkipMainWindowRender":
             try {
                 return $this->blnSkipMainWindowRender = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
開發者ID:schematical,項目名稱:MJax-Includes,代碼行數:33,代碼來源:MJaxFormBase.class.php

示例3: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "Value":
             try {
                 return $this->strValue = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Text":
             try {
                 return $this->strText = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Selected":
             try {
                 return $this->blnSelected = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
開發者ID:schematical,項目名稱:MJax2.0,代碼行數:33,代碼來源:MJaxListItem.class.php

示例4: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Event':
             return $this->objEvent = QType::Cast($mixValue, 'QEvent');
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:14,代碼來源:_actions.inc.php

示例5: __set

 /**
  * Override method to perform a property "Set"
  * This will set the property $strName to be $mixValue
  *
  * @param string strName Name of the property to set
  * @param string mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     try {
         switch ($strName) {
             case 'KeyName':
                 return $this->strKeyName = QType::Cast($mixValue, QType::String);
             case 'Unique':
                 return $this->blnUnique = QType::Cast($mixValue, QType::Boolean);
             case 'PrimaryKey':
                 return $this->blnPrimaryKey = QType::Cast($mixValue, QType::Boolean);
             case 'ColumnNameArray':
                 return $this->strColumnNameArray = QType::Cast($mixValue, QType::ArrayType);
             default:
                 return parent::__set($strName, $mixValue);
         }
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }
開發者ID:RCorbet,項目名稱:zf-codo,代碼行數:28,代碼來源:QIndex.class.php

示例6: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         /*
          case "ControlId":
              try {
                  return ($this->strId = QType::Cast($mixValue, QType::String));
              } catch (QCallerException $objExc) {
                  $objExc->IncrementOffset();
                  throw $objExc;
              }
         */
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
開發者ID:schematical,項目名稱:MJax-Includes,代碼行數:21,代碼來源:_events.php

示例7: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "Name":
             try {
                 $this->strName = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Value":
             try {
                 $this->strValue = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Selected":
             try {
                 $this->blnSelected = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:37,代碼來源:QListItem.class.php

示例8: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Alias':
             /**
              * Sets the value for strAlias
              * @param string $mixValue
              * @return string
              */
             try {
                 return $this->strAlias = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
開發者ID:hiptc,項目名稱:dle2wordpress,代碼行數:24,代碼來源:QQuery.class.php

示例9: __set

 /**
  * Override method to perform a property "Set"
  * This will set the property $strName to be $mixValue
  *
  * @param string $strName Name of the property to set
  * @param string $mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     try {
         switch ($strName) {
             case 'KeyName':
                 return $this->strKeyName = QType::Cast($mixValue, QType::String);
             case 'Table':
                 return $this->strTable = QType::Cast($mixValue, QType::String);
             case 'Column':
                 return $this->strColumn = QType::Cast($mixValue, QType::String);
             case 'PropertyName':
                 return $this->strPropertyName = QType::Cast($mixValue, QType::String);
             case 'VariableName':
                 return $this->strVariableName = QType::Cast($mixValue, QType::String);
             case 'VariableType':
                 return $this->strVariableType = QType::Cast($mixValue, QType::String);
             case 'IsType':
                 return $this->blnIsType = QType::Cast($mixValue, QType::Boolean);
             default:
                 return parent::__set($strName, $mixValue);
         }
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }
開發者ID:hiptc,項目名稱:dle2wordpress,代碼行數:34,代碼來源:QReference.class.php

示例10: __set

 /**
  * Override method to perform a property "Set"
  * This will set the property $strName to be $mixValue
  *
  * @param string $strName Name of the property to set
  * @param string $mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'CategoryId':
             /**
              * Sets the value for intCategoryId 
              * @param integer $mixValue
              * @return integer
              */
             try {
                 $this->objCategory = null;
                 return $this->intCategoryId = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ManufacturerId':
             /**
              * Sets the value for intManufacturerId 
              * @param integer $mixValue
              * @return integer
              */
             try {
                 $this->objManufacturer = null;
                 return $this->intManufacturerId = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'InventoryModelCode':
             /**
              * Sets the value for strInventoryModelCode (Unique)
              * @param string $mixValue
              * @return string
              */
             try {
                 return $this->strInventoryModelCode = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShortDescription':
             /**
              * Sets the value for strShortDescription (Not Null)
              * @param string $mixValue
              * @return string
              */
             try {
                 return $this->strShortDescription = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'LongDescription':
             /**
              * Sets the value for strLongDescription 
              * @param string $mixValue
              * @return string
              */
             try {
                 return $this->strLongDescription = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ImagePath':
             /**
              * Sets the value for strImagePath 
              * @param string $mixValue
              * @return string
              */
             try {
                 return $this->strImagePath = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Price':
             /**
              * Sets the value for fltPrice 
              * @param double $mixValue
              * @return double
              */
             try {
                 return $this->fltPrice = QType::Cast($mixValue, QType::Float);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
//.........這裏部分代碼省略.........
開發者ID:heshuai64,項目名稱:einv2,代碼行數:101,代碼來源:InventoryModelGen.class.php

示例11: __set

 /**
  * Override method to perform a property "Set"
  * This will set the property $strName to be $mixValue
  *
  * @param string $strName Name of the property to set
  * @param string $mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'IssueFieldId':
             // Sets the value for intIssueFieldId (Not Null)
             // @param integer $mixValue
             // @return integer
             try {
                 $this->objIssueField = null;
                 return $this->intIssueFieldId = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Name':
             // Sets the value for strName (Not Null)
             // @param string $mixValue
             // @return string
             try {
                 return $this->strName = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Token':
             // Sets the value for strToken (Not Null)
             // @param string $mixValue
             // @return string
             try {
                 return $this->strToken = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'OrderNumber':
             // Sets the value for intOrderNumber
             // @param integer $mixValue
             // @return integer
             try {
                 return $this->intOrderNumber = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ActiveFlag':
             // Sets the value for blnActiveFlag
             // @param boolean $mixValue
             // @return boolean
             try {
                 return $this->blnActiveFlag = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'IssueField':
             // Sets the value for the IssueField object referenced by intIssueFieldId (Not Null)
             // @param IssueField $mixValue
             // @return IssueField
             if (is_null($mixValue)) {
                 $this->intIssueFieldId = null;
                 $this->objIssueField = null;
                 return null;
             } else {
                 // Make sure $mixValue actually is a IssueField object
                 try {
                     $mixValue = QType::Cast($mixValue, 'IssueField');
                 } catch (QInvalidCastException $objExc) {
                     $objExc->IncrementOffset();
                     throw $objExc;
                 }
                 // Make sure $mixValue is a SAVED IssueField object
                 if (is_null($mixValue->Id)) {
                     throw new QCallerException('Unable to set an unsaved IssueField for this IssueFieldOption');
                 }
                 // Update Local Member Variables
                 $this->objIssueField = $mixValue;
                 $this->intIssueFieldId = $mixValue->Id;
                 // Return $mixValue
                 return $mixValue;
             }
             break;
         default:
             try {
//.........這裏部分代碼省略.........
開發者ID:qcodo,項目名稱:qcodo-website,代碼行數:101,代碼來源:IssueFieldOptionGen.class.php

示例12: __set

 /**
  * Override method to perform a property "Set"
  * This will set the property $strName to be $mixValue
  *
  * @param string $strName Name of the property to set
  * @param string $mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     try {
         switch ($strName) {
             // Controls that point to Message fields
             case 'IdControl':
                 return $this->lblId = QType::Cast($mixValue, 'QControl');
             case 'TopicIdControl':
                 return $this->lstTopic = QType::Cast($mixValue, 'QControl');
             case 'TopicLinkIdControl':
                 return $this->lstTopicLink = QType::Cast($mixValue, 'QControl');
             case 'PersonIdControl':
                 return $this->lstPerson = QType::Cast($mixValue, 'QControl');
             case 'MessageControl':
                 return $this->txtMessage = QType::Cast($mixValue, 'QControl');
             case 'CompiledHtmlControl':
                 return $this->txtCompiledHtml = QType::Cast($mixValue, 'QControl');
             case 'ReplyNumberControl':
                 return $this->txtReplyNumber = QType::Cast($mixValue, 'QControl');
             case 'PostDateControl':
                 return $this->calPostDate = QType::Cast($mixValue, 'QControl');
             default:
                 return parent::__set($strName, $mixValue);
         }
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }
開發者ID:qcodo,項目名稱:qcodo-website,代碼行數:37,代碼來源:MessageMetaControlGen.class.php

示例13: __set

 /**
  * Override method to perform a property "Set"
  * This will set the property $strName to be $mixValue
  *
  * @param string $strName Name of the property to set
  * @param string $mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     try {
         switch ($strName) {
             // Controls that point to NarroLog fields
             case 'LogIdControl':
                 return $this->lblLogId = QType::Cast($mixValue, 'QControl');
             case 'LanguageIdControl':
                 return $this->lstLanguage = QType::Cast($mixValue, 'QControl');
             case 'ProjectIdControl':
                 return $this->lstProject = QType::Cast($mixValue, 'QControl');
             case 'UserIdControl':
                 return $this->lstUser = QType::Cast($mixValue, 'QControl');
             case 'MessageControl':
                 return $this->txtMessage = QType::Cast($mixValue, 'QControl');
             case 'PriorityControl':
                 return $this->txtPriority = QType::Cast($mixValue, 'QControl');
             case 'DateControl':
                 return $this->calDate = QType::Cast($mixValue, 'QControl');
             default:
                 return parent::__set($strName, $mixValue);
         }
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }
開發者ID:Jobava,項目名稱:narro,代碼行數:35,代碼來源:NarroLogMetaControlGen.class.php

示例14: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "ControlId":
             try {
                 return $this->strControlId = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ActionParameter":
             try {
                 return $this->strActionParameter = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Text":
             try {
                 return $this->strText = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "AutoRenderChildren":
             try {
                 return $this->blnAutoRenderChildren = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
開發者ID:schematical,項目名稱:MJax-Includes,代碼行數:40,代碼來源:MJaxControlBase.class.php

示例15: __set

 /**
  * Override method to perform a property "Set"
  * This will set the property $strName to be $mixValue
  *
  * @param string $strName Name of the property to set
  * @param string $mixValue New value of the property
  * @return mixed
  */
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'OperationId':
             /**
              * Sets the value for intOperationId (Not Null)
              * @param integer $mixValue
              * @return integer
              */
             try {
                 $this->objOperation = null;
                 return $this->intOperationId = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'OrderNumber':
             /**
              * Sets the value for intOrderNumber 
              * @param integer $mixValue
              * @return integer
              */
             try {
                 return $this->intOrderNumber = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'VariableId':
             /**
              * Sets the value for intVariableId (Unique)
              * @param integer $mixValue
              * @return integer
              */
             try {
                 $this->objVariable = null;
                 return $this->intVariableId = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ReferenceFlag':
             /**
              * Sets the value for blnReferenceFlag 
              * @param boolean $mixValue
              * @return boolean
              */
             try {
                 return $this->blnReferenceFlag = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Operation':
             /**
              * Sets the value for the Operation object referenced by intOperationId (Not Null)
              * @param Operation $mixValue
              * @return Operation
              */
             if (is_null($mixValue)) {
                 $this->intOperationId = null;
                 $this->objOperation = null;
                 return null;
             } else {
                 // Make sure $mixValue actually is a Operation object
                 try {
                     $mixValue = QType::Cast($mixValue, 'Operation');
                 } catch (QInvalidCastException $objExc) {
                     $objExc->IncrementOffset();
                     throw $objExc;
                 }
                 // Make sure $mixValue is a SAVED Operation object
                 if (is_null($mixValue->Id)) {
                     throw new QCallerException('Unable to set an unsaved Operation for this Parameter');
                 }
                 // Update Local Member Variables
                 $this->objOperation = $mixValue;
                 $this->intOperationId = $mixValue->Id;
                 // Return $mixValue
                 return $mixValue;
             }
             break;
         case 'Variable':
//.........這裏部分代碼省略.........
開發者ID:qcodo,項目名稱:qcodo-api,代碼行數:101,代碼來源:ParameterGen.class.php


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