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

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

class Weblog extends WebAction
{
	var $entries;
	var $lastBuild;
	
	function getLastBuild()
	{
		return date("r", $this->lastBuild);
	}
	
	function getEntries()
	{
		return $this->entries;
	}
	
	function getBaseUrl()
	{
		return "http://localhost:8086/mivec/";
	}
	
	function execute()
	{
		$this->entries = WeblogManager::getWeblogEntries();
		$this->lastBuild = WeblogManager::getWeblogLastBuildDate();
		return SUCCESS;
	}
}

?>
Return current item: Mivec Framework