Location: PHPKode > projects > Mivec Framework > mivec/demo/actions/WeblogDashboard.action.class.php
<?php

require_once MIVEC_HOME . "action/WebAction.class.php";
require_once "demo/managers/WeblogManager.class.php";

class WeblogDashboard extends WebAction
{
	var $entries;
	var $offset = 0;
	
	function setOffset($offset)
	{
		$this->offset = $offset;
	}
	
	function getOffset()
	{
		return $this->offset + 15;
	}
	
	function getEntries()
	{
		return $this->entries;
	}
	
	function execute()
	{
		$this->entries = WeblogManager::getWeblogEntries($this->offset);
		return SUCCESS;
	}
}

?>
Return current item: Mivec Framework