本文整理匯總了PHP中PHPWS_Text::breaker方法的典型用法代碼示例。如果您正苦於以下問題:PHP PHPWS_Text::breaker方法的具體用法?PHP PHPWS_Text::breaker怎麽用?PHP PHPWS_Text::breaker使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PHPWS_Text
的用法示例。
在下文中一共展示了PHPWS_Text::breaker方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: loadFiller
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();
}
示例2: getPrint
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;
}
示例3: setSummary
public function setSummary($summary)
{
if (PHPWS_Text::breakPost('summary')) {
$summary = PHPWS_Text::breaker($summary);
}
$this->summary = PHPWS_Text::parseInput($summary);
}