Location: PHPKode > projects > Lithron > lithron-1.0.2/prado/SimpleDemo.php
<?php

/**
 * Class file.
 *
 * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
 * @copyright 2005, diemeisterei GmbH. All rights reserved.
 * @author $Author: schmunk $
 * @version $Revision: 1 $  $Date: 2006-06-01 15:11:24 +0000 (Do, 01 Jun 2006) $
 * @package Phundament
 * @subpackage
 */

/**
 * class
 *
 * @package Phundament
 * @subpackage
 * @ todo doubled in MasterLayout for search ...
 */
class SimpleDemo extends TPage
{
	public static function generatePDFJob($filename, $headline, $welltext)
	{
		$page = RenderPage::createTemplate("lithron.prado.SimplePDF");
		$page->FileName = $filename;
		$page->ImgResolution = "low";
		$page->Headline = $headline;
		$page->WellText = $welltext;
		return $page;
	}

	public function handleRenderingRequest($sender, $param)
	{
		$job = array(
			array ("memory_limit", "50M"),
			array ("using", "Pages.lithron.prado.SimpleDemo"),
			array ("generator", array("SimpleDemo", "generatePDFJob"), array("simple.pdf", $this->InputHeadline->Text, $this->InputWellText->Text)),
		);
		Prado::using("Pages.lithron.prado.RenderPage");
		RenderPage::addJob($job, "lithron.prado.RenderPage");
	}
	
	
}

?>
Return current item: Lithron