Completed
Push — master ( b569b1...d88325 )
by Jean-Christophe
03:46
created

HtmlPaginationMenu::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace Ajax\semantic\html\collections\menus;
4
5
use Ajax\semantic\html\collections\menus\HtmlMenu;
6
use Ajax\JsUtils;
7
use Phalcon\Mvc\View;
8
use Ajax\semantic\html\elements\HtmlIcon;
9
10
class HtmlPaginationMenu extends HtmlMenu{
11
12
	public function __construct( $identifier, $items=array() ){
13
		parent::__construct( $identifier,$items);
14
	}
15
	/**
16
	 * {@inheritDoc}
17
	 * @see \Ajax\common\html\BaseHtml::compile()
18
	 */
19
	public function compile(JsUtils $js=NULL,View $view=NULL){
20
		$this->insertItem(new HtmlIcon("", "left chevron"));
21
		$this->addItem(new HtmlIcon("", "right chevron"));
22
		$this->asPagination();
23
		return parent::compile($js,$view);
24
	}
25
}