public function loadFiller() { static $lorum = null; if ($this->sectype == 'header') { $this->content = '<!-- lorem -->Lorem ipsum dolor'; } else { if (empty($lorum)) { $lorum = file_get_contents(PHPWS_SOURCE_DIR . 'mod/pagesmith/inc/lorum.txt'); } $this->content = PHPWS_Text::breaker($lorum); } $this->setSaved(); }
public function getPrint() { if (empty($this->text)) { return null; } $text = $this->text; if (!$this->use_profanity) { $text = PHPWS_Text::profanityFilter($text); } if ($this->use_strip_tags) { $text = strip_tags($text, $this->allowed_tags); } if ($this->use_breaker) { $text = PHPWS_Text::breaker($text); } if ($this->fix_anchors) { $text = PHPWS_Text::fixAnchors($text); } if ($this->collapse_urls) { $text = PHPWS_Text::collapseUrls($text); } return $text; }
public function setSummary($summary) { if (PHPWS_Text::breakPost('summary')) { $summary = PHPWS_Text::breaker($summary); } $this->summary = PHPWS_Text::parseInput($summary); }