public function setContent($content) { if ($this->content != $content) { $this->_set('content', $content); $this->_set('content_html', majaxMarkdown::transform($content)); $this->contentChanged = true; } }
public function setTranscript($transcript) { if ($this->transcript != $transcript) { $this->_set('transcript', $transcript); $this->_set('transcript_html', majaxMarkdown::transform($transcript)); $this->transcriptChanged = true; } }
public function executePreview(sfWebRequest $request) { $preview = majaxMarkdown::transform($request->getParameter('markdown')); if (sfConfig::get('app_majaxMarkdown_post_preview', false)) { $render = sfConfig::get('app_majaxMarkdown_post_preview'); $preview = call_user_func($render, $preview); } $this->preview = $preview; }