PHP Class MetaArticleBodyField

Mostrar archivo Open project: sourcefabric/newscoop

Public Methods

Method Description
__construct ( string $p_content, MetaArticle $p_parent, $p_fieldName, $p_articleName, $p_subtitleNumber = null, $p_headerFormatStart = null, $p_headerFormatEnd = null ) Constructor
__get ( $p_property )
__toString ( )

Protected Methods

Method Description
trigger_invalid_property_error ( $p_property, $p_smarty = null )

Private Methods

Method Description
getContent ( array $p_subtitles = [] ) : string Returns the content of the given subtitles of the article body field.
getParagraphs ( $p_content, array $p_paragraphs = [] )
getSubtitles ( ) : array Returns the array of subtiles existent in the article body field.
getSubtitlesCount ( ) : integer Returns the total number of subtitles
getSubtitlesNames ( ) : array Returns an array containing the subtitle names

Method Details

__construct() public method

Constructor
public __construct ( string $p_content, MetaArticle $p_parent, $p_fieldName, $p_articleName, $p_subtitleNumber = null, $p_headerFormatStart = null, $p_headerFormatEnd = null )
$p_content string
$p_parent MetaArticle

__get() public method

public __get ( $p_property )

__toString() public method

public __toString ( )

trigger_invalid_property_error() protected method

protected trigger_invalid_property_error ( $p_property, $p_smarty = null )