Location: PHPKode > projects > Anahita Social Engine > site/views/stories/html.php
<?php
/**
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2008 - 2010 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 ComSocialengineViewStoriesHtml extends ComSocialengineViewHtml
{
		
	/**
	 * 
	 * @return 
	 */
	protected function prepareDefaultLayout()
	{
		$title = ($this->getMenuTitle()) ? $this->getMenuTitle() : JText::_('AN-SE-STORIES-HEADER-TITLE');
		
		$header = KFactory::get('lib.anahita.uikit.header.page')->setTitle($title);
		
		$this->assign('header', $header);
	}
		
	/**
	 * 
	 * @return 
	 */
	protected function prepareDashboardLayout()
	{
		$stories 	  = $this->getApplication()
						->getDashboardStories($this->getLimit(), $this->getOffset());
						
		foreach($stories as $story) {
			$story->mixin(KFactory::tmp('lib.anahita.uikit.story.action.story',array('mixer'=>$story,'view'=>$this)));	
		}
		
		$this->assign('stories', $stories);
	}
	
//end class
}
Return current item: Anahita Social Engine