<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Kommentare zu: TYPO3 4.3 deprecated methods</title>
	<atom:link href="http://blog.foxtrot-uniform-charlie-kilo.eu/2010/03/typo3-4-3-deprecated-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.foxtrot-uniform-charlie-kilo.eu/2010/03/typo3-4-3-deprecated-methods/</link>
	<description>ふ</description>
	<lastBuildDate>Thu, 15 Jul 2010 22:46:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Von: paddy</title>
		<link>http://blog.foxtrot-uniform-charlie-kilo.eu/2010/03/typo3-4-3-deprecated-methods/comment-page-1/#comment-80</link>
		<dc:creator>paddy</dc:creator>
		<pubDate>Fri, 02 Apr 2010 15:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.foxtrot-uniform-charlie-kilo.eu/?p=285#comment-80</guid>
		<description>In most cases the workaround of Tolleiv is not necessary t3 moves forward not backward and I experienced 99,9% failsafeness doing so. Mark my words &lt;strong&gt;Make a backup!&lt;/strong&gt;. In case you face difficulties you should seriously consider to get rid of the extension you are using (to say it might have other lacks also including security).</description>
		<content:encoded><![CDATA[<p>In most cases the workaround of Tolleiv is not necessary t3 moves forward not backward and I experienced 99,9% failsafeness doing so. Mark my words <strong>Make a backup!</strong>. In case you face difficulties you should seriously consider to get rid of the extension you are using (to say it might have other lacks also including security).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Tolleiv</title>
		<link>http://blog.foxtrot-uniform-charlie-kilo.eu/2010/03/typo3-4-3-deprecated-methods/comment-page-1/#comment-79</link>
		<dc:creator>Tolleiv</dc:creator>
		<pubDate>Fri, 02 Apr 2010 14:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.foxtrot-uniform-charlie-kilo.eu/?p=285#comment-79</guid>
		<description>Hi,

usually you&#039;d like to keep compatibility with older TYPO3 versions - therefore replacing the makeInstanceClassName directly with makeInstance might not be the best choice.

I&#039;d suggest to transform such blocks:

&lt;pre&gt;
&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;className&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt; t3lib_div&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;::&lt;/b&gt;&lt;/font&gt;makeInstanceClassName&lt;font color=&quot;#6a5acd&quot;&gt;(&lt;/font&gt;‘tx_myext_class’&lt;font color=&quot;#6a5acd&quot;&gt;)&lt;/font&gt;;
&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;object&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt; &lt;font color=&quot;#a020f0&quot;&gt;new&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;className&lt;/font&gt;&lt;font color=&quot;#6a5acd&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;arg1&lt;/font&gt;, &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;arg2&lt;/font&gt;&lt;font color=&quot;#6a5acd&quot;&gt;)&lt;/font&gt;;
&lt;/pre&gt;

into something like this:
&lt;pre&gt;
&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/font&gt; &lt;font color=&quot;#6a5acd&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;version_compare&lt;/font&gt;&lt;font color=&quot;#6a5acd&quot;&gt;(&lt;/font&gt;TYPO3_version,&#039;&lt;font color=&quot;#ff00ff&quot;&gt;4.3&lt;/font&gt;&#039;,&#039;&lt;font color=&quot;#ff00ff&quot;&gt;&gt;&lt;/font&gt;&#039;&lt;font color=&quot;#6a5acd&quot;&gt;))&lt;/font&gt; &lt;font color=&quot;#6a5acd&quot;&gt;{&lt;/font&gt;
  &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;object&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt; t3lib_div&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;::&lt;/b&gt;&lt;/font&gt;makeInstance&lt;font color=&quot;#6a5acd&quot;&gt;(&lt;/font&gt;&#039;&lt;font color=&quot;#ff00ff&quot;&gt;tx_myext_class&lt;/font&gt;&#039;, &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;arg1&lt;/font&gt;, &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;arg2&lt;/font&gt;&lt;font color=&quot;#6a5acd&quot;&gt;)&lt;/font&gt;;
&lt;font color=&quot;#6a5acd&quot;&gt;}&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;else&lt;/b&gt;&lt;/font&gt; &lt;font color=&quot;#6a5acd&quot;&gt;{&lt;/font&gt;
  &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;className&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt; t3lib_div&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;::&lt;/b&gt;&lt;/font&gt;makeInstanceClassName&lt;font color=&quot;#6a5acd&quot;&gt;(&lt;/font&gt;&#039;&lt;font color=&quot;#ff00ff&quot;&gt;tx_myext_class&lt;/font&gt;&#039;&lt;font color=&quot;#6a5acd&quot;&gt;)&lt;/font&gt;;
  &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;object&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;=&lt;/b&gt;&lt;/font&gt; &lt;font color=&quot;#a020f0&quot;&gt;new&lt;/font&gt; &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;className&lt;/font&gt;&lt;font color=&quot;#6a5acd&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;arg1&lt;/font&gt;, &lt;font color=&quot;#804040&quot;&gt;&lt;b&gt;$&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#008080&quot;&gt;arg2&lt;/font&gt;&lt;font color=&quot;#6a5acd&quot;&gt;)&lt;/font&gt;;
&lt;font color=&quot;#6a5acd&quot;&gt;}&lt;/font&gt;
&lt;/pre&gt;

This way you make sure that the deprecation.log doesn&#039;t fill up and you can still use this extension for older TYPO3 versions.

Cheers,
Tolleiv</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>usually you&#8217;d like to keep compatibility with older TYPO3 versions &#8211; therefore replacing the makeInstanceClassName directly with makeInstance might not be the best choice.</p>
<p>I&#8217;d suggest to transform such blocks:</p>
<pre>
<font color="#804040"><b>$</b></font><font color="#008080">className</font> <font color="#804040"><b>=</b></font> t3lib_div<font color="#804040"><b>::</b></font>makeInstanceClassName<font color="#6a5acd">(</font>‘tx_myext_class’<font color="#6a5acd">)</font>;
<font color="#804040"><b>$</b></font><font color="#008080">object</font> <font color="#804040"><b>=</b></font> <font color="#a020f0">new</font> <font color="#804040"><b>$</b></font><font color="#008080">className</font><font color="#6a5acd">(</font><font color="#804040"><b>$</b></font><font color="#008080">arg1</font>, <font color="#804040"><b>$</b></font><font color="#008080">arg2</font><font color="#6a5acd">)</font>;
</pre>
<p>into something like this:</p>
<pre>
<font color="#804040"><b>if</b></font> <font color="#6a5acd">(</font><font color="#008080">version_compare</font><font color="#6a5acd">(</font>TYPO3_version,'<font color="#ff00ff">4.3</font>','<font color="#ff00ff">&amp;gt;</font>'<font color="#6a5acd">))</font> <font color="#6a5acd">{</font>
  <font color="#804040"><b>$</b></font><font color="#008080">object</font> <font color="#804040"><b>=</b></font> t3lib_div<font color="#804040"><b>::</b></font>makeInstance<font color="#6a5acd">(</font>'<font color="#ff00ff">tx_myext_class</font>', <font color="#804040"><b>$</b></font><font color="#008080">arg1</font>, <font color="#804040"><b>$</b></font><font color="#008080">arg2</font><font color="#6a5acd">)</font>;
<font color="#6a5acd">}</font> <font color="#804040"><b>else</b></font> <font color="#6a5acd">{</font>
  <font color="#804040"><b>$</b></font><font color="#008080">className</font> <font color="#804040"><b>=</b></font> t3lib_div<font color="#804040"><b>::</b></font>makeInstanceClassName<font color="#6a5acd">(</font>'<font color="#ff00ff">tx_myext_class</font>'<font color="#6a5acd">)</font>;
  <font color="#804040"><b>$</b></font><font color="#008080">object</font> <font color="#804040"><b>=</b></font> <font color="#a020f0">new</font> <font color="#804040"><b>$</b></font><font color="#008080">className</font><font color="#6a5acd">(</font><font color="#804040"><b>$</b></font><font color="#008080">arg1</font>, <font color="#804040"><b>$</b></font><font color="#008080">arg2</font><font color="#6a5acd">)</font>;
<font color="#6a5acd">}</font>
</pre>
<p>This way you make sure that the deprecation.log doesn&#8217;t fill up and you can still use this extension for older TYPO3 versions.</p>
<p>Cheers,<br />
Tolleiv</p>
]]></content:encoded>
	</item>
</channel>
</rss>
