EasyBlogTruncater
extends EasyBlog
in package
Table of Contents
Properties
- $app : mixed
- $config : mixed
- $db : mixed
- $doc : mixed
- $input : mixed
- $jconfig : mixed
- $lang : mixed
- $my : mixed
- $string : mixed
Methods
- __construct() : mixed
- getError() : mixed
- getErrors() : mixed
- getImages() : mixed
- Legacy method to retrieve images
- hasError() : mixed
- hasErrors() : mixed
- isMobile() : mixed
- Determines if this is a mobile layout
- isTablet() : mixed
- Determines if this is a tablet layout
- loadLanguage() : mixed
- Helper method to load language
- removeReadmore() : mixed
- Strip readmore tag
- setError() : mixed
- strip_only() : mixed
- Reverse of strip_tags
- stripCodes() : mixed
- Remove known dirty codes from the content
- stripElementBlocks() : mixed
- Remove common elements blocks such as button.
- stripMedia() : mixed
- Remove the processed media from the content so that the truncation can display the content properly.
- stripTags() : mixed
- Extended method to strip the html tags
- truncate() : mixed
- Truncates the content of the blog post
- truncateByBreak() : mixed
- Truncation by break tags
- truncateByChars() : mixed
- Performs truncation by characters
- truncateByParagraph() : mixed
- Truncates the content by paragraph
- truncateByWords() : mixed
- Performs truncation of the content by words
- wrapTextWithDropcap() : mixed
- Wraps text with drop cap if necessary
- truncateByTag() : mixed
- Truncates the content by paragraph
Properties
$app
public
mixed
$app
= \null
$config
public
mixed
$config
= \null
$db
public
mixed
$db
= \null
$doc
public
mixed
$doc
= \null
$input
public
mixed
$input
= \null
$jconfig
public
mixed
$jconfig
= \null
$lang
public
mixed
$lang
= \null
$my
public
mixed
$my
= \null
$string
public
mixed
$string
= \null
Methods
__construct()
public
__construct() : mixed
getError()
public
getError() : mixed
getErrors()
public
getErrors() : mixed
getImages()
Legacy method to retrieve images
public
getImages(mixed $content[, mixed $returnObject = false ][, mixed $debug = false ]) : mixed
Parameters
- $content : mixed
- $returnObject : mixed = false
- $debug : mixed = false
Tags
hasError()
public
hasError() : mixed
hasErrors()
public
hasErrors() : mixed
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
removeReadmore()
Strip readmore tag
public
removeReadmore(mixed $text) : mixed
Parameters
- $text : mixed
Tags
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed
strip_only()
Reverse of strip_tags
public
strip_only(mixed $str, mixed $tags[, mixed $stripContent = false ]) : mixed
Parameters
- $str : mixed
- $tags : mixed
- $stripContent : mixed = false
Tags
stripCodes()
Remove known dirty codes from the content
public
stripCodes(EasyBlogPost &$post) : mixed
Parameters
- $post : EasyBlogPost
Tags
stripElementBlocks()
Remove common elements blocks such as button.
public
stripElementBlocks(EasyBlogPost &$post) : mixed
Parameters
- $post : EasyBlogPost
Tags
stripMedia()
Remove the processed media from the content so that the truncation can display the content properly.
public
stripMedia(EasyBlogPost &$post, mixed $media) : mixed
Parameters
- $post : EasyBlogPost
- $media : mixed
Tags
stripTags()
Extended method to strip the html tags
public
stripTags(mixed $text) : mixed
Parameters
- $text : mixed
Tags
truncate()
Truncates the content of the blog post
public
truncate(EasyBlogPost &$post[, mixed $charsLimit = null ][, mixed $options = [] ]) : mixed
Parameters
- $post : EasyBlogPost
- $charsLimit : mixed = null
- $options : mixed = []
Tags
truncateByBreak()
Truncation by break tags
public
truncateByBreak(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
- $post : EasyBlogPost
- $max : mixed = 0
Tags
truncateByChars()
Performs truncation by characters
public
truncateByChars(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
- $post : EasyBlogPost
- $max : mixed = 0
Tags
truncateByParagraph()
Truncates the content by paragraph
public
truncateByParagraph(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
- $post : EasyBlogPost
- $max : mixed = 0
Tags
truncateByWords()
Performs truncation of the content by words
public
truncateByWords(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
- $post : EasyBlogPost
- $max : mixed = 0
Tags
wrapTextWithDropcap()
Wraps text with drop cap if necessary
public
wrapTextWithDropcap(mixed $text) : mixed
Parameters
- $text : mixed
Tags
truncateByTag()
Truncates the content by paragraph
private
truncateByTag(EasyBlogPost &$post, mixed $tag[, mixed $max = 0 ][, mixed $truncateType = 'paragraph' ]) : mixed
Parameters
- $post : EasyBlogPost
- $tag : mixed
- $max : mixed = 0
- $truncateType : mixed = 'paragraph'