<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Help with Xtemplate functions</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 02 May 2026 05:06:54 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Currently it isn't. It can be added, but it will cost us some lines of code and performance. Is it really necessary or you can make a wrapper function? Also consider that doThis() method in the above example isn't static, so you can't call it without object context.</p>
]]></description>
			<pubDate>Fri, 03 Aug 2012 19:18:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7030&d=0#post35067]]></link>
		</item>
		<item>
			<title>Dyllon</title>
			<description><![CDATA[<p>
	I'm aware that php functions can be called through Xtemplate simply by using {PHP|function_name('param1','param etc')} however I'm curious if it supports functions through classes. For example:</p>
<pre class="brush:php;">
class Example {
	
	function doThis($param1, $param2)
	{
		// do this function
	}

}</pre>
<p>
	Is it possible to create a tag that uses the <strong>Example</strong> class, and perform the <strong>doThis</strong> function?</p>
<p>
	 </p>
]]></description>
			<pubDate>Fri, 03 Aug 2012 17:56:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7030&d=0#post35066]]></link>
		</item>
	</channel>
</rss>