public function __set($strName, $mixValue) { switch ($strName) { case "Expanded": $this->blnExpanded = $mixValue; if (!$this->blnDataBound) { $this->blnDataBound = true; // Get the class in question $intClassId = $this->strItemId; $objClass = QcodoClass::Load($intClassId); // Bind Children foreach ($objClass->Operations as $objOperation) { new QTreeNavItem($objOperation->DisplayName, $intClassId . 'm' . $objOperation->Id, false, $this->objTreeNav->GetItem($intClassId . 'm'), $intClassId . 'm' . $objOperation->Id); } foreach ($objClass->GetPropertiesForVariableGroupId(null) as $objProperty) { new QTreeNavItem($objProperty->DisplayName, $intClassId . 'p' . $objProperty->Id, false, $this->objTreeNav->GetItem($intClassId . 'p'), $intClassId . 'p' . $objProperty->Id); } foreach ($objClass->GetVariablesForVariableGroupId(null) as $objClassVariable) { new QTreeNavItem($objClassVariable->DisplayName, $intClassId . 'v' . $objClassVariable->Id, false, $this->objTreeNav->GetItem($intClassId . 'v'), $intClassId . 'v' . $objClassVariable->Id); } foreach ($objClass->GetQcodoConstantArray(QQ::Clause(QQ::OrderBy(QQN::QcodoConstant()->Variable->Name))) as $objConstant) { new QTreeNavItem($objConstant->Variable->Name, $intClassId . 'c' . $objConstant->Id, false, $this->objTreeNav->GetItem($intClassId . 'c'), $intClassId . 'c' . $objConstant->Id); } } break; default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
protected function Form_Create() { if (!QApplication::$Login) { QApplication::Redirect('/'); } $this->objQcodoClass = QcodoClass::Load(QApplication::PathInfo(0)); if (!$this->objQcodoClass) { throw new Exception('Invalid QcodoClass Id: ' . QApplication::PathInfo(0)); } $this->lblName = new QLabel($this); $this->lblName->Text = $this->objQcodoClass->Name; $this->lstClassGroup = new QListBox($this); $this->lstClassGroup->Name = 'Class Group/Classification'; foreach (ClassGroup::LoadAll(QQ::Clause(QQ::OrderBy(QQN::ClassGroup()->OrderNumber))) as $objClassGroup) { $this->lstClassGroup->AddItem($objClassGroup->Name, $objClassGroup->Id, $objClassGroup->Id == $this->objQcodoClass->ClassGroupId); } $this->chkEnumerationFlag = new QCheckBox($this); $this->chkEnumerationFlag->Checked = $this->objQcodoClass->EnumerationFlag; $this->chkEnumerationFlag->Name = 'Enumeration Class Flag'; $this->txtShortDescription = new QTextBox($this); $this->txtShortDescription->Name = QApplication::Translate('Short Description'); $this->txtShortDescription->Text = $this->objQcodoClass->ShortDescription; $this->txtShortDescription->TextMode = QTextMode::MultiLine; $this->txtExtendedDescription = new QWriteBox($this); $this->txtExtendedDescription->Name = QApplication::Translate('Extended Description'); $this->txtExtendedDescription->Text = $this->objQcodoClass->ExtendedDescription; $this->btnSave = new QButton($this); $this->btnSave->Text = 'Save'; $this->btnSave->AddAction(new QClickEvent(), new QServerAction('btnSave_Click')); $this->btnSave->CausesValidation = true; $this->btnCancel = new QButton($this); $this->btnCancel->Text = 'Cancel'; $this->btnCancel->AddAction(new QClickEvent(), new QServerAction('btnCancel_Click')); $this->btnCancel->CausesValidation = false; }
protected function SetupQcodoClass() { // Lookup Object PK information from Query String (if applicable) // Set mode to Edit or New depending on what's found $intId = QApplication::QueryString('intId'); if ($intId) { $this->objQcodoClass = QcodoClass::Load($intId); if (!$this->objQcodoClass) { throw new Exception('Could not find a QcodoClass object with PK arguments: ' . $intId); } $this->strTitleVerb = QApplication::Translate('Edit'); $this->blnEditMode = true; } else { $this->objQcodoClass = new QcodoClass(); $this->strTitleVerb = QApplication::Translate('Create'); $this->blnEditMode = false; } }
/** * Override method to perform a property "Get" * This will get the value of $strName * * @param string $strName Name of the property to get * @return mixed */ public function __get($strName) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'Id': /** * Gets the value for intId (Read-Only PK) * @return integer */ return $this->intId; case 'QcodoClassId': /** * Gets the value for intQcodoClassId (Not Null) * @return integer */ return $this->intQcodoClassId; case 'VariableGroupId': /** * Gets the value for intVariableGroupId * @return integer */ return $this->intVariableGroupId; case 'ProtectionTypeId': /** * Gets the value for intProtectionTypeId (Not Null) * @return integer */ return $this->intProtectionTypeId; case 'VariableId': /** * Gets the value for intVariableId (Unique) * @return integer */ return $this->intVariableId; case 'ReadOnlyFlag': /** * Gets the value for blnReadOnlyFlag * @return boolean */ return $this->blnReadOnlyFlag; case 'StaticFlag': /** * Gets the value for blnStaticFlag * @return boolean */ return $this->blnStaticFlag; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'QcodoClass': /** * Gets the value for the QcodoClass object referenced by intQcodoClassId (Not Null) * @return QcodoClass */ try { if (!$this->objQcodoClass && !is_null($this->intQcodoClassId)) { $this->objQcodoClass = QcodoClass::Load($this->intQcodoClassId); } return $this->objQcodoClass; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'VariableGroup': /** * Gets the value for the VariableGroup object referenced by intVariableGroupId * @return VariableGroup */ try { if (!$this->objVariableGroup && !is_null($this->intVariableGroupId)) { $this->objVariableGroup = VariableGroup::Load($this->intVariableGroupId); } return $this->objVariableGroup; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Variable': /** * Gets the value for the Variable object referenced by intVariableId (Unique) * @return Variable */ try { if (!$this->objVariable && !is_null($this->intVariableId)) { $this->objVariable = Variable::Load($this->intVariableId); } return $this->objVariable; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// case '_ClassProperty': /** * Gets the value for the private _objClassProperty (Read-Only) * if set due to an expansion on the class_property.class_variable_id reverse relationship * @return ClassProperty */ return $this->_objClassProperty; case '_ClassPropertyArray': /** * Gets the value for the private _objClassPropertyArray (Read-Only) * if set due to an ExpandAsArray on the class_property.class_variable_id reverse relationship * @return ClassProperty[] */ return (array) $this->_objClassPropertyArray; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function btnEdit_Click($strFormId, $strControlId, $strParameter) { $strParameterArray = explode(',', $strParameter); $objQcodoClass = QcodoClass::Load($strParameterArray[0]); $objEditPanel = new QcodoClassEditPanel($this, $this->strCloseEditPanelMethod, $objQcodoClass); $strMethodName = $this->strSetEditPanelMethod; $this->objForm->{$strMethodName}($objEditPanel); }
protected function SelectItem($strItemId) { $objItem = $this->tnvNavigation->GetItem($strItemId); /* if (!$objItem) { $intQcodoClassId = (integer) $strItemId; $objClass = QcodoClass::Load($intQcodoClassId); $this->tnvNavigation->GetItem('g' . $objClass->ClassGroupId)->Expanded = true; $this->tnvNavigation->GetItem($objClass->Id)->Expanded = true; $this->tnvNavigation->GetItem(substr($strItemId, 0, strlen($objClass->Id) + 1))->Expanded = true; $objItem = $this->tnvNavigation->GetItem($strItemId); }*/ $this->tnvNavigation->SelectedItem = $objItem; if ($this->tnvNavigation->SelectedItem) { $objQcodoClass = QcodoClass::Load($strItemId); if (!$objQcodoClass->FileId) { QApplication::DisplayAlert('Please refer to the PHP Website (www.php.net) for documentation on the "' . $objQcodoClass->Name . '" class.'); return; } $this->pnlDocumentation->RemoveChildControls(true); $strItemId = $this->tnvNavigation->SelectedItem->Value; if ($intPosition = strpos($strItemId, 'm')) { $intOperationId = substr($strItemId, $intPosition + 1); if ($intOperationId) { new MethodPanel(Operation::Load($intOperationId), $this->pnlDocumentation); } else { new MethodPanel(QcodoClass::Load($strItemId), $this->pnlDocumentation); } } else { if ($intPosition = strpos($strItemId, 'p')) { new PropertyPanel(QcodoClass::Load($strItemId), $this->pnlDocumentation); } else { if ($intPosition = strpos($strItemId, 'v')) { new VariablePanel(QcodoClass::Load($strItemId), $this->pnlDocumentation); } else { if ($intPosition = strpos($strItemId, 'c')) { new ConstantPanel(QcodoClass::Load($strItemId), $this->pnlDocumentation); } else { new ClassPanel(QcodoClass::Load($strItemId), $this->pnlDocumentation); } } } } } }
/** * Override method to perform a property "Get" * This will get the value of $strName * * @param string $strName Name of the property to get * @return mixed */ public function __get($strName) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'Id': /** * Gets the value for intId (Read-Only PK) * @return integer */ return $this->intId; case 'Name': /** * Gets the value for strName * @return string */ return $this->strName; case 'VariableTypeId': /** * Gets the value for intVariableTypeId (Not Null) * @return integer */ return $this->intVariableTypeId; case 'ObjectTypeId': /** * Gets the value for intObjectTypeId * @return integer */ return $this->intObjectTypeId; case 'ArrayFlag': /** * Gets the value for blnArrayFlag * @return boolean */ return $this->blnArrayFlag; case 'DefaultValue': /** * Gets the value for strDefaultValue * @return string */ return $this->strDefaultValue; case 'FirstVersion': /** * Gets the value for strFirstVersion * @return string */ return $this->strFirstVersion; case 'LastVersion': /** * Gets the value for strLastVersion * @return string */ return $this->strLastVersion; case 'ShortDescription': /** * Gets the value for strShortDescription * @return string */ return $this->strShortDescription; case 'ExtendedDescription': /** * Gets the value for strExtendedDescription * @return string */ return $this->strExtendedDescription; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'ObjectType': /** * Gets the value for the QcodoClass object referenced by intObjectTypeId * @return QcodoClass */ try { if (!$this->objObjectType && !is_null($this->intObjectTypeId)) { $this->objObjectType = QcodoClass::Load($this->intObjectTypeId); } return $this->objObjectType; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ClassProperty': /** * Gets the value for the ClassProperty object that uniquely references this Variable * by objClassProperty (Unique) * @return ClassProperty */ try { if ($this->objClassProperty === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objClassProperty) { $this->objClassProperty = ClassProperty::LoadByVariableId($this->intId); } return $this->objClassProperty; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ClassVariable': /** * Gets the value for the ClassVariable object that uniquely references this Variable * by objClassVariable (Unique) * @return ClassVariable */ try { if ($this->objClassVariable === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objClassVariable) { $this->objClassVariable = ClassVariable::LoadByVariableId($this->intId); } return $this->objClassVariable; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Parameter': /** * Gets the value for the Parameter object that uniquely references this Variable * by objParameter (Unique) * @return Parameter */ try { if ($this->objParameter === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objParameter) { $this->objParameter = Parameter::LoadByVariableId($this->intId); } return $this->objParameter; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'QcodoConstant': /** * Gets the value for the QcodoConstant object that uniquely references this Variable * by objQcodoConstant (Unique) * @return QcodoConstant */ try { if ($this->objQcodoConstant === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objQcodoConstant) { $this->objQcodoConstant = QcodoConstant::LoadByVariableId($this->intId); } return $this->objQcodoConstant; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// case '_OperationAsReturn': /** * Gets the value for the private _objOperationAsReturn (Read-Only) * if set due to an expansion on the operation.return_variable_id reverse relationship * @return Operation */ return $this->_objOperationAsReturn; case '_OperationAsReturnArray': /** * Gets the value for the private _objOperationAsReturnArray (Read-Only) * if set due to an ExpandAsArray on the operation.return_variable_id reverse relationship * @return Operation[] */ return (array) $this->_objOperationAsReturnArray; case '_OperationAsAdditional': /** * Gets the value for the private _objOperationAsAdditional (Read-Only) * if set due to an expansion on the operation.additional_variable_id reverse relationship * @return Operation */ return $this->_objOperationAsAdditional; case '_OperationAsAdditionalArray': /** * Gets the value for the private _objOperationAsAdditionalArray (Read-Only) * if set due to an ExpandAsArray on the operation.additional_variable_id reverse relationship * @return Operation[] */ return (array) $this->_objOperationAsAdditionalArray; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Get" * This will get the value of $strName * * @param string $strName Name of the property to get * @return mixed */ public function __get($strName) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'Id': /** * Gets the value for intId (Read-Only PK) * @return integer */ return $this->intId; case 'QcodoClassId': /** * Gets the value for intQcodoClassId * @return integer */ return $this->intQcodoClassId; case 'QcodoInterfaceId': /** * Gets the value for intQcodoInterfaceId * @return integer */ return $this->intQcodoInterfaceId; case 'Name': /** * Gets the value for strName * @return string */ return $this->strName; case 'ProtectionTypeId': /** * Gets the value for intProtectionTypeId * @return integer */ return $this->intProtectionTypeId; case 'StaticFlag': /** * Gets the value for blnStaticFlag * @return boolean */ return $this->blnStaticFlag; case 'AbstractFlag': /** * Gets the value for blnAbstractFlag * @return boolean */ return $this->blnAbstractFlag; case 'FinalFlag': /** * Gets the value for blnFinalFlag * @return boolean */ return $this->blnFinalFlag; case 'ReturnVariableId': /** * Gets the value for intReturnVariableId * @return integer */ return $this->intReturnVariableId; case 'AdditionalVariableId': /** * Gets the value for intAdditionalVariableId * @return integer */ return $this->intAdditionalVariableId; case 'FirstVersion': /** * Gets the value for strFirstVersion * @return string */ return $this->strFirstVersion; case 'LastVersion': /** * Gets the value for strLastVersion * @return string */ return $this->strLastVersion; case 'ShortDescription': /** * Gets the value for strShortDescription * @return string */ return $this->strShortDescription; case 'ExtendedDescription': /** * Gets the value for strExtendedDescription * @return string */ return $this->strExtendedDescription; case 'FileId': /** * Gets the value for intFileId * @return integer */ return $this->intFileId; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'QcodoClass': /** * Gets the value for the QcodoClass object referenced by intQcodoClassId * @return QcodoClass */ try { if (!$this->objQcodoClass && !is_null($this->intQcodoClassId)) { $this->objQcodoClass = QcodoClass::Load($this->intQcodoClassId); } return $this->objQcodoClass; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'QcodoInterface': /** * Gets the value for the QcodoInterface object referenced by intQcodoInterfaceId * @return QcodoInterface */ try { if (!$this->objQcodoInterface && !is_null($this->intQcodoInterfaceId)) { $this->objQcodoInterface = QcodoInterface::Load($this->intQcodoInterfaceId); } return $this->objQcodoInterface; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ReturnVariable': /** * Gets the value for the Variable object referenced by intReturnVariableId * @return Variable */ try { if (!$this->objReturnVariable && !is_null($this->intReturnVariableId)) { $this->objReturnVariable = Variable::Load($this->intReturnVariableId); } return $this->objReturnVariable; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'AdditionalVariable': /** * Gets the value for the Variable object referenced by intAdditionalVariableId * @return Variable */ try { if (!$this->objAdditionalVariable && !is_null($this->intAdditionalVariableId)) { $this->objAdditionalVariable = Variable::Load($this->intAdditionalVariableId); } return $this->objAdditionalVariable; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'File': /** * Gets the value for the File object referenced by intFileId * @return File */ try { if (!$this->objFile && !is_null($this->intFileId)) { $this->objFile = File::Load($this->intFileId); } return $this->objFile; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// case '_Parameter': /** * Gets the value for the private _objParameter (Read-Only) * if set due to an expansion on the parameter.operation_id reverse relationship * @return Parameter */ return $this->_objParameter; case '_ParameterArray': /** * Gets the value for the private _objParameterArray (Read-Only) * if set due to an ExpandAsArray on the parameter.operation_id reverse relationship * @return Parameter[] */ return (array) $this->_objParameterArray; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Get" * This will get the value of $strName * * @param string $strName Name of the property to get * @return mixed */ public function __get($strName) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'Id': /** * Gets the value for intId (Read-Only PK) * @return integer */ return $this->intId; case 'QcodoClassId': /** * Gets the value for intQcodoClassId (Not Null) * @return integer */ return $this->intQcodoClassId; case 'VariableGroupId': /** * Gets the value for intVariableGroupId * @return integer */ return $this->intVariableGroupId; case 'VariableId': /** * Gets the value for intVariableId (Unique) * @return integer */ return $this->intVariableId; case 'ClassVariableId': /** * Gets the value for intClassVariableId * @return integer */ return $this->intClassVariableId; case 'ReadOnlyFlag': /** * Gets the value for blnReadOnlyFlag * @return boolean */ return $this->blnReadOnlyFlag; case 'WriteOnlyFlag': /** * Gets the value for blnWriteOnlyFlag * @return boolean */ return $this->blnWriteOnlyFlag; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'QcodoClass': /** * Gets the value for the QcodoClass object referenced by intQcodoClassId (Not Null) * @return QcodoClass */ try { if (!$this->objQcodoClass && !is_null($this->intQcodoClassId)) { $this->objQcodoClass = QcodoClass::Load($this->intQcodoClassId); } return $this->objQcodoClass; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'VariableGroup': /** * Gets the value for the VariableGroup object referenced by intVariableGroupId * @return VariableGroup */ try { if (!$this->objVariableGroup && !is_null($this->intVariableGroupId)) { $this->objVariableGroup = VariableGroup::Load($this->intVariableGroupId); } return $this->objVariableGroup; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Variable': /** * Gets the value for the Variable object referenced by intVariableId (Unique) * @return Variable */ try { if (!$this->objVariable && !is_null($this->intVariableId)) { $this->objVariable = Variable::Load($this->intVariableId); } return $this->objVariable; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ClassVariable': /** * Gets the value for the ClassVariable object referenced by intClassVariableId * @return ClassVariable */ try { if (!$this->objClassVariable && !is_null($this->intClassVariableId)) { $this->objClassVariable = ClassVariable::Load($this->intClassVariableId); } return $this->objClassVariable; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * Override method to perform a property "Get" * This will get the value of $strName * * @param string $strName Name of the property to get * @return mixed */ public function __get($strName) { switch ($strName) { /////////////////// // Member Variables /////////////////// case 'Id': /** * Gets the value for intId (Read-Only PK) * @return integer */ return $this->intId; case 'ParentQcodoClassId': /** * Gets the value for intParentQcodoClassId * @return integer */ return $this->intParentQcodoClassId; case 'InterfaceId': /** * Gets the value for intInterfaceId * @return integer */ return $this->intInterfaceId; case 'ClassGroupId': /** * Gets the value for intClassGroupId * @return integer */ return $this->intClassGroupId; case 'Name': /** * Gets the value for strName (Unique) * @return string */ return $this->strName; case 'AbstractFlag': /** * Gets the value for blnAbstractFlag * @return boolean */ return $this->blnAbstractFlag; case 'EnumerationFlag': /** * Gets the value for blnEnumerationFlag * @return boolean */ return $this->blnEnumerationFlag; case 'FirstVersion': /** * Gets the value for strFirstVersion * @return string */ return $this->strFirstVersion; case 'LastVersion': /** * Gets the value for strLastVersion * @return string */ return $this->strLastVersion; case 'ShortDescription': /** * Gets the value for strShortDescription * @return string */ return $this->strShortDescription; case 'ExtendedDescription': /** * Gets the value for strExtendedDescription * @return string */ return $this->strExtendedDescription; case 'FileId': /** * Gets the value for intFileId * @return integer */ return $this->intFileId; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'ParentQcodoClass': /** * Gets the value for the QcodoClass object referenced by intParentQcodoClassId * @return QcodoClass */ try { if (!$this->objParentQcodoClass && !is_null($this->intParentQcodoClassId)) { $this->objParentQcodoClass = QcodoClass::Load($this->intParentQcodoClassId); } return $this->objParentQcodoClass; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Interface': /** * Gets the value for the QcodoInterface object referenced by intInterfaceId * @return QcodoInterface */ try { if (!$this->objInterface && !is_null($this->intInterfaceId)) { $this->objInterface = QcodoInterface::Load($this->intInterfaceId); } return $this->objInterface; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'ClassGroup': /** * Gets the value for the ClassGroup object referenced by intClassGroupId * @return ClassGroup */ try { if (!$this->objClassGroup && !is_null($this->intClassGroupId)) { $this->objClassGroup = ClassGroup::Load($this->intClassGroupId); } return $this->objClassGroup; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'File': /** * Gets the value for the File object referenced by intFileId * @return File */ try { if (!$this->objFile && !is_null($this->intFileId)) { $this->objFile = File::Load($this->intFileId); } return $this->objFile; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// //////////////////////////// // Virtual Object References (Many to Many and Reverse References) // (If restored via a "Many-to" expansion) //////////////////////////// case '_ClassProperty': /** * Gets the value for the private _objClassProperty (Read-Only) * if set due to an expansion on the class_property.qcodo_class_id reverse relationship * @return ClassProperty */ return $this->_objClassProperty; case '_ClassPropertyArray': /** * Gets the value for the private _objClassPropertyArray (Read-Only) * if set due to an ExpandAsArray on the class_property.qcodo_class_id reverse relationship * @return ClassProperty[] */ return (array) $this->_objClassPropertyArray; case '_ClassVariable': /** * Gets the value for the private _objClassVariable (Read-Only) * if set due to an expansion on the class_variable.qcodo_class_id reverse relationship * @return ClassVariable */ return $this->_objClassVariable; case '_ClassVariableArray': /** * Gets the value for the private _objClassVariableArray (Read-Only) * if set due to an ExpandAsArray on the class_variable.qcodo_class_id reverse relationship * @return ClassVariable[] */ return (array) $this->_objClassVariableArray; case '_Operation': /** * Gets the value for the private _objOperation (Read-Only) * if set due to an expansion on the operation.qcodo_class_id reverse relationship * @return Operation */ return $this->_objOperation; case '_OperationArray': /** * Gets the value for the private _objOperationArray (Read-Only) * if set due to an ExpandAsArray on the operation.qcodo_class_id reverse relationship * @return Operation[] */ return (array) $this->_objOperationArray; case '_ChildQcodoClass': /** * Gets the value for the private _objChildQcodoClass (Read-Only) * if set due to an expansion on the qcodo_class.parent_qcodo_class_id reverse relationship * @return QcodoClass */ return $this->_objChildQcodoClass; case '_ChildQcodoClassArray': /** * Gets the value for the private _objChildQcodoClassArray (Read-Only) * if set due to an ExpandAsArray on the qcodo_class.parent_qcodo_class_id reverse relationship * @return QcodoClass[] */ return (array) $this->_objChildQcodoClassArray; case '_QcodoConstant': /** * Gets the value for the private _objQcodoConstant (Read-Only) * if set due to an expansion on the qcodo_constant.qcodo_class_id reverse relationship * @return QcodoConstant */ return $this->_objQcodoConstant; case '_QcodoConstantArray': /** * Gets the value for the private _objQcodoConstantArray (Read-Only) * if set due to an ExpandAsArray on the qcodo_constant.qcodo_class_id reverse relationship * @return QcodoConstant[] */ return (array) $this->_objQcodoConstantArray; case '_VariableAsObjectType': /** * Gets the value for the private _objVariableAsObjectType (Read-Only) * if set due to an expansion on the variable.object_type_id reverse relationship * @return Variable */ return $this->_objVariableAsObjectType; case '_VariableAsObjectTypeArray': /** * Gets the value for the private _objVariableAsObjectTypeArray (Read-Only) * if set due to an ExpandAsArray on the variable.object_type_id reverse relationship * @return Variable[] */ return (array) $this->_objVariableAsObjectTypeArray; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }