* @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())); } }