<?php
/**
* @version $Id: html.php 1286 2009-10-20 18:11:30Z rmdstudio $
* @category Anahita Social Engineâ¢
* @package AnUikitHeaderPage
* @copyright Copyright (C) 2007 - 2009 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link http://www.anahitapolis.com
*/
class AnUikitHeaderPage extends AnUikitViewUikit
{
protected $_title = '';
protected $_description = '';
protected $_actions = array();
public function __construct(array $options=array())
{
parent::__construct($options);
$this->setLayout('page');
}
/*
* Method to set the header title
* @return AnUikitHeaderPage class instance
*/
public function setTitle($string='')
{
$this->_title = $string;
return $this;
}
/*
* Method to set the header description
* @return AnUikitHeaderPage class instance
*/
public function setDescription($string='')
{
$this->_description = $string;
return $this;
}
/*
* Method to set a list of action links to the media header
* @return AnUikitHeaderPage class instance
*/
public function setActions(array $actions=array())
{
$this->_actions = $actions;
return $this;
}
/*
* Method load the template layout
* @return template file stream
*/
public function loadTemplate($identifier=null)
{
$this->assign('actions', $this->_actions);
$this->assign('title', $this->_title);
$this->assign('description', $this->_description);
return parent::loadTemplate($identifier);
}
//end class
}