Code formatting for ViewHelper & tests
This commit is contained in:
@ -11,9 +11,9 @@
|
||||
|
||||
class BreadcrumbViewHelper extends ViewHelper
|
||||
{
|
||||
|
||||
|
||||
protected $separator = ' > ';
|
||||
|
||||
|
||||
public function breadcrumb($text = false, $href = false)
|
||||
{
|
||||
if ($text) {
|
||||
@ -21,22 +21,22 @@ class BreadcrumbViewHelper extends ViewHelper
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
public function prepend($text, $href)
|
||||
{
|
||||
Registry::set(__CLASS__, array($text => $href) + Registry::get(__CLASS__, array()));
|
||||
}
|
||||
|
||||
|
||||
public function append($text, $href)
|
||||
{
|
||||
Registry::set(__CLASS__, Registry::get(__CLASS__, array()) + array($text => $href));
|
||||
}
|
||||
|
||||
|
||||
public function setSeparator($sep)
|
||||
{
|
||||
$this->separator = $sep;
|
||||
}
|
||||
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
$data = array();
|
||||
|
Reference in New Issue
Block a user