Changeset 15018 for events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/SettingsAction.php
- Timestamp:
- 07/02/08 00:58:40 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/web/frontend/webapp/actions/Account/SettingsAction.php
r15007 r15018 13 13 require_once 'Piece/Unity/Service/FlowAction.php'; 14 14 require_once 'Piece/Unity/Service/Runemaster.php'; 15 require_once 'Phwittr/Self.php'; 15 16 require_once 'Phwittr/Account.php'; 16 17 … … 40 41 */ 41 42 43 var $_self; 42 44 var $_user; 43 var $_loginUser;44 45 45 46 /**#@-*/ … … 51 52 function entryForm() 52 53 { 53 if (is_null($this->_ user)) {54 if (is_null($this->_self)) { 54 55 $this->_loginUser = $this->_context->getSession()->getAttribute('loginUser'); 55 $this->_user = clone($this->_loginUser); 56 57 $this->_self = new Phwittr_Self($this->_loginUser->id); 58 $this->_user->userName = $this->_self->userName; 59 $this->_user->email = $this->_self->email; 60 $this->_user->privateFlag = $this->_self->privateFlag; 56 61 } 57 62 } … … 64 69 65 70 $viewElement = $this->_context->getViewElement(); 66 $viewElement->setElementByRef(' loginUser', $this->_loginUser);71 $viewElement->setElementByRef('self', $this->_self); 67 72 } 68 73 … … 85 90 $account->update($this->_user); 86 91 87 $this->_context->getSession()->setAttribute('loginUser', $this->_user); 88 $this->_loginUser = clone($this->_user); 92 $this->_loginUser->userName = $this->_user->userName; 93 $this->_loginUser->email = $this->_user->email; 94 $this->_loginUser->privateFlag = $this->_user->privateFlag; 95 96 $this->_context->getSession()->setAttribute('loginUser', $this->_loginUser); 97 $this->_self = new Phwittr_Self($this->_loginUser->id); 89 98 90 99 return 'DisplayForm';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)