<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Persönlicher Blog von Robert Erlinger &#187; Typo3</title>
	<atom:link href="http://blog.databyte.at/tag/typo3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.databyte.at</link>
	<description>Persönlicher Blog von Robert Erlinger</description>
	<lastBuildDate>Tue, 10 May 2011 14:21:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Typo3 Extension &#8211; Template Rendering in Extensions</title>
		<link>http://blog.databyte.at/2007/07/typo3-extension-template-rendering-in-extensions/</link>
		<comments>http://blog.databyte.at/2007/07/typo3-extension-template-rendering-in-extensions/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 11:12:27 +0000</pubDate>
		<dc:creator>Robert Erlinger</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://blog.databyte.at/?p=19</guid>
		<description><![CDATA[In der Typo3 Extension kann z.B. folgende Methode geschrieben werden:

	/**
	 * Renders a team using the specified template
	 *
	 * @param template the template to use
	 * @param resource the sql resource with the list of teams
	 *
	 * @return the template with the replaced markers
	 */
	function renderTeam($team) {
		// Load the roster template
		$templateFile = $this->cObj->fileResource($this->conf['rosterTemplate']);
		$templateCodeTeam [...]]]></description>
			<content:encoded><![CDATA[<p>In der Typo3 Extension kann z.B. folgende Methode geschrieben werden:</p>
<pre>
	/**
	 * Renders a team using the specified template
	 *
	 * @param template the template to use
	 * @param resource the sql resource with the list of teams
	 *
	 * @return the template with the replaced markers
	 */
	function renderTeam($team) {
		// Load the roster template
		$templateFile = $this->cObj->fileResource($this->conf['rosterTemplate']);
		$templateCodeTeam = $this->cObj->getSubpart ($templateFile,'###TEAM###');

		$marker = array();
		$marker['###TEAMNAME###'] = $team->getName();
		$marker['###RACE###'] = $team->getRace();
		$marker['###TEAMVALUE###'] = 'yet to do';
		$marker['###TREASURY###'] = $team->getTreasury();
		$marker['###HEADCOACH_NAME###'] = $team->getHeadCoachName();
		$marker['###HEADCOACH_EMAIL###'] = $team->getHeadCoachEmail();
		$marker['###HEADCOACH_NICK###'] = $team->getHeadCoachNick();
		$marker['###HEADCOACH###'] = $this->getHeadCoachLink($team->getHeadCoachNick(),$team->getHeadCoachEmail());
		$marker['###RR###'] = $team->getRR();
		$marker['###RR_COST###'] = $team->getRRCost();
		$marker['###RR_SUM_COSTS###'] = $team->getRR() * $team->getRRCost();
		$marker['###FF###'] = $team->getFF();
		$marker['###FF_COST###'] = '10000';
		$marker['###FF_SUM_COSTS###'] = $team->getFF() * 10000;
		$marker['###ASSCOACH###'] = $team->getAssCoaches();
		$marker['###ASSCOACH_COSTS###'] = 10000;
		$marker['###ASSCOACH_SUM_COSTS###'] =  $team->getAssCoaches() * 10000;
		$marker['###CHEER###'] = $team->getCheerleaders();
		$marker['###CHEER_COSTS###'] = 10000;
		$marker['###CHEER_SUM_COSTS###'] = $team->getCheerleaders() * 10000;
		$marker['###APO###'] =  $team->getApothecary();
		$marker['###APO_COST###'] = 50000;
		$marker['###APO_SUM_COSTS###'] =$team->getApothecary() * 50000;
		$marker['###TEAM_VALUE###'] = $this->getTeamValue($team);
		$marker['###SPIRALLING_EXPENSES###']= $this->getSpiralingExpenses($team);

		// Render the players
		$templateCodeTeam = $this->cObj->substituteSubpart($templateCodeTeam,'###PLAYERS###', $this->renderPlayers($templateCodeTeam, $team->getPlayers(), $team->getRace()));		

		return $this->cObj->substituteMarkerArrayCached($templateCodeTeam, $marker);

	}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.databyte.at/2007/07/typo3-extension-template-rendering-in-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

