PHP Class Zfplanet_View_Helper_ShortenArticle, ZFPlanet

Inheritance: extends Zend_View_Helper_Abstract
Afficher le fichier Open project: padraic/ZFPlanet

Méthodes publiques

Méthode Description
shortenArticle ( $content, $length = 5000, $encoding = null )

Méthodes protégées

Méthode 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 méthode

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
Résultat string

shortenArticle() public méthode

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