コード例 #1
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
コード例 #2
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Directory":
             try {
                 $this->txtDirectory->Text = 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;
     }
 }
コード例 #3
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "Role":
             $this->objRole = $mixValue;
             $this->dtgRoleUserList->Title = sprintf(t('Users with "%s" role'), $this->objRole->RoleName);
             $this->dtgRoleUserList->TotalItemCount;
             break;
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
コード例 #4
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'disabled', $this->blnDisabled);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Icons':
             $this->mixIcons = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'icons', $mixValue);
             }
             break;
         case 'Menus':
             try {
                 $this->strMenus = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'menus', $this->strMenus);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Position':
             $this->mixPosition = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'position', $mixValue);
             }
             break;
         case 'Role':
             try {
                 $this->strRole = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'role', $this->strRole);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #5
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Total":
             try {
                 $this->intTotal = max(0, intval($mixValue));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Fuzzy":
             try {
                 $this->intFuzzy = max(0, intval($mixValue));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Translated":
             try {
                 $this->intTranslated = max(0, intval($mixValue));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #6
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AppendTo':
             $this->mixAppendTo = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'appendTo', $mixValue);
             break;
         case 'AutoRefresh':
             try {
                 $this->blnAutoRefresh = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'autoRefresh', $this->blnAutoRefresh);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Cancel':
             $this->mixCancel = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'cancel', $mixValue);
             break;
         case 'Delay':
             try {
                 $this->intDelay = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'delay', $this->intDelay);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'disabled', $this->blnDisabled);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Distance':
             try {
                 $this->intDistance = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'distance', $this->intDistance);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Filter':
             $this->mixFilter = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'filter', $mixValue);
             break;
         case 'Tolerance':
             try {
                 $this->strTolerance = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'tolerance', $this->strTolerance);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #7
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Active':
             $this->mixActive = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'active', $mixValue);
             }
             break;
         case 'Animate':
             $this->mixAnimate = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'animate', $mixValue);
             }
             break;
         case 'Collapsible':
             try {
                 $this->blnCollapsible = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'collapsible', $this->blnCollapsible);
                 }
                 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 'Event':
             try {
                 $this->strEvent = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'event', $this->strEvent);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Header':
             $this->mixHeader = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'header', $mixValue);
             }
             break;
         case 'HeightStyle':
             try {
                 $this->strHeightStyle = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'heightStyle', $this->strHeightStyle);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Icons':
             $this->mixIcons = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'icons', $mixValue);
             }
             break;
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #8
0
ファイル: Alert.php プロジェクト: qcubed/plugin_bootstrap
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Dismissable':
         case "HasCloseButton":
             // QCubed synonym
             $blnDismissable = QType::Cast($mixValue, QType::Boolean);
             if ($blnDismissable != $this->blnDismissable) {
                 $this->blnDismissable = $blnDismissable;
                 $this->blnModified = true;
                 if ($blnDismissable) {
                     $this->AddCssClass(Bootstrap::AlertDismissable);
                     Bootstrap::LoadJS($this);
                 } else {
                     $this->RemoveCssClass(Bootstrap::AlertDismissable);
                 }
             }
             break;
         case '_Visible':
             // Private attribute to record the visible state of the alert
             $this->blnVisible = $mixValue;
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
コード例 #9
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "ProjectId":
             try {
                 $this->intProjectId = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "LanguageId":
             try {
                 $this->intLanguageId = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "DateStart":
             try {
                 $this->dttStart = QType::Cast($mixValue, 'QDateTime');
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #10
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Navigation1":
             try {
                 if ($this->ibnNavigation1) {
                     $this->RemoveChildControl($this->ibnNavigation1->ControlId, true);
                 }
                 $this->ibnNavigation1 = QType::Cast($mixValue, 'QImageBrowserNav');
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Navigation2":
             try {
                 if ($this->ibnNavigation2) {
                     $this->RemoveChildControl($this->ibnNavigation2->ControlId, true);
                 }
                 $this->ibnNavigation2 = QType::Cast($mixValue, 'QImageBrowserNav');
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Thumbnails":
             try {
                 if ($this->ibtThumbnails) {
                     $this->RemoveChildControl($this->ibtThumbnails->ControlId, true);
                 }
                 $this->ibtThumbnails = QType::Cast($mixValue, 'QImageBrowserThumbnails');
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Caption":
             try {
                 if ($this->txtCaption) {
                     $this->RemoveChildControl($this->txtCaption->ControlId, true);
                 }
                 $this->txtCaption = QType::Cast($mixValue, 'QControl');
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "SaveButton":
             try {
                 if ($this->btnSave) {
                     $this->btnSave->RemoveAllActions(QClickEvent::EventName);
                     $this->RemoveChildControl($this->btnSave->ControlId, true);
                 }
                 $this->btnSave = QType::Cast($mixValue, 'QControl');
                 $this->btnSave->AddAction(new QClickEvent(), new QAjaxControlAction($this, "btnSave_Click"));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
コード例 #11
0
ファイル: QTabPanel.class.php プロジェクト: Jobava/narro
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Float":
             try {
                 $this->strFloat = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "SelectedTab":
             try {
                 if (is_integer($mixValue)) {
                     $this->intSelectedTab = QType::Cast($mixValue, QType::Integer);
                 } else {
                     foreach ($this->arrTabTitle as $intSelectedTab => $strTabTitle) {
                         if ($mixValue == $strTabTitle) {
                             $this->intSelectedTab = $intSelectedTab;
                             break;
                         }
                     }
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "UseAjax":
             try {
                 $this->blnUseAjax = 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;
     }
 }
コード例 #12
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'disabled', $this->blnDisabled);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Max':
             try {
                 $this->intMax = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'max', $this->intMax);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Value':
             $this->mixValue = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'value', $mixValue);
             break;
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #13
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Active':
             $this->mixActive = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'active', $mixValue);
             break;
         case 'Collapsible':
             try {
                 $this->blnCollapsible = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'collapsible', $this->blnCollapsible);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Disabled':
             $this->mixDisabled = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'disabled', $mixValue);
             break;
         case 'Event':
             try {
                 $this->strEvent = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'event', $this->strEvent);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'HeightStyle':
             try {
                 $this->strHeightStyle = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'heightStyle', $this->strHeightStyle);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Hide':
             $this->mixHide = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'hide', $mixValue);
             break;
         case 'Show':
             $this->mixShow = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'show', $mixValue);
             break;
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #14
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         /*case 'EntityQtypeId':
         		try {
         			return ($this->intEntityQtypeId = $mixValue);
         		} catch (QCallerException $objExc) {						
         			$objExc->IncrementOffset();
         			throw $objExc;
         		}*/
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #15
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Animate':
             $this->mixAnimate = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'animate', $mixValue);
             }
             break;
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'disabled', $this->blnDisabled);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Max':
             try {
                 $this->intMax = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'max', $this->intMax);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Min':
             try {
                 $this->intMin = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'min', $this->intMin);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Orientation':
             try {
                 $this->strOrientation = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'orientation', $this->strOrientation);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Range':
             $this->mixRange = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'range', $mixValue);
             }
             break;
         case 'Step':
             try {
                 $this->intStep = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'step', $this->intStep);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Value':
             try {
                 $this->intValue = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'value', $this->intValue);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Values':
             try {
                 $this->arrValues = QType::Cast($mixValue, QType::ArrayType);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'values', $this->arrValues);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #16
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AltField':
             $this->mixAltField = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'altField', $mixValue);
             }
             break;
         case 'AltFormat':
             try {
                 $this->strAltFormat = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'altFormat', $this->strAltFormat);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AppendText':
             try {
                 $this->strAppendText = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'appendText', $this->strAppendText);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'AutoSize':
             try {
                 $this->blnAutoSize = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'autoSize', $this->blnAutoSize);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'OnBeforeShow':
             try {
                 $this->mixOnBeforeShow = new QJsClosure($mixValue, array("input", "inst"));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'OnBeforeShowDay':
             try {
                 $this->mixOnBeforeShowDay = new QJsClosure($mixValue, array("date"));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ButtonImage':
             try {
                 $this->strButtonImage = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'buttonImage', $this->strButtonImage);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ButtonImageOnly':
             try {
                 $this->blnButtonImageOnly = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'buttonImageOnly', $this->blnButtonImageOnly);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ButtonText':
             try {
                 $this->strButtonText = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'buttonText', $this->strButtonText);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'OnCalculateWeek':
             try {
                 $this->mixOnCalculateWeek = new QJsClosure($mixValue, array(""));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ChangeMonth':
             try {
                 $this->blnChangeMonth = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'changeMonth', $this->blnChangeMonth);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ChangeYear':
             try {
                 $this->blnChangeYear = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'changeYear', $this->blnChangeYear);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CloseText':
             try {
                 $this->strCloseText = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'closeText', $this->strCloseText);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ConstrainInput':
             try {
                 $this->blnConstrainInput = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'constrainInput', $this->blnConstrainInput);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CurrentText':
             try {
                 $this->strCurrentText = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'currentText', $this->strCurrentText);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'JqDateFormat':
             try {
                 $this->strJqDateFormat = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'dateFormat', $this->strJqDateFormat);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DayNames':
             try {
                 $this->arrDayNames = QType::Cast($mixValue, QType::ArrayType);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'dayNames', $this->arrDayNames);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DayNamesMin':
             try {
                 $this->arrDayNamesMin = QType::Cast($mixValue, QType::ArrayType);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'dayNamesMin', $this->arrDayNamesMin);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DayNamesShort':
             try {
                 $this->arrDayNamesShort = QType::Cast($mixValue, QType::ArrayType);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'dayNamesShort', $this->arrDayNamesShort);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DefaultDate':
             $this->mixDefaultDate = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'defaultDate', $mixValue);
             }
             break;
         case 'Duration':
             $this->mixDuration = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'duration', $mixValue);
             }
             break;
         case 'FirstDay':
             try {
                 $this->intFirstDay = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'firstDay', $this->intFirstDay);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'GotoCurrent':
             try {
                 $this->blnGotoCurrent = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'gotoCurrent', $this->blnGotoCurrent);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'HideIfNoPrevNext':
             try {
                 $this->blnHideIfNoPrevNext = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'hideIfNoPrevNext', $this->blnHideIfNoPrevNext);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'IsRTL':
             try {
                 $this->blnIsRTL = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'isRTL', $this->blnIsRTL);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MaxDate':
             $this->mixMaxDate = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'maxDate', $mixValue);
             }
             break;
         case 'MinDate':
             $this->mixMinDate = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'minDate', $mixValue);
             }
             break;
         case 'MonthNames':
             try {
                 $this->arrMonthNames = QType::Cast($mixValue, QType::ArrayType);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'monthNames', $this->arrMonthNames);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MonthNamesShort':
             try {
                 $this->arrMonthNamesShort = QType::Cast($mixValue, QType::ArrayType);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'monthNamesShort', $this->arrMonthNamesShort);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'NavigationAsDateFormat':
             try {
                 $this->blnNavigationAsDateFormat = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'navigationAsDateFormat', $this->blnNavigationAsDateFormat);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'NextText':
             try {
                 $this->strNextText = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'nextText', $this->strNextText);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'NumberOfMonths':
             $this->mixNumberOfMonths = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'numberOfMonths', $mixValue);
             }
             break;
         case 'OnChangeMonthYear':
             try {
                 $this->mixOnChangeMonthYear = new QJsClosure($mixValue, array("year", "month", "inst"));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'OnClose':
             try {
                 $this->mixOnClose = new QJsClosure($mixValue, array("dateText", "inst"));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'OnSelect':
             try {
                 $this->mixOnSelect = new QJsClosure($mixValue, array("dateText", "inst"));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'PrevText':
             try {
                 $this->strPrevText = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'prevText', $this->strPrevText);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'SelectOtherMonths':
             try {
                 $this->blnSelectOtherMonths = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'selectOtherMonths', $this->blnSelectOtherMonths);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShortYearCutoff':
             $this->mixShortYearCutoff = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'shortYearCutoff', $mixValue);
             }
             break;
         case 'ShowAnim':
             try {
                 $this->strShowAnim = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'showAnim', $this->strShowAnim);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShowButtonPanel':
             try {
                 $this->blnShowButtonPanel = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'showButtonPanel', $this->blnShowButtonPanel);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShowCurrentAtPos':
             try {
                 $this->intShowCurrentAtPos = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'showCurrentAtPos', $this->intShowCurrentAtPos);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShowMonthAfterYear':
             try {
                 $this->blnShowMonthAfterYear = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'showMonthAfterYear', $this->blnShowMonthAfterYear);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShowOn':
             try {
                 $this->strShowOn = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'showOn', $this->strShowOn);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShowOptions':
             $this->mixShowOptions = $mixValue;
             if ($this->Rendered) {
                 $this->CallJqUiMethod('option', 'showOptions', $mixValue);
             }
             break;
         case 'ShowOtherMonths':
             try {
                 $this->blnShowOtherMonths = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'showOtherMonths', $this->blnShowOtherMonths);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShowWeek':
             try {
                 $this->blnShowWeek = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'showWeek', $this->blnShowWeek);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'StepMonths':
             try {
                 $this->intStepMonths = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'stepMonths', $this->intStepMonths);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'WeekHeader':
             try {
                 $this->strWeekHeader = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'weekHeader', $this->strWeekHeader);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'YearRange':
             try {
                 $this->strYearRange = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'yearRange', $this->strYearRange);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'YearSuffix':
             try {
                 $this->strYearSuffix = QType::Cast($mixValue, QType::String);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'yearSuffix', $this->strYearSuffix);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #17
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'disabled', $this->blnDisabled);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Max':
             try {
                 $this->intMax = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'max', $this->intMax);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Value':
             try {
                 $this->intValue = QType::Cast($mixValue, QType::Integer);
                 if ($this->Rendered) {
                     $this->CallJqUiMethod('option', 'value', $this->intValue);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #18
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AppendTo':
             $this->mixAppendTo = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'appendTo', $mixValue);
             break;
         case 'Axis':
             try {
                 $this->strAxis = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'axis', $this->strAxis);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Cancel':
             $this->mixCancel = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'cancel', $mixValue);
             break;
         case 'ConnectWith':
             $this->mixConnectWith = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'connectWith', $mixValue);
             break;
         case 'Containment':
             $this->mixContainment = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'containment', $mixValue);
             break;
         case 'Cursor':
             try {
                 $this->strCursor = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'cursor', $this->strCursor);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CursorAt':
             $this->mixCursorAt = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'cursorAt', $mixValue);
             break;
         case 'Delay':
             try {
                 $this->intDelay = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'delay', $this->intDelay);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'disabled', $this->blnDisabled);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Distance':
             try {
                 $this->intDistance = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'distance', $this->intDistance);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DropOnEmpty':
             try {
                 $this->blnDropOnEmpty = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'dropOnEmpty', $this->blnDropOnEmpty);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ForceHelperSize':
             try {
                 $this->blnForceHelperSize = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'forceHelperSize', $this->blnForceHelperSize);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ForcePlaceholderSize':
             try {
                 $this->blnForcePlaceholderSize = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'forcePlaceholderSize', $this->blnForcePlaceholderSize);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Grid':
             try {
                 $this->arrGrid = QType::Cast($mixValue, QType::ArrayType);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'grid', $this->arrGrid);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Handle':
             $this->mixHandle = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'handle', $mixValue);
             break;
         case 'Helper':
             $this->mixHelper = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'helper', $mixValue);
             break;
         case 'Items':
             $this->mixItems = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'items', $mixValue);
             break;
         case 'Opacity':
             try {
                 $this->intOpacity = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'opacity', $this->intOpacity);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Placeholder':
             try {
                 $this->strPlaceholder = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'placeholder', $this->strPlaceholder);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Revert':
             $this->mixRevert = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'revert', $mixValue);
             break;
         case 'Scroll':
             try {
                 $this->blnScroll = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'scroll', $this->blnScroll);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ScrollSensitivity':
             try {
                 $this->intScrollSensitivity = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'scrollSensitivity', $this->intScrollSensitivity);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ScrollSpeed':
             try {
                 $this->intScrollSpeed = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'scrollSpeed', $this->intScrollSpeed);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Tolerance':
             try {
                 $this->strTolerance = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'tolerance', $this->strTolerance);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ZIndex':
             try {
                 $this->intZIndex = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'zIndex', $this->intZIndex);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #19
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Filter":
             try {
                 $this->intFilter = 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;
     }
 }
