Esempio n. 1
0
 /**
  * @param string $longBio
  *
  * @return Author
  */
 protected function setLongBio($longBio)
 {
     $compiler = MarkupCompilerFactory::getCompiler()->setMarkup($longBio);
     $contentsHtml = $compiler->getContentsHtml();
     $this->longBio = $longBio;
     $this->longBioCompiled = $contentsHtml;
     return $this;
 }
Esempio n. 2
0
 /**
  * @param string $contents
  *
  * @return $this
  * @throws MarkupCompilerException
  */
 public function setContents(string $contents)
 {
     $compiler = MarkupCompilerFactory::getCompiler()->setMarkup($contents);
     $contentsHtml = $compiler->getContentsHtml();
     $this->contents = $contents;
     $this->contentsCompiled = $contentsHtml;
     return $this;
 }