public function applyFields($text)
    {
        $mailKeys = array_keys($this->getMailFields());

        return str_replace($mailKeys, $this->mailFields, $text);
    }
public function applyFields($text)
    {
        $mailKeys = array_keys($this->getMailFields());

        return str_replace($mailKeys, $this->mailFields, $text);
    }
public function applyFields ( $ text ) { $ mailKeys = array_keys ( $ this -> getMailFields ( ) ) ; return str_replace ( $ mailKeys , $ this -> mailFields , $ text ) ; }
Replace the mailkeys with the mailfields in given text
@param  string $text     The text to apply the replacment to
@return string           The text with replaced mailfields
Replace the mailkeys with the mailfields in given text