コード例 #20
0
ファイル: SelectPersonPanel.class.php プロジェクト: alcf/chms
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case 'AllowCreate':
             try {
                 return $this->blnAllowCreate = QType::Cast($mixValue, QType::Boolean);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ForceAsMaleFlag':
             try {
                 return $this->blnForceAsMaleFlag = 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;
             }
     }
 }
コード例 #21
0
ファイル: QDialogBox.class.php プロジェクト: klucznik/qcodo
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "MatteColor":
             try {
                 $this->strMatteColor = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "MatteOpacity":
             try {
                 $this->intMatteOpacity = QType::Cast($mixValue, QType::Float);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "MatteClickable":
             try {
                 $this->blnMatteClickable = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "AnyKeyCloses":
             try {
                 $this->blnAnyKeyCloses = 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;
     }
 }
コード例 #22
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Title":
             try {
                 $this->strTitle = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "MatteColor":
             try {
                 $this->strMatteColor = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "MatteOpacity":
             try {
                 $this->intMatteOpacity = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "MatteClickable":
             try {
                 $this->blnMatteClickable = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "AnyKeyCloses":
             try {
                 $this->blnAnyKeyCloses = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Modal":
             try {
                 $this->blnModal = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Width":
             try {
                 if (null === $mixValue || 'auto' === $mixValue) {
                     $this->strDialogWidth = null;
                 } else {
                     $mixValue = str_replace("px", "", strtolower($mixValue));
                     // Replace the text "px" (pixels) with empty string if it's there
                     // for now, jQuery dialog only accepts integers as width
                     $this->strDialogWidth = QType::Cast($mixValue, QType::Integer);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Height":
             try {
                 if (null === $mixValue || 'auto' === $mixValue) {
                     $this->strHeight = null;
                 } else {
                     $mixValue = str_replace("px", "", strtolower($mixValue));
                     // Replace the text "px" (pixels) with empty string if it's there
                     // for now, jQuery dialog only accepts integers as height
                     $this->strHeight = 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;
     }
 }
コード例 #23
0
ファイル: QPieChart.class.php プロジェクト: Jobava/narro
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case "Data":
             try {
                 $this->arrData = QType::Cast($mixValue, QType::ArrayType);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "MinimumDataValue":
             try {
                 $this->intMinimumDataValue = QType::Cast($mixValue, QType::Integer);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Total":
             try {
                 $this->intTotal = 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;
     }
 }
コード例 #24
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AutoOpen':
             try {
                 $this->blnAutoOpen = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'autoOpen', $this->blnAutoOpen);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Buttons':
             $this->mixButtons = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'buttons', $mixValue);
             }
             break;
         case 'CloseOnEscape':
             try {
                 $this->blnCloseOnEscape = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'closeOnEscape', $this->blnCloseOnEscape);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CloseText':
             try {
                 $this->strCloseText = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'closeText', $this->strCloseText);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DialogClass':
             try {
                 $this->strDialogClass = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'dialogClass', $this->strDialogClass);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Draggable':
             try {
                 $this->blnDraggable = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'draggable', $this->blnDraggable);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Height':
             $this->mixHeight = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'height', $mixValue);
             }
             break;
         case 'Hide':
             $this->mixHide = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'hide', $mixValue);
             }
             break;
         case 'MaxHeight':
             try {
                 $this->intMaxHeight = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'maxHeight', $this->intMaxHeight);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MaxWidth':
             try {
                 $this->intMaxWidth = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'maxWidth', $this->intMaxWidth);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MinHeight':
             try {
                 $this->intMinHeight = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'minHeight', $this->intMinHeight);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MinWidth':
             try {
                 $this->intMinWidth = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'minWidth', $this->intMinWidth);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Modal':
             try {
                 $this->blnModal = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'modal', $this->blnModal);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Position':
             $this->mixPosition = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'position', $mixValue);
             }
             break;
         case 'Resizable':
             try {
                 $this->blnResizable = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'resizable', $this->blnResizable);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Show':
             $this->mixShow = $mixValue;
             if ($this->OnPage) {
                 $this->CallJqUiMethod(true, 'option', 'show', $mixValue);
             }
             break;
         case 'Stack':
             try {
                 $this->blnStack = QType::Cast($mixValue, QType::Boolean);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'stack', $this->blnStack);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Title':
             try {
                 $this->strTitle = QType::Cast($mixValue, QType::String);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'title', $this->strTitle);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Width':
             try {
                 $this->intWidth = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'width', $this->intWidth);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ZIndex':
             try {
                 $this->intZIndex = QType::Cast($mixValue, QType::Integer);
                 if ($this->OnPage) {
                     $this->CallJqUiMethod(true, 'option', 'zIndex', $this->intZIndex);
                 }
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #25
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'AppendTo':
             $this->mixAppendTo = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'appendTo', $mixValue);
             break;
         case 'AutoOpen':
             try {
                 $this->blnAutoOpen = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'autoOpen', $this->blnAutoOpen);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Buttons':
             $this->mixButtons = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'buttons', $mixValue);
             break;
         case 'CloseOnEscape':
             try {
                 $this->blnCloseOnEscape = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'closeOnEscape', $this->blnCloseOnEscape);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CloseText':
             try {
                 $this->strCloseText = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'closeText', $this->strCloseText);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DialogClass':
             try {
                 $this->strDialogClass = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'dialogClass', $this->strDialogClass);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Draggable':
             try {
                 $this->blnDraggable = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'draggable', $this->blnDraggable);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Height':
             $this->mixHeight = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'height', $mixValue);
             break;
         case 'Hide':
             $this->mixHide = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'hide', $mixValue);
             break;
         case 'MaxHeight':
             try {
                 $this->intMaxHeight = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'maxHeight', $this->intMaxHeight);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MaxWidth':
             try {
                 $this->intMaxWidth = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'maxWidth', $this->intMaxWidth);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MinHeight':
             try {
                 $this->intMinHeight = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'minHeight', $this->intMinHeight);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MinWidth':
             try {
                 $this->intMinWidth = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'minWidth', $this->intMinWidth);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Modal':
             try {
                 $this->blnModal = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'modal', $this->blnModal);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Position':
             $this->mixPosition = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'position', $mixValue);
             break;
         case 'Resizable':
             try {
                 $this->blnResizable = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'resizable', $this->blnResizable);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Show':
             $this->mixShow = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'show', $mixValue);
             break;
         case 'Title':
             try {
                 $this->strTitle = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'title', $this->strTitle);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Width':
             try {
                 $this->intWidth = QType::Cast($mixValue, QType::Integer);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'width', $this->intWidth);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #26
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case 'File':
             try {
                 return $this->SetFile($mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DialogBoxCssClass':
             try {
                 return $this->dlgFileAsset->CssClass = $mixValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'UploadText':
             try {
                 return $this->dlgFileAsset->btnUpload->Text = $mixValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CancelText':
             try {
                 return $this->dlgFileAsset->btnCancel->Text = $mixValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'DialogBoxHtml':
             try {
                 return $this->dlgFileAsset->lblMessage->Text = $mixValue;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FileAssetType':
             try {
                 return $this->SetFileAssetType($mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'UnacceptableMessage':
             try {
                 return $this->strUnacceptableMessage = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'TemporaryUploadPath':
             try {
                 return $this->strTemporaryUploadPath = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ClickToView':
             try {
                 return $this->blnClickToView = 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;
             }
     }
 }
コード例 #27
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         // APPEARANCE
         case "Role":
             $this->objRole = $mixValue;
             if (!QApplication::HasPermission('Can manage roles')) {
                 $this->dtgPermission->AdditionalConditions = QQ::Equal(QQN::NarroPermission()->NarroRolePermissionAsPermission->RoleId, $this->objRole->RoleId);
             }
             $this->dtgPermission->MarkAsModified();
             break;
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
コード例 #28
0
 public function __set($strName, $mixValue)
 {
     $this->blnModified = true;
     switch ($strName) {
         case 'Changed':
             try {
                 $this->chkChanged->Checked = QType::Cast($mixValue, QType::Boolean);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             return;
         case "Index":
             try {
                 $this->lblIndex->Text = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             return;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
コード例 #29
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Disabled':
             try {
                 $this->blnDisabled = QType::Cast($mixValue, QType::Boolean);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'disabled', $this->blnDisabled);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Icons':
             $this->mixIcons = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'icons', $mixValue);
             break;
         case 'Items':
             try {
                 $this->strItems = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'items', $this->strItems);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Menus':
             try {
                 $this->strMenus = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'menus', $this->strMenus);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Position':
             $this->mixPosition = $mixValue;
             $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'position', $mixValue);
             break;
         case 'Role':
             try {
                 $this->strRole = QType::Cast($mixValue, QType::String);
                 $this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'role', $this->strRole);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Enabled':
             $this->Disabled = !$mixValue;
             // Tie in standard QCubed functionality
             parent::__set($strName, $mixValue);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }