Location: PHPKode > projects > DIY Blog > diy-blog/classes/diy-blog/model/PageResource.php
<?php

require_once 'diy-blog/model/FrontEndResource.php';

require_once 'diy-blog/model/om/BaseFrontEndResource.php';

/**
 * A frontend Resource for diplaying a single Page.
 * Originally generated by Propel.
 *
 * @package	diy-blog.model
 * @author	Martynas Jusevicius <hide@address.com>
 * @link	http://www.xml.lt
 */

class PageResource extends FrontEndResource
{

	/**
	 * Constructs a new PageResource class, setting the Type column to FrontEndResourcePeer::CLASSKEY_PAGERESOURCE.
	 */
	public function __construct()
	{

		$this->setType(FrontEndResourcePeer::CLASSKEY_PAGERESOURCE);
	}

	public function doGet(Request $request, Response $response)
	{
		$view = null;
		$parent = parent::doGet($request, $response);

		if ($parent != null) $view = $parent;
		else $view = new ReadPageView($this);

		return $view;
	}

	public function doPost(Request $request, Response $response)
	{
		$view = null;
		$parent = parent::doPost($request, $response);

		if ($parent != null) $view = $parent;
		else $view = new ReadPageView($this);

		return $view;
	}

} // PageResource
Return current item: DIY Blog