本文整理汇总了PHP中QPanel::__set方法的典型用法代码示例。如果您正苦于以下问题:PHP QPanel::__set方法的具体用法?PHP QPanel::__set怎么用?PHP QPanel::__set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QPanel
的用法示例。
在下文中一共展示了QPanel::__set方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __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;
}
}
示例2: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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: __set
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);
//.........这里部分代码省略.........