Index: trunk/phase3/includes/User.php |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | * Load user table data, given mId has already been set. |
284 | 284 | * @return Bool false if the ID does not exist, true otherwise |
285 | 285 | */ |
286 | | - private function loadFromId() { |
| 286 | + public function loadFromId() { |
287 | 287 | global $wgMemc; |
288 | 288 | if ( $this->mId == 0 ) { |
289 | 289 | $this->loadDefaults(); |
— | — | @@ -859,7 +859,7 @@ |
860 | 860 | * |
861 | 861 | * @param $name string |
862 | 862 | */ |
863 | | - private function loadDefaults( $name = false ) { |
| 863 | + public function loadDefaults( $name = false ) { |
864 | 864 | wfProfileIn( __METHOD__ ); |
865 | 865 | |
866 | 866 | $this->mId = 0; |
— | — | @@ -1016,7 +1016,7 @@ |
1017 | 1017 | * |
1018 | 1018 | * @return Bool True if the user exists, false if the user is anonymous |
1019 | 1019 | */ |
1020 | | - private function loadFromDatabase() { |
| 1020 | + public function loadFromDatabase() { |
1021 | 1021 | # Paranoia |
1022 | 1022 | $this->mId = intval( $this->mId ); |
1023 | 1023 | |
— | — | @@ -2758,7 +2758,7 @@ |
2759 | 2759 | * Clear the user's cookies and session, and reset the instance cache. |
2760 | 2760 | * @see logout() |
2761 | 2761 | */ |
2762 | | - private function doLogout() { |
| 2762 | + public function doLogout() { |
2763 | 2763 | $this->clearInstanceCache( 'defaults' ); |
2764 | 2764 | |
2765 | 2765 | $this->getRequest()->setSessionData( 'wsUserID', 0 ); |