/**
  * Constructs a new view for the account profile hook
  * @return null
  */
 public function __construct(ProfileForm $form)
 {
     parent::__construct(self::TEMPLATE);
     $this->set('user', $form->getUser());
     $this->set('form', $form);
     $this->addInlineJavascript('$("#formProfileEmail").focus();');
 }
 /**
  * Sets the profile form
  * @param ProfileForm $form The profile form
  * @return null
  */
 public function setProfileForm(ProfileForm $form)
 {
     $this->profileForm = $form;
     $this->user = $form->getUser();
 }