Example #1
0
 /**
  * Reload this WpUsers from the database.
  * @return void
  */
 public function Reload()
 {
     // Make sure we are actually Restored from the database
     if (!$this->__blnRestored) {
         throw new QCallerException('Cannot call Reload() on a new, unsaved WpUsers object.');
     }
     $this->DeleteCache();
     // Reload the Object
     $objReloaded = WpUsers::Load($this->intId);
     // Update $this's local variables to match
     $this->strUserLogin = $objReloaded->strUserLogin;
     $this->strUserPass = $objReloaded->strUserPass;
     $this->strUserNicename = $objReloaded->strUserNicename;
     $this->strUserEmail = $objReloaded->strUserEmail;
     $this->strUserUrl = $objReloaded->strUserUrl;
     $this->dttUserRegistered = $objReloaded->dttUserRegistered;
     $this->strUserActivationKey = $objReloaded->strUserActivationKey;
     $this->intUserStatus = $objReloaded->intUserStatus;
     $this->strDisplayName = $objReloaded->strDisplayName;
 }
 /**
  * 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 'UmetaId':
             /**
              * Gets the value for intUmetaId (Read-Only PK)
              * @return integer
              */
             return $this->intUmetaId;
         case 'UserId':
             /**
              * Gets the value for intUserId (Not Null)
              * @return integer
              */
             return $this->intUserId;
         case 'MetaKey':
             /**
              * Gets the value for strMetaKey 
              * @return string
              */
             return $this->strMetaKey;
         case 'MetaValue':
             /**
              * Gets the value for strMetaValue 
              * @return string
              */
             return $this->strMetaValue;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'User':
             /**
              * Gets the value for the WpUsers object referenced by intUserId (Not Null)
              * @return WpUsers
              */
             try {
                 if (!$this->objUser && !is_null($this->intUserId)) {
                     $this->objUser = WpUsers::Load($this->intUserId);
                 }
                 return $this->objUser;
             } 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 '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Example #3
