Location: PHPKode > projects > DIY Blog > diy-blog/lib/diy-framework/classes/diy-framework/view/View.class.php
<?php

/**
 * An abstract class for sub-classing by the actual view classes.
 * @package		diy-framework
 * @subpackage	view
 * @author		Martynas Jusevicius <hide@address.com>
 * @link		http://www.xml.lt
 */

abstract class View
{
	protected $resource = null;

/**
 * Constructs View from Resource.
 * @param Resource $resource Resource
 */
 
	public function __construct(Resource $resource = null)
	{
		$this->resource = $resource;
		//$this->status = $status;
	}

/**
 * Displays this view.
 * @param Request $request Request
 * @param Response $response Response
 */

	public abstract function display(Request $request, Response $response);

}

?>
Return current item: DIY Blog