<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://atk-framework.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=213.25.55.153</id>
	<title>NusaATK - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://atk-framework.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=213.25.55.153"/>
	<link rel="alternate" type="text/html" href="https://atk-framework.com/Special:Contributions/213.25.55.153"/>
	<updated>2026-10-27T06:21:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://atk-framework.com/index.php?title=ATK_101&amp;diff=1376</id>
		<title>ATK 101</title>
		<link rel="alternate" type="text/html" href="https://atk-framework.com/index.php?title=ATK_101&amp;diff=1376"/>
		<updated>2006-04-17T10:08:30Z</updated>

		<summary type="html">&lt;p&gt;213.25.55.153: /* General Documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General Documentation ==&lt;br /&gt;
&lt;br /&gt;
[[InstallationGuide]]&lt;br /&gt;
&lt;br /&gt;
[[atkMetaNode]]&lt;br /&gt;
&lt;br /&gt;
[[System Requirements]]&lt;br /&gt;
&lt;br /&gt;
[[Localization]]&lt;br /&gt;
&lt;br /&gt;
== Modules ==&lt;br /&gt;
&lt;br /&gt;
An ATK Application consists of one or more modules.&lt;br /&gt;
&lt;br /&gt;
A [[CompleteModuleFile]]&lt;br /&gt;
&lt;br /&gt;
== Nodes ==&lt;br /&gt;
&lt;br /&gt;
A module consists of one or more nodes. ATK knows 3 node types: [[atkNode]], [[atkTreeNode]] and [[atkMetaNode]]&lt;br /&gt;
&lt;br /&gt;
An [[ExampleNode]] file.&lt;br /&gt;
&lt;br /&gt;
[[NodeFlags]]&lt;br /&gt;
&lt;br /&gt;
== Attributes ==&lt;br /&gt;
&lt;br /&gt;
A node is build with attributes.&lt;br /&gt;
&lt;br /&gt;
[[AttributesExplained]]&lt;br /&gt;
&lt;br /&gt;
[[AttributeFlags]]&lt;br /&gt;
&lt;br /&gt;
[[AttributeLevelSecurity]]&lt;br /&gt;
&lt;br /&gt;
== Sessions ==&lt;br /&gt;
&lt;br /&gt;
Application state is remembered in sessions.&lt;br /&gt;
&lt;br /&gt;
[[SessionVariables]]&lt;br /&gt;
&lt;br /&gt;
== Advanced techniques ==&lt;br /&gt;
&lt;br /&gt;
[[Polymorphism]]&lt;br /&gt;
&lt;br /&gt;
== Misc Tips ==&lt;br /&gt;
&lt;br /&gt;
[[OrderingAttributesWithinANode]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[SmartDebug]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Handy features]]&lt;/div&gt;</summary>
		<author><name>213.25.55.153</name></author>
	</entry>
	<entry>
		<id>https://atk-framework.com/index.php?title=Polymorphism&amp;diff=1374</id>
		<title>Polymorphism</title>
		<link rel="alternate" type="text/html" href="https://atk-framework.com/index.php?title=Polymorphism&amp;diff=1374"/>
		<updated>2006-04-09T02:38:45Z</updated>

		<summary type="html">&lt;p&gt;213.25.55.153: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An example of polymorphism is given in a question that was sent to the mailinglist:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; Can I override view/edit action to go to other node? Say I have a node&lt;br /&gt;
&amp;gt; called Main which display part of table Main. Edit and View button&lt;br /&gt;
&amp;gt; should go to certain nodes based on particular attribute&#039;s value in&lt;br /&gt;
&amp;gt; node Main.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The best way to accomplish this is to override the link of the edit icon for a record, and have it link to another node instead of the current one.&lt;br /&gt;
&lt;br /&gt;
Try to add the following to your main node:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function recordActions($record, &amp;amp;$actions, &amp;amp;$mraactions)&lt;br /&gt;
{&lt;br /&gt;
  switch($record[[&amp;quot;type&amp;quot;])&lt;br /&gt;
  {&lt;br /&gt;
    case &amp;quot;fruit&amp;quot;: &lt;br /&gt;
      $actions[[&amp;quot;edit&amp;quot;] = dispatch_url(&amp;quot;yourmodule.fruit&amp;quot;, &amp;quot;edit&amp;quot;);&lt;br /&gt;
      $actions[[&amp;quot;view&amp;quot;] = dispatch_url(&amp;quot;yourmodule.fruit&amp;quot;, &amp;quot;view&amp;quot;);&lt;br /&gt;
      break;&lt;br /&gt;
    case &amp;quot;car&amp;quot;:&lt;br /&gt;
      $actions[[&amp;quot;edit&amp;quot;] = dispatch_url(&amp;quot;yourmodule.car&amp;quot;, &amp;quot;edit&amp;quot;);&lt;br /&gt;
      $actions[[&amp;quot;view&amp;quot;] = dispatch_url(&amp;quot;yourmodule.car&amp;quot;, &amp;quot;view&amp;quot;);&lt;br /&gt;
      break;&lt;br /&gt;
    default:&lt;br /&gt;
      // do nothing, this will result in the default edit links.&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If the &#039;fruit&#039; and &#039;car&#039; nodes are derived from the &#039;main&#039; node (which only contains the fields that are both applicable to cars and fruit), this is a very nice way to achieve polymorphism.&lt;br /&gt;
&lt;br /&gt;
Original Poster: Ivo&lt;/div&gt;</summary>
		<author><name>213.25.55.153</name></author>
	</entry>
</feed>