0
 /**
  * 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 'PostAuthor':
             /**
              * Gets the value for intPostAuthor (Not Null)
              * @return integer
              */
             return $this->intPostAuthor;
         case 'PostDate':
             /**
              * Gets the value for dttPostDate (Not Null)
              * @return QDateTime
              */
             return $this->dttPostDate;
         case 'PostDateGmt':
             /**
              * Gets the value for dttPostDateGmt (Not Null)
              * @return QDateTime
              */
             return $this->dttPostDateGmt;
         case 'PostContent':
             /**
              * Gets the value for strPostContent (Not Null)
              * @return string
              */
             return $this->strPostContent;
         case 'PostTitle':
             /**
              * Gets the value for strPostTitle (Not Null)
              * @return string
              */
             return $this->strPostTitle;
         case 'PostExcerpt':
             /**
              * Gets the value for strPostExcerpt (Not Null)
              * @return string
              */
             return $this->strPostExcerpt;
         case 'PostStatus':
             /**
              * Gets the value for strPostStatus (Not Null)
              * @return string
              */
             return $this->strPostStatus;
         case 'CommentStatus':
             /**
              * Gets the value for strCommentStatus (Not Null)
              * @return string
              */
             return $this->strCommentStatus;
         case 'PingStatus':
             /**
              * Gets the value for strPingStatus (Not Null)
              * @return string
              */
             return $this->strPingStatus;
         case 'PostPassword':
             /**
              * Gets the value for strPostPassword (Not Null)
              * @return string
              */
             return $this->strPostPassword;
         case 'PostName':
             /**
              * Gets the value for strPostName (Not Null)
              * @return string
              */
             return $this->strPostName;
         case 'ToPing':
             /**
              * Gets the value for strToPing (Not Null)
              * @return string
              */
             return $this->strToPing;
         case 'Pinged':
             /**
              * Gets the value for strPinged (Not Null)
              * @return string
              */
             return $this->strPinged;
         case 'PostModified':
             /**
              * Gets the value for dttPostModified (Not Null)
              * @return QDateTime
              */
             return $this->dttPostModified;
         case 'PostModifiedGmt':
             /**
              * Gets the value for dttPostModifiedGmt (Not Null)
              * @return QDateTime
              */
             return $this->dttPostModifiedGmt;
         case 'PostContentFiltered':
             /**
              * Gets the value for strPostContentFiltered (Not Null)
              * @return string
              */
             return $this->strPostContentFiltered;
         case 'PostParent':
             /**
              * Gets the value for intPostParent (Not Null)
              * @return integer
              */
             return $this->intPostParent;
         case 'Guid':
             /**
              * Gets the value for strGuid (Not Null)
              * @return string
              */
             return $this->strGuid;
         case 'MenuOrder':
             /**
              * Gets the value for intMenuOrder (Not Null)
              * @return integer
              */
             return $this->intMenuOrder;
         case 'PostType':
             /**
              * Gets the value for strPostType (Not Null)
              * @return string
              */
             return $this->strPostType;
         case 'PostMimeType':
             /**
              * Gets the value for strPostMimeType (Not Null)
              * @return string
              */
             return $this->strPostMimeType;
         case 'CommentCount':
             /**
              * Gets the value for intCommentCount (Not Null)
              * @return integer
              */
             return $this->intCommentCount;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'PostAuthorObject':
             /**
              * Gets the value for the WpUsers object referenced by intPostAuthor (Not Null)
              * @return WpUsers
              */
             try {
                 if (!$this->objPostAuthorObject && !is_null($this->intPostAuthor)) {
                     $this->objPostAuthorObject = WpUsers::Load($this->intPostAuthor);
                 }
                 return $this->objPostAuthorObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'PostParentObject':
             /**
              * Gets the value for the WpPosts object referenced by intPostParent (Not Null)
              * @return WpPosts
              */
             try {
                 if (!$this->objPostParentObject && !is_null($this->intPostParent)) {
                     $this->objPostParentObject = WpPosts::Load($this->intPostParent);
                 }
                 return $this->objPostParentObject;
             } 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 '_WpCommentsAsCommentPost':
             /**
              * Gets the value for the private _objWpCommentsAsCommentPost (Read-Only)
              * if set due to an expansion on the wp_comments.comment_post_id reverse relationship
              * @return WpComments
              */
             return $this->_objWpCommentsAsCommentPost;
         case '_WpCommentsAsCommentPostArray':
             /**
              * Gets the value for the private _objWpCommentsAsCommentPostArray (Read-Only)
              * if set due to an ExpandAsArray on the wp_comments.comment_post_id reverse relationship
              * @return WpComments[]
              */
             return $this->_objWpCommentsAsCommentPostArray;
         case '_WpPostmetaAsPost':
             /**
              * Gets the value for the private _objWpPostmetaAsPost (Read-Only)
              * if set due to an expansion on the wp_postmeta.post_id reverse relationship
              * @return WpPostmeta
              */
             return $this->_objWpPostmetaAsPost;
         case '_WpPostmetaAsPostArray':
             /**
              * Gets the value for the private _objWpPostmetaAsPostArray (Read-Only)
              * if set due to an ExpandAsArray on the wp_postmeta.post_id reverse relationship
              * @return WpPostmeta[]
              */
             return $this->_objWpPostmetaAsPostArray;
         case '_WpPostsAsPostParent':
             /**
              * Gets the value for the private _objWpPostsAsPostParent (Read-Only)
              * if set due to an expansion on the wp_posts.post_parent reverse relationship
              * @return WpPosts
              */
             return $this->_objWpPostsAsPostParent;
         case '_WpPostsAsPostParentArray':
             /**
              * Gets the value for the private _objWpPostsAsPostParentArray (Read-Only)
              * if set due to an ExpandAsArray on the wp_posts.post_parent reverse relationship
              * @return WpPosts[]
              */
             return $this->_objWpPostsAsPostParentArray;
         case '_WpPvcDailyAsPostnum':
             /**
              * Gets the value for the private _objWpPvcDailyAsPostnum (Read-Only)
              * if set due to an expansion on the wp_pvc_daily.postnum reverse relationship
              * @return WpPvcDaily
              */
             return $this->_objWpPvcDailyAsPostnum;
         case '_WpPvcDailyAsPostnumArray':
             /**
              * Gets the value for the private _objWpPvcDailyAsPostnumArray (Read-Only)
              * if set due to an ExpandAsArray on the wp_pvc_daily.postnum reverse relationship
              * @return WpPvcDaily[]
              */
             return $this->_objWpPvcDailyAsPostnumArray;
         case '_WpPvcTotalAsPostnum':
             /**
              * Gets the value for the private _objWpPvcTotalAsPostnum (Read-Only)
              * if set due to an expansion on the wp_pvc_total.postnum reverse relationship
              * @return WpPvcTotal
              */
             return $this->_objWpPvcTotalAsPostnum;
         case '_WpPvcTotalAsPostnumArray':
             /**
              * Gets the value for the private _objWpPvcTotalAsPostnumArray (Read-Only)
              * if set due to an ExpandAsArray on the wp_pvc_total.postnum reverse relationship
              * @return WpPvcTotal[]
              */
             return $this->_objWpPvcTotalAsPostnumArray;
         case '_WpWtiLikePostAsPost':
             /**
              * Gets the value for the private _objWpWtiLikePostAsPost (Read-Only)
              * if set due to an expansion on the wp_wti_like_post.post_id reverse relationship
              * @return WpWtiLikePost
              */
             return $this->_objWpWtiLikePostAsPost;
         case '_WpWtiLikePostAsPostArray':
             /**
              * Gets the value for the private _objWpWtiLikePostAsPostArray (Read-Only)
              * if set due to an ExpandAsArray on the wp_wti_like_post.post_id reverse relationship
              * @return WpWtiLikePost[]
              */
             return $this->_objWpWtiLikePostAsPostArray;
         case '__Restored':
             return $this->__blnRestored;
         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 'CommentID':
             /**
              * Gets the value for intCommentID (Read-Only PK)
              * @return integer
              */
             return $this->intCommentID;
         case 'CommentPostID':
             /**
              * Gets the value for intCommentPostID (Not Null)
              * @return integer
              */
             return $this->intCommentPostID;
         case 'CommentAuthor':
             /**
              * Gets the value for strCommentAuthor (Not Null)
              * @return string
              */
             return $this->strCommentAuthor;
         case 'CommentAuthorEmail':
             /**
              * Gets the value for strCommentAuthorEmail (Not Null)
              * @return string
              */
             return $this->strCommentAuthorEmail;
         case 'CommentAuthorUrl':
             /**
              * Gets the value for strCommentAuthorUrl (Not Null)
              * @return string
              */
             return $this->strCommentAuthorUrl;
         case 'CommentAuthorIP':
             /**
              * Gets the value for strCommentAuthorIP (Not Null)
              * @return string
              */
             return $this->strCommentAuthorIP;
         case 'CommentDate':
             /**
              * Gets the value for dttCommentDate (Not Null)
              * @return QDateTime
              */
             return $this->dttCommentDate;
         case 'CommentDateGmt':
             /**
              * Gets the value for dttCommentDateGmt (Not Null)
              * @return QDateTime
              */
             return $this->dttCommentDateGmt;
         case 'CommentContent':
             /**
              * Gets the value for strCommentContent (Not Null)
              * @return string
              */
             return $this->strCommentContent;
         case 'CommentKarma':
             /**
              * Gets the value for intCommentKarma (Not Null)
              * @return integer
              */
             return $this->intCommentKarma;
         case 'CommentApproved':
             /**
              * Gets the value for strCommentApproved (Not Null)
              * @return string
              */
             return $this->strCommentApproved;
         case 'CommentAgent':
             /**
              * Gets the value for strCommentAgent (Not Null)
              * @return string
              */
             return $this->strCommentAgent;
         case 'CommentType':
             /**
              * Gets the value for strCommentType (Not Null)
              * @return string
              */
             return $this->strCommentType;
         case 'CommentParent':
             /**
              * Gets the value for intCommentParent (Not Null)
              * @return integer
              */
             return $this->intCommentParent;
         case 'UserId':
             /**
              * Gets the value for intUserId (Not Null)
              * @return integer
              */
             return $this->intUserId;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CommentPostIDObject':
             /**
              * Gets the value for the WpPosts object referenced by intCommentPostID (Not Null)
              * @return WpPosts
              */
             try {
                 if (!$this->objCommentPostIDObject && !is_null($this->intCommentPostID)) {
                     $this->objCommentPostIDObject = WpPosts::Load($this->intCommentPostID);
                 }
                 return $this->objCommentPostIDObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CommentParentObject':
             /**
              * Gets the value for the WpComments object referenced by intCommentParent (Not Null)
              * @return WpComments
              */
             try {
                 if (!$this->objCommentParentObject && !is_null($this->intCommentParent)) {
                     $this->objCommentParentObject = WpComments::Load($this->intCommentParent);
                 }
                 return $this->objCommentParentObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'User':
             /**
              * Gets the value for the WpUsers object referenced by intUserId (Not Null)
              * @return WpUsers
              */
             try {
                 if (!$this->objUser && !is_null($this->intUserId)) {
                     $this->objUser = WpUsers::Load($this->intUserId);
                 }
                 return $this->objUser;
             } 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 '_WpCommentsAsCommentParent':
             /**
              * Gets the value for the private _objWpCommentsAsCommentParent (Read-Only)
              * if set due to an expansion on the wp_comments.comment_parent reverse relationship
              * @return WpComments
              */
             return $this->_objWpCommentsAsCommentParent;
         case '_WpCommentsAsCommentParentArray':
             /**
              * Gets the value for the private _objWpCommentsAsCommentParentArray (Read-Only)
              * if set due to an ExpandAsArray on the wp_comments.comment_parent reverse relationship
              * @return WpComments[]
              */
             return $this->_objWpCommentsAsCommentParentArray;
         case '__Restored':
             return $this->__blnRestored;
         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 'PollipId':
             /**
              * Gets the value for intPollipId (Read-Only PK)
              * @return integer
              */
             return $this->intPollipId;
         case 'PollipQid':
             /**
              * Gets the value for strPollipQid (Not Null)
              * @return string
              */
             return $this->strPollipQid;
         case 'PollipAid':
             /**
              * Gets the value for strPollipAid (Not Null)
              * @return string
              */
             return $this->strPollipAid;
         case 'PollipIp':
             /**
              * Gets the value for strPollipIp (Not Null)
              * @return string
              */
             return $this->strPollipIp;
         case 'PollipHost':
             /**
              * Gets the value for strPollipHost (Not Null)
              * @return string
              */
             return $this->strPollipHost;
         case 'PollipTimestamp':
             /**
              * Gets the value for strPollipTimestamp (Not Null)
              * @return string
              */
             return $this->strPollipTimestamp;
         case 'PollipUser':
             /**
              * Gets the value for strPollipUser (Not Null)
              * @return string
              */
             return $this->strPollipUser;
         case 'PollipUserid':
             /**
              * Gets the value for intPollipUserid (Not Null)
              * @return integer
              */
             return $this->intPollipUserid;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'PollipQidObject':
             /**
              * Gets the value for the WpPollsq object referenced by strPollipQid (Not Null)
              * @return WpPollsq
              */
             try {
                 if (!$this->objPollipQidObject && !is_null($this->strPollipQid)) {
                     $this->objPollipQidObject = WpPollsq::Load($this->strPollipQid);
                 }
                 return $this->objPollipQidObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'PollipAidObject':
             /**
              * Gets the value for the WpPollsa object referenced by strPollipAid (Not Null)
              * @return WpPollsa
              */
             try {
                 if (!$this->objPollipAidObject && !is_null($this->strPollipAid)) {
                     $this->objPollipAidObject = WpPollsa::Load($this->strPollipAid);
                 }
                 return $this->objPollipAidObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'PollipUseridObject':
             /**
              * Gets the value for the WpUsers object referenced by intPollipUserid (Not Null)
              * @return WpUsers
              */
             try {
                 if (!$this->objPollipUseridObject && !is_null($this->intPollipUserid)) {
                     $this->objPollipUseridObject = WpUsers::Load($this->intPollipUserid);
                 }
                 return $this->objPollipUseridObject;
             } 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 '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }