• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP QControl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ValidateControlAndChildren

 protected function ValidateControlAndChildren(QControl $objControl)
 {
     // Initially Assume Validation is True
     $blnToReturn = true;
     // Check the Control Itself
     if (!$objControl->Validate()) {
         $objControl->MarkAsModified();
         $blnToReturn = false;
     }
     // Recursive call on Child Controls
     foreach ($objControl->GetChildControls() as $objChildControl) {
         // Only Enabled and Visible and Rendered controls should be validated
         if ($objChildControl->Visible && $objChildControl->Enabled && $objChildControl->RenderMethod && $objChildControl->OnPage) {
             if (!$this->ValidateControlAndChildren($objChildControl)) {
                 $blnToReturn = false;
             }
         }
     }
     return $blnToReturn;
 }
开发者ID:kmcelhinney,项目名称:qcodo,代码行数:20,代码来源:QFormBase.class.php


示例2: Wakeup

 /**
  * @param QForm $objForm
  */
 public function Wakeup(QForm $objForm)
 {
     parent::Wakeup($objForm);
     $this->objDataBinder = QControl::WakeupHelper($objForm, $this->objDataBinder);
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:8,代码来源:QDataBinder.trait.php


示例3: Wakeup

 /**
  * Restore references.
  *
  * @param QForm $objForm
  */
 public function Wakeup(QForm $objForm)
 {
     parent::Wakeup($objForm);
     $this->objRowParamsCallback = QControl::WakeupHelper($objForm, $this->objRowParamsCallback);
     if ($this->objColumnArray) {
         foreach ($this->objColumnArray as $objColumn) {
             $objColumn->Wakeup($objForm);
         }
     }
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:15,代码来源:QHtmlTableBase.class.php


示例4: ValidateControlAndChildren

 /**
  * Calles 'Validate' method on a QControl recursively
  * @param QControl $objControl
  *
  * @return bool
  */
 protected function ValidateControlAndChildren(QControl $objControl)
 {
     return $objControl->ValidateControlAndChildren();
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:10,代码来源:QFormBase.class.php


示例5: helpTest

 protected function helpTest($objTestDataArray, $objProperiesArray, $strGetStyleMethod = "GetWrapperStyleAttributes")
 {
     foreach ($objProperiesArray as $strProperty => $strCssProperty) {
         $strValue = $objTestDataArray["Value"];
         if ($strProperty) {
             $this->ctlTest->{$strProperty} = $strValue;
         } else {
             $this->ctlTest->SetCustomStyle($strCssProperty, $strValue);
         }
         $strAttrs = $this->ctlTest->{$strGetStyleMethod}();
         $intResult = strpos($strAttrs, $strCssProperty . ':' . $objTestDataArray["Expected"]);
         $strMessage = $objTestDataArray["Msg"] . " Expected: '" . $objTestDataArray["Expected"] . "'" . " Obtained: '" . $strAttrs . "'";
         $this->assertTrue(false !== $intResult, $strMessage);
     }
 }
开发者ID:hiptc,项目名称:dle2wordpress,代码行数:15,代码来源:QControlBaseTests.php


示例6: GetEndScript

 public function GetEndScript()
 {
     $strId = $this->ControlId;
     $strJs = parent::GetEndScript();
     $strJs .= ';';
     $strJs .= "\$j('#{$strId}').change(function(event) {\n\t\t\tqcubed.setAdditionalPostVar('{$strId}_extra', {txt: \$j(this).val(), 'nullVal': null});\n\t\t\tqcubed.recordControlModification('{$strId}', 'Name', \$j(this).val());\n\t\t\t})";
     return $strJs;
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:8,代码来源:ui_postvars.php


示例7: __construct

 public function __construct($objParentObject, $strControlId = null)
 {
     // First, call the parent to do most of the basic setup
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->objParentObject = $objParentObject;
     $this->dlgAssetModelSearchTool_Create();
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:12,代码来源:QAssetModelSearchToolComposite.class.php


示例8: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case 'CalendarImageSource':
             try {
                 return $this->strCalendarImageSource = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:sigeal,项目名称:qcodo,代码行数:20,代码来源:QCalendar.class.php


示例9: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "SelectedIndex":
             try {
                 $mixValue = QType::Cast($mixValue, QType::Integer);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             // Special Case
             if ($mixValue == -1) {
                 $mixValue = null;
             }
             if ($mixValue < 0 || $mixValue > count($this->objItemsArray) - 1) {
                 throw new QIndexOutOfRangeException($mixValue, "SelectedIndex");
             }
             for ($intIndex = 0; $intIndex < count($this->objItemsArray); $intIndex++) {
                 if ($mixValue == $intIndex) {
                     $this->objItemsArray[$intIndex]->Selected = true;
                 } else {
                     $this->objItemsArray[$intIndex]->Selected = false;
                 }
             }
             return $mixValue;
             break;
         case "SelectedName":
             foreach ($this->objItemsArray as $objItem) {
                 if ($objItem->Name == $mixValue) {
                     $objItem->Selected = true;
                 } else {
                     $objItem->Selected = false;
                 }
             }
             return $mixValue;
             break;
         case "SelectedValue":
             foreach ($this->objItemsArray as $objItem) {
                 if ($objItem->Value == $mixValue) {
                     $objItem->Selected = true;
                 } else {
                     $objItem->Selected = false;
                 }
             }
             return $mixValue;
             break;
         case "SelectedNames":
             try {
                 $mixValue = QType::Cast($mixValue, QType::ArrayType);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             foreach ($this->objItemsArray as $objItem) {
                 $objItem->Selected = false;
                 foreach ($mixValue as $mixName) {
                     if ($objItem->Name == $mixName) {
                         $objItem->Selected = true;
                         break;
                     }
                 }
             }
             return $mixValue;
             break;
         case "SelectedValues":
             try {
                 $mixValue = QType::Cast($mixValue, QType::ArrayType);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             foreach ($this->objItemsArray as $objItem) {
                 $objItem->Selected = false;
                 foreach ($mixValue as $mixName) {
                     if ($objItem->Value == $mixName) {
                         $objItem->Selected = true;
                         break;
                     }
                 }
             }
             return $mixValue;
             break;
         case "SelectedIndexes":
             try {
                 $intIndexArray = QType::Cast($mixValue, QType::ArrayType);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             //First remove all indexes
             $this->SelectedIndex = -1;
             //Assign selected
             foreach ($intIndexArray as $intIndex) {
                 if ($this->objItemsArray[$intIndex]) {
                     $this->objItemsArray[$intIndex]->Selected = true;
                 } else {
                     throw new QIndexOutOfRangeException($intIndex, "SelectedIndexes");
                 }
             }
//.........这里部分代码省略.........
开发者ID:qcodo,项目名称:qcodo,代码行数:101,代码来源:QListControl.class.php


示例10: __set

 /**
  * PHP magic method
  *
  * @param string $strName  Property name
  * @param string $mixValue Property value
  *
  * @return mixed
  * @throws Exception|QCallerException
  */
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // Deprecated
         case 'TargetControlId':
             try {
                 return $this->strTargetControlId = 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:vaibhav-kaushal,项目名称:qc-framework,代码行数:30,代码来源:QControlProxy.class.php


示例11: __set

		public function __set($strName, $mixValue) {
			$this->blnModified = true;

			switch ($strName) {
				// APPEARANCE
				case "Text":
					try {
						$this->strText = QType::Cast($mixValue, QType::String);
						break;
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
				case "TextAlign":
					try {
						$this->strTextAlign = QType::Cast($mixValue, QType::String);
						break;
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case "HtmlEntities":
					try {
						$this->blnHtmlEntities = QType::Cast($mixValue, QType::Boolean);
						break;
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				// MISC
				case "Checked":
					try {
						$this->blnChecked = QType::Cast($mixValue, QType::Boolean);
						break;
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
					
				default:
					try {
						parent::__set($strName, $mixValue);
						break;
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
开发者ID:rommelxcastro,项目名称:CRI-Online-Sales---Admin,代码行数:51,代码来源:QCheckBox.class.php


示例12: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "objInventoryLocationArray":
             $this->objInventoryLocationArray = $mixValue;
             break;
         case "strTitleVerb":
             $this->strTitleVerb = $mixValue;
             break;
         case "blnEditMode":
             $this->blnEditMode = $mixValue;
             break;
         case "dtgInventoryTransact":
             $this->dtgInventoryTransact = $mixValue;
             break;
         case "intTransactionTypeId":
             $this->intTransactionTypeId = $mixValue;
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:29,代码来源:QInventoryTransactComposite.class.php


示例13: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "Text":
             try {
                 $this->strText = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Format":
             try {
                 $this->strFormat = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Template":
             try {
                 if ($mixValue) {
                     if (file_exists($mixValue)) {
                         $this->strTemplate = QType::Cast($mixValue, QType::String);
                     } else {
                         throw new QCallerException('Template file does not exist: ' . $mixValue);
                     }
                 } else {
                     $this->strTemplate = null;
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "AutoRenderChildren":
             try {
                 $this->blnAutoRenderChildren = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "TagName":
             try {
                 $this->strTagName = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "HtmlEntities":
             try {
                 $this->blnHtmlEntities = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Padding":
             try {
                 $this->strPadding = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "DropTarget":
             try {
                 $this->blnDropTarget = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "HorizontalAlign":
             try {
                 $this->strHorizontalAlign = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "VerticalAlign":
             try {
                 $this->strVerticalAlign = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ResizeHandleDirection":
             try {
                 $this->strResizeHandleDirection = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
//.........这里部分代码省略.........
开发者ID:klucznik,项目名称:qcodo,代码行数:101,代码来源:QBlockControl.class.php


示例14: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "Text":
             try {
                 $this->strText = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "TagName":
             try {
                 $this->strTagName = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Padding":
             try {
                 $this->strPadding = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "HorizontalAlign":
             try {
                 $this->strHorizontalAlign = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "VerticalAlign":
             try {
                 $this->strVerticalAlign = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:eliud254,项目名称:q-auction,代码行数:55,代码来源:QWaitIcon.class.php


示例15: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "objAsset":
             $this->objAsset = $mixValue;
             break;
         case "blnEditMode":
             $this->blnEditMode = $mixValue;
             break;
         case "strTitleVerb":
             $this->strTitleVerb = $mixValue;
             break;
         case "dtgAssetTransaction":
             $this->dtgAssetTransaction = $mixValue;
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:brustj,项目名称:tracmor,代码行数:26,代码来源:QAssetEditComposite.class.php


示例16: __set

 /**
  * PHP __set magic method implementation
  * @param string $strName Name of the property
  * @param string $mixValue Value of the property
  *
  * @throws Exception|QCallerException
  * @throws Exception|QInvalidCastException
  */
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "Columns":
             try {
                 $this->intColumns = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Format":
             try {
                 $this->strFormat = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Text":
             try {
                 $this->strText = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "LabelForRequired":
             try {
                 $this->strLabelForRequired = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "LabelForRequiredUnnamed":
             try {
                 $this->strLabelForRequiredUnnamed = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "LabelForTooShort":
             try {
                 $this->strLabelForTooShort = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "LabelForTooShortUnnamed":
             try {
                 $this->strLabelForTooShortUnnamed = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "LabelForTooLong":
             try {
                 $this->strLabelForTooLong = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "LabelForTooLongUnnamed":
             try {
                 $this->strLabelForTooLongUnnamed = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Placeholder":
             try {
                 $this->strPlaceholder = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             // BEHAVIOR
         // BEHAVIOR
         case "CrossScripting":
             try {
                 $this->strCrossScripting = QType::Cast($mixValue, QType::String);
                 // Protect from XSS to the best we can do with HTMLPurifier.
                 if ($this->strCrossScripting == QCrossScripting::HTMLPurifier) {
//.........这里部分代码省略.........
开发者ID:tomVertuoz,项目名称:framework,代码行数:101,代码来源:QTextBoxBase.class.php


示例17: __set

		public function __set($strName, $mixValue) {
			$this->blnModified = true;

			switch ($strName) {
				// MISC
				case "DateTime":
					try {
						$dttDate = QType::Cast($mixValue, QType::DateTime);
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

					if (!is_null($dttDate))
						$this->intTimestamp = $dttDate->Timestamp;
					else
						$this->intTimestamp = null;

					break;

				case "CalendarType":
					try {
						$this->strCalendarType = QType::Cast($mixValue, QType::String);
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
					break;

//				case "MinimumDate": $this->dttMinimumDate = QType::Cast($mixValue, QType::Date); break;
//				case "MaximumDate": $this->dttMaximumDate = QType::Cast($mixValue, QType::Date); break;
				default:
					try {
						parent::__set($strName, $mixValue);
						break;
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
开发者ID:rommelxcastro,项目名称:CRI-Online-Sales---Admin,代码行数:41,代码来源:QCalendarPopup.class.php


示例18: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "ScaleCanvasDown":
             try {
                 $this->blnScaleCanvasDown = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ScaleImageUp":
             try {
                 $this->blnScaleImageUp = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             // BEHAVIOR
         // BEHAVIOR
         case "ImageType":
             try {
                 $this->strImageType = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Quality":
             try {
                 $this->intQuality = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "CacheFolder":
             try {
                 $this->strCacheFolder = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "CacheFilename":
             try {
                 $this->strCacheFilename = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ImagePath":
             try {
                 $this->strImagePath = QType::Cast($mixValue, QType::String);
                 if (!$this->strImagePath || !is_file($this->strImagePath)) {
                     throw new QCallerException('ImagePath is not defined or does not exist');
                 }
                 $this->strImagePath = realpath($this->strImagePath);
                 $strSourceImageType = trim(strtolower(substr($this->strImagePath, strrpos($this->strImagePath, '.') + 1)));
                 switch ($strSourceImageType) {
                     case 'jpeg':
                     case 'jpg':
                         $this->strSourceImageType = QImageType::Jpeg;
                         break;
                     case 'png':
                         $this->strSourceImageType = QImageType::Png;
                         break;
                     case 'gif':
                         $this->strSourceImageType = QImageType::Gif;
                         break;
                     default:
                         throw new QCallerException('Image Type cannot be determined: ' . $mixValue);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "AlternateText":
             try {
                 $this->strAlternateText = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             // OVERRIDDEN SETTERS
         // OVERRIDDEN SETTERS
         case "BackColor":
             try {
                 $mixValue = strtolower(QType::Cast($mixValue, QType::String));
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             if (strlen($mixValue) != 6) {
//.........这里部分代码省略.........
开发者ID:tomVertuoz,项目名称:framework,代码行数:101,代码来源:QImageControlBase.class.php


示例19: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // BEHAVIOR
         case "ItemsPerPage":
             try {
                 if ($mixValue > 0) {
                     return $this->intItemsPerPage = QType::Cast($mixValue, QType::Integer);
                 } else {
                     return $this->intItemsPerPage = 10;
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "PageNumber":
             try {
                 $intNewPageNum = QType::Cast($mixValue, QType::Integer);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             if ($intNewPageNum > 1) {
                 if ($intNewPageNum > $this->PageCount) {
                     $intNewPageNum = max($this->PageCount, 1);
                 }
                 return $this->intPageNumber = $intNewPageNum;
             } else {
                 return $this->intPageNumber = 1;
             }
             break;
         case "TotalItemCount":
             try {
                 if ($mixValue > 0) {
                     return $this->intTotalItemCount = QType::Cast($mixValue, QType::Integer);
                 } else {
                     return $this->intTotalItemCount = 0;
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "UseAjax":
             try {
                 $blnToReturn = $this->blnUseAjax = QType::Cast($mixValue, QType::Boolean);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             // Because we are switching to/from Ajax, we need to reset the events
             $this->RemoveAllActions('onclick');
             $this->Setup();
             return $blnToReturn;
         case 'WaitIcon':
             try {
                 $mixToReturn = $this->objWaitIcon = $mixValue;
                 //ensure we update our ajax action to use it
                 $this->RemoveAllActions('onclick');
                 $this->Setup();
                 return $mixToReturn;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:eliud254,项目名称:q-auction,代码行数:77,代码来源:QPaginatorBase.class.php


示例20: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AddClasses':
             try {
                 $this->blnAddClasses = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'addClasses', $this->blnAddClasses);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AppendTo':
             $this->mixAppendTo = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'appendTo', $mixValue);
             }
             break;
         case 'Axis':
             try {
                 $this->strAxis = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'axis', $this->strAxis);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Cancel':
             $this->mixCancel = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'cancel', $mixValue);
             }
             break;
         case 'ConnectToSortable':
             $this->mixConnectToSortable = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'connectToSortable', $mixValue);
             }
             break;
         case 'Containment':
             $this->mixContainment = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'containment', $mixValue);
             }
             break;
         case 'Cursor':
             try {
                 $this->strCursor = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'cursor', $this->strCursor);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CursorAt':
             $this->mixCursorAt = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'cursorAt', $mixValue);
             }
             break;
         case 'Delay':
             try {
                 $this->intDelay = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'delay', $this->intDelay);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'disabled', $this->blnDisabled);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Distance':
             try {
                 $this->intDistance = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'distance', $this->intDistance);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Grid':
//.........这里部分代码省略.........
开发者ID:tomVertuoz,项目名称:framework,代码行数:101,代码来源:QDraggableGen.class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP QConvertNotation类代码示例发布时间:2022-05-23
下一篇:
PHP QC类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap