<?php
require_once MIVEC_HOME . "action/WebAction.class.php";
require_once "demo/managers/WeblogManager.class.php";
class ViewWeblogEntry extends WebAction
{
var $entryID;
var $entry;
function setEntryID($entryID)
{
$this->entryID = $entryID;
}
function getEntry()
{
return $this->entry;
}
function getCategories()
{
$e = $this->entry;
return $e["categories"];
}
function execute()
{
$this->entry = WeblogManager::getWeblogEntry($this->entryID);
return SUCCESS;
}
}
?>