/**
  * @see	\wcf\form\IForm::save()
  */
 public function save()
 {
     parent::save();
     $this->objectAction = new UserAction(array(WCF::getUser()), 'update', array('data' => array_merge($this->additionalFields, array('signature' => $this->text, 'signatureEnableBBCodes' => $this->enableBBCodes, 'signatureEnableHtml' => $this->enableHtml, 'signatureEnableSmilies' => $this->enableSmilies))));
     $this->objectAction->executeAction();
     SignatureCache::getInstance()->getSignature(new User(WCF::getUser()->userID));
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
示例#2
0
 /**
  * Returns the parsed signature.
  * 
  * @return	string
  */
 public function getSignature()
 {
     return SignatureCache::getInstance()->getSignature($this->getDecoratedObject());
 }