PHP Class Zfplanet_View_Helper_ShortenArticle, ZFPlanet

Inheritance: extends Zend_View_Helper_Abstract
Show file Open project: padraic/ZFPlanet

Public Methods

Method Description
shortenArticle ( $content, $length = 5000, $encoding = null )

Protected Methods

Method Description
_addContinuationMarker ( string $content ) : string Add a generic indicator that article is truncated without accidentally appending the indicator to URIs in links and images, instead broken links and images are stripped entirely before its appended (also cleaning up the source).

Method Details

_addContinuationMarker() protected method

Add a generic indicator that article is truncated without accidentally appending the indicator to URIs in links and images, instead broken links and images are stripped entirely before its appended (also cleaning up the source).
protected _addContinuationMarker ( string $content ) : string
$content string
return string

shortenArticle() public method

public shortenArticle ( $content, $length = 5000, $encoding = null )