Esempio n. 1
0
 /**
  * Replaces user constants like username, firstname, ... data25
  *
  * @return string
  */
 public function replaceClickConstants($text, $clickFieldsValues)
 {
     foreach ($clickFieldsValues as $code => $value) {
         $text = Pap_Common_UserFields::replaceCustomConstantInText($code, $value, $text);
     }
     $text = Pap_Common_UserFields::removeCommentsInText($text);
     return $text;
 }
 /**
  * remove user constants in standard format {*some comment*}
  * @throws Gpf_Exception
  *
  * @param string $text
  */
 public function removeTransactionCommentsInText($text) {
     return Pap_Common_UserFields::removeCommentsInText($text);
 }