public function __set($strName, $mixValue) { switch ($strName) { case "HtmlIncludeFilePath": // Passed-in value is null -- use the "default" path name of file".tpl.php" if (!$mixValue) { $strPath = realpath(substr(QApplication::$ScriptFilename, 0, strrpos(QApplication::$ScriptFilename, '.php')) . '.tpl.php'); } else { $strPath = realpath($mixValue); } // Verify File Exists, and if not, throw exception if (is_file($strPath)) { $this->strHtmlIncludeFilePath = $strPath; return $strPath; } else { throw new QCallerException('Accompanying HTML Include File does not exist: "' . $mixValue . '"'); } break; case "CssClass": try { return $this->strCssClass = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * The PHP Magic function for this class * @param string $strName Name of the property to fetch * * @return int|mixed|null|string * @throws Exception|QCallerException */ public function __get($strName) { switch ($strName) { case 'EventName': $strEvent = constant(get_class($this) . '::EventName'); if ($this->strSelector) { $strEvent .= '","' . addslashes($this->strSelector); } return $strEvent; case 'Condition': return $this->strCondition; case 'Delay': return $this->intDelay; case 'JsReturnParam': $strConst = get_class($this) . '::JsReturnParam'; return defined($strConst) ? constant($strConst) : ''; case 'Selector': return $this->strSelector; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { switch ($strName) { case "Title": try { return $this->strTitle = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "ActiveEvent": try { return $this->objActiveEvent = $mixValue; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "SkipMainWindowRender": try { return $this->blnSkipMainWindowRender = QType::Cast($mixValue, QType::Boolean); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { switch ($strName) { case "Value": try { return $this->strValue = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Text": try { return $this->strText = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Selected": try { return $this->blnSelected = QType::Cast($mixValue, QType::Boolean); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { switch ($strName) { case "HtmlIncludeFilePath": default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __get($strName) { switch ($strName) { case 'Event': return $this->objEvent; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __get($strName) { switch ($strName) { case "GroupingId": return $this->strGroupingId; case "Modified": return $this->blnModified; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __get($strName) { switch ($strName) { case 'State': return $this->intState; case 'Buffer': return $this->strBuffer; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __get($strName) { switch ($strName) { case 'JavaScriptEvent': return $this->strJavaScriptEvent; case 'Condition': return $this->strCondition; case 'Delay': return $this->intDelay; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string strName Name of the property to set * @param string mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { case 'KeyName': return $this->strKeyName = QType::Cast($mixValue, QType::String); case 'Unique': return $this->blnUnique = QType::Cast($mixValue, QType::Boolean); case 'PrimaryKey': return $this->blnPrimaryKey = QType::Cast($mixValue, QType::Boolean); case 'ColumnNameArray': return $this->strColumnNameArray = QType::Cast($mixValue, QType::ArrayType); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
public function __get($strName) { switch ($strName) { case "FormId": return $this->strFormId; case "CallType": return $this->strCallType; case "DefaultWaitIcon": return $this->objDefaultWaitIcon; case "FormStatus": return $this->intFormStatus; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { switch ($strName) { /* case "ControlId": try { return ($this->strId = QType::Cast($mixValue, QType::String)); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } */ default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { switch ($strName) { case "Name": try { $this->strName = QType::Cast($mixValue, QType::String); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Value": try { $this->strValue = QType::Cast($mixValue, QType::String); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Selected": try { $this->blnSelected = QType::Cast($mixValue, QType::Boolean); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } break; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { case 'KeyName': return $this->strKeyName = QType::Cast($mixValue, QType::String); case 'Table': return $this->strTable = QType::Cast($mixValue, QType::String); case 'Column': return $this->strColumn = QType::Cast($mixValue, QType::String); case 'PropertyName': return $this->strPropertyName = QType::Cast($mixValue, QType::String); case 'VariableName': return $this->strVariableName = QType::Cast($mixValue, QType::String); case 'VariableType': return $this->strVariableType = QType::Cast($mixValue, QType::String); case 'IsType': return $this->blnIsType = QType::Cast($mixValue, QType::Boolean); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'CategoryId': /** * Sets the value for intCategoryId * @param integer $mixValue * @return integer */ try { $this->objCategory = null; return $this->intCategoryId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ManufacturerId': /** * Sets the value for intManufacturerId * @param integer $mixValue * @return integer */ try { $this->objManufacturer = null; return $this->intManufacturerId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'InventoryModelCode': /** * Sets the value for strInventoryModelCode (Unique) * @param string $mixValue * @return string */ try { return $this->strInventoryModelCode = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ShortDescription': /** * Sets the value for strShortDescription (Not Null) * @param string $mixValue * @return string */ try { return $this->strShortDescription = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'LongDescription': /** * Sets the value for strLongDescription * @param string $mixValue * @return string */ try { return $this->strLongDescription = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ImagePath': /** * Sets the value for strImagePath * @param string $mixValue * @return string */ try { return $this->strImagePath = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Price': /** * Sets the value for fltPrice * @param double $mixValue * @return double */ try { return $this->fltPrice = QType::Cast($mixValue, QType::Float); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'CreatedBy': /** * Sets the value for intCreatedBy * @param integer $mixValue * @return integer */ try { $this->objCreatedByObject = null; return $this->intCreatedBy = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'CreationDate': /** * Sets the value for dttCreationDate * @param QDateTime $mixValue * @return QDateTime */ try { return $this->dttCreationDate = QType::Cast($mixValue, QType::DateTime); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ModifiedBy': /** * Sets the value for intModifiedBy * @param integer $mixValue * @return integer */ try { $this->objModifiedByObject = null; return $this->intModifiedBy = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Category': /** * Sets the value for the Category object referenced by intCategoryId * @param Category $mixValue * @return Category */ if (is_null($mixValue)) { $this->intCategoryId = null; $this->objCategory = null; return null; } else { // Make sure $mixValue actually is a Category object try { $mixValue = QType::Cast($mixValue, 'Category'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Category object if (is_null($mixValue->CategoryId)) { throw new QCallerException('Unable to set an unsaved Category for this InventoryModel'); } // Update Local Member Variables $this->objCategory = $mixValue; $this->intCategoryId = $mixValue->CategoryId; // Return $mixValue return $mixValue; } break; case 'Manufacturer': /** * Sets the value for the Manufacturer object referenced by intManufacturerId * @param Manufacturer $mixValue * @return Manufacturer */ if (is_null($mixValue)) { $this->intManufacturerId = null; $this->objManufacturer = null; return null; } else { // Make sure $mixValue actually is a Manufacturer object try { $mixValue = QType::Cast($mixValue, 'Manufacturer'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Manufacturer object if (is_null($mixValue->ManufacturerId)) { throw new QCallerException('Unable to set an unsaved Manufacturer for this InventoryModel'); } // Update Local Member Variables $this->objManufacturer = $mixValue; $this->intManufacturerId = $mixValue->ManufacturerId; // Return $mixValue return $mixValue; } break; case 'CreatedByObject': /** * Sets the value for the UserAccount object referenced by intCreatedBy * @param UserAccount $mixValue * @return UserAccount */ if (is_null($mixValue)) { $this->intCreatedBy = null; $this->objCreatedByObject = null; return null; } else { // Make sure $mixValue actually is a UserAccount object try { $mixValue = QType::Cast($mixValue, 'UserAccount'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED UserAccount object if (is_null($mixValue->UserAccountId)) { throw new QCallerException('Unable to set an unsaved CreatedByObject for this InventoryModel'); } // Update Local Member Variables $this->objCreatedByObject = $mixValue; $this->intCreatedBy = $mixValue->UserAccountId; // Return $mixValue return $mixValue; } break; case 'ModifiedByObject': /** * Sets the value for the UserAccount object referenced by intModifiedBy * @param UserAccount $mixValue * @return UserAccount */ if (is_null($mixValue)) { $this->intModifiedBy = null; $this->objModifiedByObject = null; return null; } else { // Make sure $mixValue actually is a UserAccount object try { $mixValue = QType::Cast($mixValue, 'UserAccount'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED UserAccount object if (is_null($mixValue->UserAccountId)) { throw new QCallerException('Unable to set an unsaved ModifiedByObject for this InventoryModel'); } // Update Local Member Variables $this->objModifiedByObject = $mixValue; $this->intModifiedBy = $mixValue->UserAccountId; // Return $mixValue return $mixValue; } break; default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'IssueFieldId': // Sets the value for intIssueFieldId (Not Null) // @param integer $mixValue // @return integer try { $this->objIssueField = null; return $this->intIssueFieldId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Name': // Sets the value for strName (Not Null) // @param string $mixValue // @return string try { return $this->strName = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Token': // Sets the value for strToken (Not Null) // @param string $mixValue // @return string try { return $this->strToken = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'OrderNumber': // Sets the value for intOrderNumber // @param integer $mixValue // @return integer try { return $this->intOrderNumber = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ActiveFlag': // Sets the value for blnActiveFlag // @param boolean $mixValue // @return boolean try { return $this->blnActiveFlag = QType::Cast($mixValue, QType::Boolean); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'IssueField': // Sets the value for the IssueField object referenced by intIssueFieldId (Not Null) // @param IssueField $mixValue // @return IssueField if (is_null($mixValue)) { $this->intIssueFieldId = null; $this->objIssueField = null; return null; } else { // Make sure $mixValue actually is a IssueField object try { $mixValue = QType::Cast($mixValue, 'IssueField'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED IssueField object if (is_null($mixValue->Id)) { throw new QCallerException('Unable to set an unsaved IssueField for this IssueFieldOption'); } // Update Local Member Variables $this->objIssueField = $mixValue; $this->intIssueFieldId = $mixValue->Id; // Return $mixValue return $mixValue; } break; default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { // Controls that point to Message fields case 'IdControl': return $this->lblId = QType::Cast($mixValue, 'QControl'); case 'TopicIdControl': return $this->lstTopic = QType::Cast($mixValue, 'QControl'); case 'TopicLinkIdControl': return $this->lstTopicLink = QType::Cast($mixValue, 'QControl'); case 'PersonIdControl': return $this->lstPerson = QType::Cast($mixValue, 'QControl'); case 'MessageControl': return $this->txtMessage = QType::Cast($mixValue, 'QControl'); case 'CompiledHtmlControl': return $this->txtCompiledHtml = QType::Cast($mixValue, 'QControl'); case 'ReplyNumberControl': return $this->txtReplyNumber = QType::Cast($mixValue, 'QControl'); case 'PostDateControl': return $this->calPostDate = QType::Cast($mixValue, 'QControl'); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { // Controls that point to NarroLog fields case 'LogIdControl': return $this->lblLogId = QType::Cast($mixValue, 'QControl'); case 'LanguageIdControl': return $this->lstLanguage = QType::Cast($mixValue, 'QControl'); case 'ProjectIdControl': return $this->lstProject = QType::Cast($mixValue, 'QControl'); case 'UserIdControl': return $this->lstUser = QType::Cast($mixValue, 'QControl'); case 'MessageControl': return $this->txtMessage = QType::Cast($mixValue, 'QControl'); case 'PriorityControl': return $this->txtPriority = QType::Cast($mixValue, 'QControl'); case 'DateControl': return $this->calDate = QType::Cast($mixValue, 'QControl'); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed the property that was set */ public function __set($strName, $mixValue) { try { switch ($strName) { case 'Month': return $this->intMonth = QType::Cast($mixValue, QType::Integer); case 'Day': return $this->intDay = QType::Cast($mixValue, QType::Integer); case 'Year': return $this->intYear = QType::Cast($mixValue, QType::Integer); case 'Hour': return $this->intHour = QType::Cast($mixValue, QType::Integer); case 'Minute': return $this->intMinute = QType::Cast($mixValue, QType::Integer); case 'Second': return $this->intSecond = QType::Cast($mixValue, QType::Integer); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'RoleId': // Sets the value for intRoleId (Not Null) // @param integer $mixValue // @return integer try { $this->objRole = null; return $this->intRoleId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'EntityQtypeId': // Sets the value for intEntityQtypeId (Not Null) // @param integer $mixValue // @return integer try { return $this->intEntityQtypeId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'AuthorizationId': // Sets the value for intAuthorizationId (Not Null) // @param integer $mixValue // @return integer try { $this->objAuthorization = null; return $this->intAuthorizationId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'AuthorizedFlag': // Sets the value for blnAuthorizedFlag (Not Null) // @param boolean $mixValue // @return boolean try { return $this->blnAuthorizedFlag = QType::Cast($mixValue, QType::Boolean); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'CreatedBy': // Sets the value for intCreatedBy // @param integer $mixValue // @return integer try { $this->objCreatedByObject = null; return $this->intCreatedBy = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'CreationDate': // Sets the value for dttCreationDate // @param QDateTime $mixValue // @return QDateTime try { return $this->dttCreationDate = QType::Cast($mixValue, QType::DateTime); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ModifiedBy': // Sets the value for intModifiedBy // @param integer $mixValue // @return integer try { $this->objModifiedByObject = null; return $this->intModifiedBy = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Role': // Sets the value for the Role object referenced by intRoleId (Not Null) // @param Role $mixValue // @return Role if (is_null($mixValue)) { $this->intRoleId = null; $this->objRole = null; return null; } else { // Make sure $mixValue actually is a Role object try { $mixValue = QType::Cast($mixValue, 'Role'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Role object if (is_null($mixValue->RoleId)) { throw new QCallerException('Unable to set an unsaved Role for this RoleEntityQtypeBuiltInAuthorization'); } // Update Local Member Variables $this->objRole = $mixValue; $this->intRoleId = $mixValue->RoleId; // Return $mixValue return $mixValue; } break; case 'Authorization': // Sets the value for the Authorization object referenced by intAuthorizationId (Not Null) // @param Authorization $mixValue // @return Authorization if (is_null($mixValue)) { $this->intAuthorizationId = null; $this->objAuthorization = null; return null; } else { // Make sure $mixValue actually is a Authorization object try { $mixValue = QType::Cast($mixValue, 'Authorization'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Authorization object if (is_null($mixValue->AuthorizationId)) { throw new QCallerException('Unable to set an unsaved Authorization for this RoleEntityQtypeBuiltInAuthorization'); } // Update Local Member Variables $this->objAuthorization = $mixValue; $this->intAuthorizationId = $mixValue->AuthorizationId; // Return $mixValue return $mixValue; } break; case 'CreatedByObject': // Sets the value for the UserAccount object referenced by intCreatedBy // @param UserAccount $mixValue // @return UserAccount if (is_null($mixValue)) { $this->intCreatedBy = null; $this->objCreatedByObject = null; return null; } else { // Make sure $mixValue actually is a UserAccount object try { $mixValue = QType::Cast($mixValue, 'UserAccount'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED UserAccount object if (is_null($mixValue->UserAccountId)) { throw new QCallerException('Unable to set an unsaved CreatedByObject for this RoleEntityQtypeBuiltInAuthorization'); } // Update Local Member Variables $this->objCreatedByObject = $mixValue; $this->intCreatedBy = $mixValue->UserAccountId; // Return $mixValue return $mixValue; } break; case 'ModifiedByObject': // Sets the value for the UserAccount object referenced by intModifiedBy // @param UserAccount $mixValue // @return UserAccount if (is_null($mixValue)) { $this->intModifiedBy = null; $this->objModifiedByObject = null; return null; } else { // Make sure $mixValue actually is a UserAccount object try { $mixValue = QType::Cast($mixValue, 'UserAccount'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED UserAccount object if (is_null($mixValue->UserAccountId)) { throw new QCallerException('Unable to set an unsaved ModifiedByObject for this RoleEntityQtypeBuiltInAuthorization'); } // Update Local Member Variables $this->objModifiedByObject = $mixValue; $this->intModifiedBy = $mixValue->UserAccountId; // Return $mixValue return $mixValue; } break; default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'AssetId': // Sets the value for intAssetId (PK) // @param integer $mixValue // @return integer try { $this->objAsset = null; return $this->intAssetId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'Asset': // Sets the value for the Asset object referenced by intAssetId (PK) // @param Asset $mixValue // @return Asset if (is_null($mixValue)) { $this->intAssetId = null; $this->objAsset = null; return null; } else { // Make sure $mixValue actually is a Asset object try { $mixValue = QType::Cast($mixValue, 'Asset'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Asset object if (is_null($mixValue->AssetId)) { throw new QCallerException('Unable to set an unsaved Asset for this AssetCustomFieldHelper'); } // Update Local Member Variables $this->objAsset = $mixValue; $this->intAssetId = $mixValue->AssetId; // Return $mixValue return $mixValue; } break; default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { // Controls that point to Person fields case 'IdControl': return $this->lblId = QType::Cast($mixValue, 'QControl'); case 'PersonTypeIdControl': return $this->lstPersonType = QType::Cast($mixValue, 'QControl'); case 'UsernameControl': return $this->txtUsername = QType::Cast($mixValue, 'QControl'); case 'PasswordControl': return $this->txtPassword = QType::Cast($mixValue, 'QControl'); case 'FirstNameControl': return $this->txtFirstName = QType::Cast($mixValue, 'QControl'); case 'LastNameControl': return $this->txtLastName = QType::Cast($mixValue, 'QControl'); case 'EmailControl': return $this->txtEmail = QType::Cast($mixValue, 'QControl'); case 'DisplayNameControl': return $this->txtDisplayName = QType::Cast($mixValue, 'QControl'); case 'PasswordResetFlagControl': return $this->chkPasswordResetFlag = QType::Cast($mixValue, 'QControl'); case 'DisplayRealNameFlagControl': return $this->chkDisplayRealNameFlag = QType::Cast($mixValue, 'QControl'); case 'DisplayEmailFlagControl': return $this->chkDisplayEmailFlag = QType::Cast($mixValue, 'QControl'); case 'OptInFlagControl': return $this->chkOptInFlag = QType::Cast($mixValue, 'QControl'); case 'DonatedFlagControl': return $this->chkDonatedFlag = QType::Cast($mixValue, 'QControl'); case 'LocationControl': return $this->txtLocation = QType::Cast($mixValue, 'QControl'); case 'CountryIdControl': return $this->lstCountry = QType::Cast($mixValue, 'QControl'); case 'UrlControl': return $this->txtUrl = QType::Cast($mixValue, 'QControl'); case 'TimezoneIdControl': return $this->lstTimezone = QType::Cast($mixValue, 'QControl'); case 'RegistrationDateControl': return $this->calRegistrationDate = QType::Cast($mixValue, 'QControl'); case 'TopicAsEmailControl': return $this->lstTopicsAsEmail = QType::Cast($mixValue, 'QControl'); case 'TopicAsReadOnceControl': return $this->lstTopicsAsReadOnce = QType::Cast($mixValue, 'QControl'); case 'TopicAsReadControl': return $this->lstTopicsAsRead = QType::Cast($mixValue, 'QControl'); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { // Controls that point to QueryNode fields case 'IdControl': return $this->lblId = QType::Cast($mixValue, 'QControl'); case 'NameControl': return $this->txtName = QType::Cast($mixValue, 'QControl'); case 'QueryNodeTypeIdControl': return $this->lstQueryNodeType = QType::Cast($mixValue, 'QControl'); case 'QcodoQueryNodeControl': return $this->txtQcodoQueryNode = QType::Cast($mixValue, 'QControl'); case 'QueryDataTypeIdControl': return $this->lstQueryDataType = QType::Cast($mixValue, 'QControl'); case 'NodeDetailControl': return $this->txtNodeDetail = QType::Cast($mixValue, 'QControl'); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { // Controls that point to AttributeOption fields case 'IdControl': return $this->lblId = QType::Cast($mixValue, 'QControl'); case 'AttributeIdControl': return $this->lstAttribute = QType::Cast($mixValue, 'QControl'); case 'NameControl': return $this->txtName = QType::Cast($mixValue, 'QControl'); case 'AttributeValueAsMultipleControl': return $this->lstAttributeValuesAsMultiple = QType::Cast($mixValue, 'QControl'); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'SignupEntryId': // Sets the value for intSignupEntryId (Not Null) // @param integer $mixValue // @return integer try { $this->objSignupEntry = null; return $this->intSignupEntryId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'SignupPaymentTypeId': // Sets the value for intSignupPaymentTypeId (Not Null) // @param integer $mixValue // @return integer try { return $this->intSignupPaymentTypeId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'TransactionDate': // Sets the value for dttTransactionDate // @param QDateTime $mixValue // @return QDateTime try { return $this->dttTransactionDate = QType::Cast($mixValue, QType::DateTime); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'TransactionDescription': // Sets the value for strTransactionDescription // @param string $mixValue // @return string try { return $this->strTransactionDescription = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Amount': // Sets the value for fltAmount // @param double $mixValue // @return double try { return $this->fltAmount = QType::Cast($mixValue, QType::Float); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'FundingAccount': // Sets the value for strFundingAccount // @param string $mixValue // @return string try { return $this->strFundingAccount = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'DonationStewardshipFundId': // Sets the value for intDonationStewardshipFundId // @param integer $mixValue // @return integer try { $this->objDonationStewardshipFund = null; return $this->intDonationStewardshipFundId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'AmountDonation': // Sets the value for fltAmountDonation // @param double $mixValue // @return double try { return $this->fltAmountDonation = QType::Cast($mixValue, QType::Float); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'AmountNonDonation': // Sets the value for fltAmountNonDonation // @param double $mixValue // @return double try { return $this->fltAmountNonDonation = QType::Cast($mixValue, QType::Float); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'CreditCardPaymentId': // Sets the value for intCreditCardPaymentId (Unique) // @param integer $mixValue // @return integer try { $this->objCreditCardPayment = null; return $this->intCreditCardPaymentId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'SignupEntry': // Sets the value for the SignupEntry object referenced by intSignupEntryId (Not Null) // @param SignupEntry $mixValue // @return SignupEntry if (is_null($mixValue)) { $this->intSignupEntryId = null; $this->objSignupEntry = null; return null; } else { // Make sure $mixValue actually is a SignupEntry object try { $mixValue = QType::Cast($mixValue, 'SignupEntry'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED SignupEntry object if (is_null($mixValue->Id)) { throw new QCallerException('Unable to set an unsaved SignupEntry for this SignupPayment'); } // Update Local Member Variables $this->objSignupEntry = $mixValue; $this->intSignupEntryId = $mixValue->Id; // Return $mixValue return $mixValue; } break; case 'DonationStewardshipFund': // Sets the value for the StewardshipFund object referenced by intDonationStewardshipFundId // @param StewardshipFund $mixValue // @return StewardshipFund if (is_null($mixValue)) { $this->intDonationStewardshipFundId = null; $this->objDonationStewardshipFund = null; return null; } else { // Make sure $mixValue actually is a StewardshipFund object try { $mixValue = QType::Cast($mixValue, 'StewardshipFund'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED StewardshipFund object if (is_null($mixValue->Id)) { throw new QCallerException('Unable to set an unsaved DonationStewardshipFund for this SignupPayment'); } // Update Local Member Variables $this->objDonationStewardshipFund = $mixValue; $this->intDonationStewardshipFundId = $mixValue->Id; // Return $mixValue return $mixValue; } break; case 'CreditCardPayment': // Sets the value for the CreditCardPayment object referenced by intCreditCardPaymentId (Unique) // @param CreditCardPayment $mixValue // @return CreditCardPayment if (is_null($mixValue)) { $this->intCreditCardPaymentId = null; $this->objCreditCardPayment = null; return null; } else { // Make sure $mixValue actually is a CreditCardPayment object try { $mixValue = QType::Cast($mixValue, 'CreditCardPayment'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED CreditCardPayment object if (is_null($mixValue->Id)) { throw new QCallerException('Unable to set an unsaved CreditCardPayment for this SignupPayment'); } // Update Local Member Variables $this->objCreditCardPayment = $mixValue; $this->intCreditCardPaymentId = $mixValue->Id; // Return $mixValue return $mixValue; } break; default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __get($strName) { switch ($strName) { case 'EscapeIdentifierBegin': return $this->strEscapeIdentifierBegin; case 'EscapeIdentifierEnd': return $this->strEscapeIdentifierEnd; case 'Database': return $this->objDatabase; case 'RootTableName': return $this->strRootTableName; case 'ColumnAliasArray': return $this->strColumnAliasArray; case 'ExpandAsArrayNodes': if (count($this->strExpandAsArrayNodes)) { return $this->strExpandAsArrayNodes; } else { return null; } default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string strName Name of the property to set * @param string mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { try { switch ($strName) { case 'Name': return $this->strName = QType::Cast($mixValue, QType::String); case 'ClassName': return $this->strClassName = QType::Cast($mixValue, QType::String); case 'NameArray': return $this->strNameArray = QType::Cast($mixValue, QType::ArrayType); case 'TokenArray': return $this->strTokenArray = QType::Cast($mixValue, QType::ArrayType); case 'ExtraPropertyArray': return $this->arrExtraPropertyArray = QType::Cast($mixValue, QType::ArrayType); case 'ExtraFieldNamesArray': return $this->strExtraFieldNamesArray = QType::Cast($mixValue, QType::ArrayType); default: return parent::__set($strName, $mixValue); } } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'ShortDescription': /** * Sets the value for strCourierOther * @param string $mixValue * @return string */ try { return $this->strShortDescription = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Code': /** * Sets the value for strCourierOther * @param string $mixValue * @return string */ try { return $this->strCode = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Quantity': /** * Sets the value for strCourierOther * @param string $mixValue * @return string */ try { return $this->strQuantity = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'LibraryName': /** * Sets the value for strLibraryName * @param string $mixValue * @return string */ try { return $this->strLibraryName = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'SummaryOfLibrary': /** * Sets the value for strSummaryOfLibrary * @param string $mixValue * @return string */ try { return $this->strSummaryOfLibrary = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Creator': /** * Sets the value for intCreator * @param integer $mixValue * @return integer */ try { return $this->intCreator = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Set" * This will set the property $strName to be $mixValue * * @param string $strName Name of the property to set * @param string $mixValue New value of the property * @return mixed */ public function __set($strName, $mixValue) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'LinkedMarriageId': // Sets the value for intLinkedMarriageId (Unique) // @param integer $mixValue // @return integer try { $this->objLinkedMarriage = null; return $this->intLinkedMarriageId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'PersonId': // Sets the value for intPersonId (Not Null) // @param integer $mixValue // @return integer try { $this->objPerson = null; return $this->intPersonId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'MarriedToPersonId': // Sets the value for intMarriedToPersonId // @param integer $mixValue // @return integer try { $this->objMarriedToPerson = null; return $this->intMarriedToPersonId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'MarriageStatusTypeId': // Sets the value for intMarriageStatusTypeId (Not Null) // @param integer $mixValue // @return integer try { return $this->intMarriageStatusTypeId = QType::Cast($mixValue, QType::Integer); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'DateStart': // Sets the value for dttDateStart // @param QDateTime $mixValue // @return QDateTime try { return $this->dttDateStart = QType::Cast($mixValue, QType::DateTime); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'DateEnd': // Sets the value for dttDateEnd // @param QDateTime $mixValue // @return QDateTime try { return $this->dttDateEnd = QType::Cast($mixValue, QType::DateTime); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'LinkedMarriage': // Sets the value for the Marriage object referenced by intLinkedMarriageId (Unique) // @param Marriage $mixValue // @return Marriage if (is_null($mixValue)) { $this->intLinkedMarriageId = null; $this->objLinkedMarriage = null; return null; } else { // Make sure $mixValue actually is a Marriage object try { $mixValue = QType::Cast($mixValue, 'Marriage'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Marriage object if (is_null($mixValue->Id)) { throw new QCallerException('Unable to set an unsaved LinkedMarriage for this Marriage'); } // Update Local Member Variables $this->objLinkedMarriage = $mixValue; $this->intLinkedMarriageId = $mixValue->Id; // Return $mixValue return $mixValue; } break; case 'Person': // Sets the value for the Person object referenced by intPersonId (Not Null) // @param Person $mixValue // @return Person if (is_null($mixValue)) { $this->intPersonId = null; $this->objPerson = null; return null; } else { // Make sure $mixValue actually is a Person object try { $mixValue = QType::Cast($mixValue, 'Person'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Person object if (is_null($mixValue->Id)) { throw new QCallerException('Unable to set an unsaved Person for this Marriage'); } // Update Local Member Variables $this->objPerson = $mixValue; $this->intPersonId = $mixValue->Id; // Return $mixValue return $mixValue; } break; case 'MarriedToPerson': // Sets the value for the Person object referenced by intMarriedToPersonId // @param Person $mixValue // @return Person if (is_null($mixValue)) { $this->intMarriedToPersonId = null; $this->objMarriedToPerson = null; return null; } else { // Make sure $mixValue actually is a Person object try { $mixValue = QType::Cast($mixValue, 'Person'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Make sure $mixValue is a SAVED Person object if (is_null($mixValue->Id)) { throw new QCallerException('Unable to set an unsaved MarriedToPerson for this Marriage'); } // Update Local Member Variables $this->objMarriedToPerson = $mixValue; $this->intMarriedToPersonId = $mixValue->Id; // Return $mixValue return $mixValue; } break; case 'MarriageAsLinked': // Sets the value for the Marriage object referenced by objMarriageAsLinked (Unique) // @param Marriage $mixValue // @return Marriage if (is_null($mixValue)) { $this->objMarriageAsLinked = null; // Make sure we update the adjoined Marriage object the next time we call Save() $this->blnDirtyMarriageAsLinked = true; return null; } else { // Make sure $mixValue actually is a Marriage object try { $mixValue = QType::Cast($mixValue, 'Marriage'); } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // Are we setting objMarriageAsLinked to a DIFFERENT $mixValue? if (!$this->MarriageAsLinked || $this->MarriageAsLinked->Id != $mixValue->Id) { // Yes -- therefore, set the "Dirty" flag to true // to make sure we update the adjoined Marriage object the next time we call Save() $this->blnDirtyMarriageAsLinked = true; // Update Local Member Variable $this->objMarriageAsLinked = $mixValue; } else { // Nope -- therefore, make no changes } // Return $mixValue return $mixValue; } break; default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }