git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@134 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
pzinovkin
2010-03-25 11:03:08 +00:00
parent 359a49c412
commit 942d73caf7
4 changed files with 141 additions and 2 deletions

View File

@ -0,0 +1,29 @@
<?php
/**
* @copyright NetMonsters <team@netmonsters.ru>
* @link http://netmonsters.ru
* @package Majestic
* @subpackage View
* @since 2010-03-16
* @version SVN: $Id$
* @filesource $URL$
*/
class ViewHelperTitle extends ViewHelper
{
public function title($string = false)
{
if ($string) {
$data = Registry::get(__CLASS__, array());
$data[] = $string;
Registry::set(__CLASS__, $data);
}
return $this;
}
public function __toString()
{
return implode(' - ', Registry::get(__CLASS__, array()));
}
}