'; /** * List(Section) End * * @var string */ public $listEnd = ''; /** * Item Start * * @var string */ public $itemStart = ''; /** * Item End * * @var string */ public $itemEnd = ''; /** * Tier Level * * @var string */ private $tierLevel = 'eader'; /** * @param Parameters $parameters */ public function __construct( Parameters $parameters ) { parent::__construct( $parameters ); $this->tierLevel = substr( $parameters->getParameter( 'headingmode' ), 1 ); } /** * Format a heading group. * * @param int $headingStart * @param int $headingCount * @param string $headingLink * @param array $articles * @param Lister $lister * @return string */ public function formatItem( $headingStart, $headingCount, $headingLink, $articles, Lister $lister ) { $item = ''; $item .= $this->getItemStart() . $headingLink; if ( $this->showHeadingCount ) { $item .= $this->articleCountMessage( $headingCount ); } $item .= $this->getItemEnd(); $item .= $lister->formatList( $articles, $headingStart, $headingCount ); return $item; } /** * Return $this->listStart with attributes replaced. * * @return string */ public function getListStart() { return sprintf( $this->listStart, $this->listAttributes ); } /** * Return $this->itemStart with attributes replaced. * * @return string */ public function getItemStart() { return sprintf( $this->itemStart, $this->itemAttributes, $this->tierLevel ); } /** * Return $this->itemEnd with attributes replaced. * * @return string */ public function getItemEnd() { return sprintf( $this->itemEnd, $this->itemAttributes, $this->tierLevel ); } }