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

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

class DeleteWeblogEntry extends WebAction
{
	var $entryID;
	
	function setEntryID($entryID)
	{
		$this->entryID = $entryID;
	}
	
	function execute()
	{
		return INPUT;
	}

	function confirmed()
	{
		WeblogManager::removeWeblogEntry($this->entryID);
		return SUCCESS;
	}
}

?>
Return current item: Mivec Framework