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


PHP QControl::__set方法代码示例

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


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

示例1: __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 "ForControlId":
             try {
                 $this->strForControlId = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ForControl":
             try {
                 $objControl = QType::Cast($mixValue, 'QControl');
                 $this->strForControlId = QType::Cast($objControl->ControlId, 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:tomVertuoz,项目名称:framework,代码行数:40,代码来源:QControlLabel.class.php

示例2: __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;
             }
             $this->intSelectedMonth = null;
             $this->intSelectedDay = null;
             $this->intSelectedYear = null;
             if (is_null($dttDate) || $dttDate->IsNull()) {
                 $this->dttDateTime = null;
             } else {
                 $this->dttDateTime = $dttDate;
             }
             break;
         case "DateTimePickerType":
             try {
                 $this->strDateTimePickerType = QType::Cast($mixValue, QType::String);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         case "DateTimePickerFormat":
             try {
                 $this->strDateTimePickerFormat = QType::Cast($mixValue, QType::String);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         case "MinimumYear":
             try {
                 $this->intMinimumYear = QType::Cast($mixValue, QType::String);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         case "MaximumYear":
             try {
                 $this->intMaximumYear = QType::Cast($mixValue, QType::String);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:snowmann,项目名称:qcodo,代码行数:63,代码来源:QDateTimePicker.class.php

示例3: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "ItemCssStyle":
             try {
                 $this->strItemCssStyle = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ItemSelectedCssStyle":
             try {
                 $this->strItemSelectedCssStyle = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ItemHoverCssStyle":
             try {
                 $this->strItemHoverCssStyle = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "IndentWidth":
             try {
                 $this->intIndentWidth = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ItemHeight":
             try {
                 $this->intItemHeight = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ItemWidth":
             try {
                 $this->intItemWidth = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ExpandOnSelect":
             try {
                 $this->blnExpandOnSelect = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "SelectedItem":
             try {
                 $objItem = QType::Cast($mixValue, "QTreeNavItem");
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             // If the currently selected item is $objItem, then do nothing
             if ($objItem && $this->objSelectedTreeNavItem && (string) $this->objSelectedTreeNavItem->ItemId == (string) $objItem->ItemId) {
                 return $objItem;
             }
             // Deselect the Old (if applicable)
             if ($this->objSelectedTreeNavItem) {
                 // if we are in an AJAX response scenario, we MUST remember to use a javascript update call
                 // to "deselect" the old selected item
                 QApplication::ExecuteJavaScript(sprintf("treenavItemUnselect('%s_%s_label', '%s')", $this->strControlId, $this->objSelectedTreeNavItem->ItemId, $this->strItemCssStyle));
                 // Update deselection in the form state, too
                 $this->objSelectedTreeNavItem->Selected = false;
             }
             if ($this->objSelectedTreeNavItem = $objItem) {
                 $objItem->Selected = true;
                 if ($this->blnExpandOnSelect) {
                     $objItem->Expanded = true;
                 }
                 // Ensure that all parents and ancestors are expanded
                 $objParent = $this->GetItem($objItem->ParentItemId);
                 while ($objParent) {
                     $objParent->Expanded = true;
                     $objParent = $this->GetItem($objParent->ParentItemId);
                 }
             }
             return $objItem;
         case "ItemExpanded":
             $strTokenArray = explode(' ', $mixValue);
             $objItem = $this->GetItem($strTokenArray[0]);
             $objItem->Expanded = $strTokenArray[1];
             return $strTokenArray[1];
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
//.........这里部分代码省略.........
开发者ID:heshuai64,项目名称:einv2,代码行数:101,代码来源:QTreeNav.class.php

示例4: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:14,代码来源:QFileControl.class.php

示例5: __set

		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;
					}

				// BEHAVIOR
				case "CrossScripting":
					try {
						$this->strCrossScripting = QType::Cast($mixValue, QType::Boolean);
						break;
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
				case "MaxLength":
					try {
						$this->intMaxLength = QType::Cast($mixValue, QType::Integer);
						break;
					} catch (QInvalidCastException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
				case "MinLength":
					try {
						$this->intMinLength = QType::Cast($mixValue, QType::Integer);
						break;
					} catch (QInvalidCastException $objExc) {
//.........这里部分代码省略.........
开发者ID:rommelxcastro,项目名称:CRI-Online-Sales---Admin,代码行数:101,代码来源:QTextBoxBase.class.php

示例6: __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

示例7: __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

示例8: __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

示例9: __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

示例10: __set

 public function __set($strText, $mixValue)
 {
     switch ($strText) {
         case "ContainerClass":
             try {
                 // Bootstrap::ContainerFluid or Bootstrap::Container
                 $this->strContainerClass = QType::Cast($mixValue, QType::String);
                 break;
             } catch (\QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "HeaderText":
             try {
                 $this->strHeaderText = QType::Cast($mixValue, QType::String);
                 break;
             } catch (\QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "HeaderAnchor":
             try {
                 $this->strHeaderAnchor = QType::Cast($mixValue, QType::String);
                 break;
             } catch (\QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Value":
         case "SelectedId":
             try {
                 $this->strSelectedId = QType::Cast($mixValue, QType::String);
                 break;
             } catch (\QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "StyleClass":
             try {
                 $mixValue = QType::Cast($mixValue, QType::String);
                 $this->RemoveCssClass($this->strStyleClass);
                 $this->AddCssClass($mixValue);
                 $this->strStyleClass = $mixValue;
                 break;
             } catch (\QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strText, $mixValue);
             } catch (\QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:qcubed,项目名称:plugin_bootstrap,代码行数:58,代码来源:Navbar.php

示例11: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case 'ColumnLabels':
             try {
                 $this->arrColumnLabels = QType::Cast($mixValue, QType::ArrayType);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:brustj,项目名称:tracmor,代码行数:22,代码来源:QDataGridColumnToggle.class.php

示例12: __set

 /**
  * PHP magic method to set the value of class properties
  *
  * @param string $strName Name of the property
  * @param string $mixValue Value of the property
  *
  * @return mixed|void
  * @throws Exception
  * @throws QCallerException
  * @throws QInvalidCastException
  */
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         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 "AlternateText":
             try {
                 $this->strAlternateText = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ImageType":
             try {
                 $this->strImageType = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "JpegQuality":
             try {
                 $this->intJpegQuality = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:65,代码来源:QImageBase.class.php

示例13: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "Style":
             try {
                 /** @var QDataGridRowStyle $objStyle */
                 $objStyle = QType::Cast($mixValue, "QDataGridRowStyle");
                 $this->BackColor = $objStyle->BackColor;
                 $this->BorderColor = $objStyle->BorderColor;
                 $this->BorderStyle = $objStyle->BorderStyle;
                 $this->BorderWidth = $objStyle->BorderWidth;
                 $this->CssClass = $objStyle->CssClass;
                 $this->FontBold = $objStyle->FontBold;
                 $this->FontItalic = $objStyle->FontItalic;
                 $this->FontNames = $objStyle->FontNames;
                 $this->FontOverline = $objStyle->FontOverline;
                 $this->FontSize = $objStyle->FontSize;
                 $this->FontStrikeout = $objStyle->FontStrikeout;
                 $this->FontUnderline = $objStyle->FontUnderline;
                 $this->ForeColor = $objStyle->ForeColor;
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
开发者ID:hiptc,项目名称:dle2wordpress,代码行数:35,代码来源:QDataGridBase.class.php

示例14: __set

 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AlsoResize':
             $this->mixAlsoResize = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'alsoResize', $mixValue);
             }
             break;
         case 'Animate':
             try {
                 $this->blnAnimate = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'animate', $this->blnAnimate);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AnimateDuration':
             $this->mixAnimateDuration = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'animateDuration', $mixValue);
             }
             break;
         case 'AnimateEasing':
             try {
                 $this->strAnimateEasing = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'animateEasing', $this->strAnimateEasing);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AspectRatio':
             $this->mixAspectRatio = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'aspectRatio', $mixValue);
             }
             break;
         case 'AutoHide':
             try {
                 $this->blnAutoHide = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'autoHide', $this->blnAutoHide);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Cancel':
             $this->mixCancel = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'cancel', $mixValue);
             }
             break;
         case 'Containment':
             $this->mixContainment = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'containment', $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 'Ghost':
//.........这里部分代码省略.........
开发者ID:tomVertuoz,项目名称:framework,代码行数:101,代码来源:QResizableGen.class.php

示例15: __set

 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "Noun":
             try {
                 return $this->strNoun = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "NounPlural":
             try {
                 return $this->strNounPlural = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             // BEHAVIOR
         // BEHAVIOR
         case "Paginator":
             try {
                 $objToReturn = $this->objPaginator = QType::Cast($mixValue, 'QPaginatorBase');
                 if ($this->objPaginator->Form->FormId != $this->Form->FormId) {
                     throw new QCallerException('The assigned paginator must belong to the same form that this control belongs to.');
                 }
                 $objToReturn->SetPaginatedControl($this);
                 return $objToReturn;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "PaginatorAlternate":
             try {
                 $objToReturn = $this->objPaginatorAlternate = QType::Cast($mixValue, 'QPaginatorBase');
                 if ($this->objPaginatorAlternate->Form->FormId != $this->Form->FormId) {
                     throw new QCallerException('The assigned paginator must belong to the same form that this control belongs to.');
                 }
                 $objToReturn->SetPaginatedControl($this);
                 return $objToReturn;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "UseAjax":
             try {
                 $objToReturn = $this->blnUseAjax = QType::Cast($mixValue, QType::Boolean);
                 if ($this->objPaginator) {
                     $this->objPaginator->UseAjax = $objToReturn;
                 }
                 if ($this->objPaginatorAlternate) {
                     $this->objPaginatorAlternate->UseAjax = $objToReturn;
                 }
                 return $objToReturn;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "ItemsPerPage":
             if ($this->objPaginator) {
                 try {
                     $intToReturn = $this->objPaginator->ItemsPerPage = $mixValue;
                     if ($this->objPaginatorAlternate) {
                         $this->objPaginatorAlternate->ItemsPerPage = $intToReturn;
                     }
                     return $intToReturn;
                 } catch (QCallerException $objExc) {
                     $objExc->IncrementOffset();
                     throw $objExc;
                 }
             } else {
                 throw new QCallerException('Setting ItemsPerPage requires a Paginator to be set');
             }
         case "TotalItemCount":
             if ($this->objPaginator) {
                 try {
                     $intToReturn = $this->objPaginator->TotalItemCount = $mixValue;
                     if ($this->objPaginatorAlternate) {
                         $this->objPaginatorAlternate->TotalItemCount = $intToReturn;
                     }
                     return $intToReturn;
                 } catch (QCallerException $objExc) {
                     $objExc->IncrementOffset();
                     throw $objExc;
                 }
             } else {
                 throw new QCallerException('Setting TotalItemCount requires a Paginator to be set');
             }
             // MISC
         // MISC
         case "DataSource":
             return $this->objDataSource = $mixValue;
         case "PageNumber":
             if ($this->objPaginator) {
                 try {
                     $intToReturn = $this->objPaginator->PageNumber = $mixValue;
                     if ($this->objPaginatorAlternate) {
//.........这里部分代码省略.........
开发者ID:qcodo,项目名称:qcodo-api,代码行数:101,代码来源:QPaginatedControl.class.php


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