/** * 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 'IssuePriorityTypeId': // Gets the value for intIssuePriorityTypeId (Not Null) // @return integer return $this->intIssuePriorityTypeId; case 'IssueStatusTypeId': // Gets the value for intIssueStatusTypeId (Not Null) // @return integer return $this->intIssueStatusTypeId; case 'IssueResolutionTypeId': // Gets the value for intIssueResolutionTypeId // @return integer return $this->intIssueResolutionTypeId; case 'Title': // Gets the value for strTitle // @return string return $this->strTitle; case 'ExampleCode': // Gets the value for strExampleCode // @return string return $this->strExampleCode; case 'ExampleTemplate': // Gets the value for strExampleTemplate // @return string return $this->strExampleTemplate; case 'ExampleData': // Gets the value for strExampleData // @return string return $this->strExampleData; case 'ExpectedOutput': // Gets the value for strExpectedOutput // @return string return $this->strExpectedOutput; case 'ActualOutput': // Gets the value for strActualOutput // @return string return $this->strActualOutput; case 'PostedByPersonId': // Gets the value for intPostedByPersonId (Not Null) // @return integer return $this->intPostedByPersonId; case 'AssignedToPersonId': // Gets the value for intAssignedToPersonId // @return integer return $this->intAssignedToPersonId; case 'PostDate': // Gets the value for dttPostDate (Not Null) // @return QDateTime return $this->dttPostDate; case 'AssignedDate': // Gets the value for dttAssignedDate // @return QDateTime return $this->dttAssignedDate; case 'DueDate': // Gets the value for dttDueDate // @return QDateTime return $this->dttDueDate; case 'VoteCount': // Gets the value for intVoteCount // @return integer return $this->intVoteCount; /////////////////// // Member Objects /////////////////// /////////////////// // Member Objects /////////////////// case 'PostedByPerson': // Gets the value for the Person object referenced by intPostedByPersonId (Not Null) // @return Person try { if (!$this->objPostedByPerson && !is_null($this->intPostedByPersonId)) { $this->objPostedByPerson = Person::Load($this->intPostedByPersonId); } return $this->objPostedByPerson; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'AssignedToPerson': // Gets the value for the Person object referenced by intAssignedToPersonId // @return Person try { if (!$this->objAssignedToPerson && !is_null($this->intAssignedToPersonId)) { $this->objAssignedToPerson = Person::Load($this->intAssignedToPersonId); } return $this->objAssignedToPerson; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'TopicLink': // Gets the value for the TopicLink object that uniquely references this Issue // by objTopicLink (Unique) // @return TopicLink try { if ($this->objTopicLink === false) { // We've attempted early binding -- and the reverse reference object does not exist return null; } if (!$this->objTopicLink) { $this->objTopicLink = TopicLink::LoadByIssueId($this->intId); } return $this->objTopicLink; } 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 '_IssueFieldValue': // Gets the value for the private _objIssueFieldValue (Read-Only) // if set due to an expansion on the issue_field_value.issue_id reverse relationship // @return IssueFieldValue return $this->_objIssueFieldValue; case '_IssueFieldValueArray': // Gets the value for the private _objIssueFieldValueArray (Read-Only) // if set due to an ExpandAsArray on the issue_field_value.issue_id reverse relationship // @return IssueFieldValue[] return (array) $this->_objIssueFieldValueArray; case '_IssueVote': // Gets the value for the private _objIssueVote (Read-Only) // if set due to an expansion on the issue_vote.issue_id reverse relationship // @return IssueVote return $this->_objIssueVote; case '_IssueVoteArray': // Gets the value for the private _objIssueVoteArray (Read-Only) // if set due to an ExpandAsArray on the issue_vote.issue_id reverse relationship // @return IssueVote[] return (array) $this->_objIssueVoteArray; case '__Restored': return $this->__blnRestored; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }