'; /** * 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'; /** * Main Constructor * * @access public * @param object \DPL\Parameters * @return void */ public function __construct( Parameters $parameters ) { parent::__construct( $parameters ); $this->tierLevel = substr( $parameters->getParameter( 'headingmode' ), 1 ); } /** * Format a heading group. * * @access public * @param integer Article start index for this heading. * @param integer Article count for this heading. * @param string Heading link/text display. * @param array List of \DPL\Article. * @param object List of \DPL\Lister\Lister * @return string Heading HTML */ 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. * * @access public * @return string List Start */ public function getListStart() { return sprintf( $this->listStart, $this->listAttributes ); } /** * Return $this->itemStart with attributes replaced. * * @access public * @return string Item Start */ public function getItemStart() { return sprintf( $this->itemStart, $this->itemAttributes, $this->tierLevel ); } /** * Return $this->itemEnd with attributes replaced. * * @access public * @return string Item End */ public function getItemEnd() { return sprintf( $this->itemEnd, $this->itemAttributes, $this->tierLevel ); } }