Guest User

Untitled

a guest
Jan 5th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. public function getFormData()
  2. {
  3. $this->username = JRequest::getVar('username');
  4. $this->password = JRequest::getVar('password');
  5. $this->email = JRequest::getVar('email');
  6.  
  7. $this->avatar = JRequest::getVar('avatar');
  8. $this->firstName = JRequest::getVar('firstname');
  9. $this->lastName = JRequest::getVar('lastname');
  10. $this->description = JRequest::getVar('description');
  11.  
  12. $birthDay = JRequest::getVar('gg');
  13. $birthMonth = JRequest::getVar('mm');
  14. $birthYear = JRequest::getVar('yy');
  15. $this->birthDate = date_create($birthYear.'-'.$birthMonth.'-'.$birthDay);
  16. $this->city = JRequest::getVar('city');
  17. $rawCats = JRequest::getVar('txtCategories');
  18. if (isset($rawCats) && $rawCats != '')
  19. $this->categories = explode(';',$rawCats);
  20.  
  21. $profilePrivacy = JRequest::getVar('privacy_profile');
  22. $agendaPrivacy = JRequest::getVar('privacy_events');
  23. $infoPrivacy = JRequest::getVar('privacy_infos');
  24. }
Add Comment
Please, Sign In to add comment