Documentation

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
since
5.0
access

public

hasError()

public hasError() : mixed

hasErrors()

public hasErrors() : mixed

isMobile()

Determines if this is a mobile layout

public isMobile() : mixed
Tags
since
5.1
access

public

isTablet()

Determines if this is a tablet layout

public isTablet() : mixed
Tags
since
5.3
access

public

loadLanguage()

Helper method to load language

public loadLanguage([mixed $admin = false ]) : mixed
Parameters
$admin : mixed = false
Tags
since
5.0
access

public

removeReadmore()

Strip readmore tag

public removeReadmore(mixed $text) : mixed
Parameters
$text : mixed
Tags
since
5.3
access

public

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
since
4.0
access

public

stripCodes()

Remove known dirty codes from the content

public stripCodes(EasyBlogPost &$post) : mixed
Parameters
$post : EasyBlogPost
Tags
since
4.0
access

public

stripElementBlocks()

Remove common elements blocks such as button.

public stripElementBlocks(EasyBlogPost &$post) : mixed
Parameters
$post : EasyBlogPost
Tags
since
5.3.0
access

public

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
since
5.1
access

public

stripTags()

Extended method to strip the html tags

public stripTags(mixed $text) : mixed
Parameters
$text : mixed
Tags
since
5.1
access

public

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
since
4.0
access

public

truncateByBreak()

Truncation by break tags

public truncateByBreak(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
$post : EasyBlogPost
$max : mixed = 0
Tags
since
5.0
access

public

truncateByChars()

Performs truncation by characters

public truncateByChars(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
$post : EasyBlogPost
$max : mixed = 0
Tags
since
5.2.0
access

public

truncateByParagraph()

Truncates the content by paragraph

public truncateByParagraph(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
$post : EasyBlogPost
$max : mixed = 0
Tags
since
5.0
access

public

truncateByWords()

Performs truncation of the content by words

public truncateByWords(EasyBlogPost &$post[, mixed $max = 0 ]) : mixed
Parameters
$post : EasyBlogPost
$max : mixed = 0
Tags
since
5.0
access

public

wrapTextWithDropcap()

Wraps text with drop cap if necessary

public wrapTextWithDropcap(mixed $text) : mixed
Parameters
$text : mixed
Tags
since
5.4.0
access

public

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'
Tags
since
5.1
access

public


        
On this page

Search results