<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://atk-framework.com/index.php?action=history&amp;feed=atom&amp;title=AtkMultiSelectAttribute</id>
	<title>AtkMultiSelectAttribute - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://atk-framework.com/index.php?action=history&amp;feed=atom&amp;title=AtkMultiSelectAttribute"/>
	<link rel="alternate" type="text/html" href="https://atk-framework.com/index.php?title=AtkMultiSelectAttribute&amp;action=history"/>
	<updated>2026-09-20T21:25:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://atk-framework.com/index.php?title=AtkMultiSelectAttribute&amp;diff=18025&amp;oldid=prev</id>
		<title>Bloodmusic: New page: {{attribute}}  The &#039;&#039;&#039;atkMultiSelectAttribute&#039;&#039;&#039; is used for list several options in a select with the oportunity to select multiple options. In database it can be a varchar.  == Params ==...</title>
		<link rel="alternate" type="text/html" href="https://atk-framework.com/index.php?title=AtkMultiSelectAttribute&amp;diff=18025&amp;oldid=prev"/>
		<updated>2009-06-17T11:29:39Z</updated>

		<summary type="html">&lt;p&gt;New page: {{attribute}}  The &amp;#039;&amp;#039;&amp;#039;atkMultiSelectAttribute&amp;#039;&amp;#039;&amp;#039; is used for list several options in a select with the oportunity to select multiple options. In database it can be a varchar.  == Params ==...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{attribute}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;atkMultiSelectAttribute&amp;#039;&amp;#039;&amp;#039; is used for list several options in a select with the oportunity to select multiple options. In database it can be a varchar.&lt;br /&gt;
&lt;br /&gt;
== Params ==&lt;br /&gt;
The constructor of the atkMultiSelectAttribute has the following params:&lt;br /&gt;
 atkMultiSelectAttribute (mixed $name, mixed $optionArray, [mixed $valueArray = &amp;quot;&amp;quot;], [mixed $flags = 0])&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;String&amp;#039;&amp;#039;            &lt;br /&gt;
Name of the attribute (the same as the fieldname used in the database)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;optionArray&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Array&amp;#039;&amp;#039;&lt;br /&gt;
Array with options to be show. If &amp;#039;&amp;#039;&amp;#039;valueArray&amp;#039;&amp;#039;&amp;#039; is not passed, or null, it will be save at database too.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;valueArray&amp;#039;&amp;#039;&amp;#039; (optional) &amp;#039;&amp;#039;Array&amp;#039;&amp;#039;&lt;br /&gt;
Array with values to be save to database. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;flags&amp;#039;&amp;#039;&amp;#039; (optional) &amp;#039;&amp;#039;Integer&amp;#039;&amp;#039;             &lt;br /&gt;
Flags for the attribute. For more information about flags, please checkout the [[flags]] section.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
(in a [[node]] constructor):&lt;br /&gt;
&lt;br /&gt;
  $this-&amp;gt;add(new atkMultiSelectAttribute(&amp;quot;fruit&amp;quot;, array(&amp;quot;orange&amp;quot;, &amp;quot;lemon&amp;quot;, &amp;quot;grape&amp;quot;));&lt;br /&gt;
Adds a field &amp;#039;&amp;#039;fruit&amp;#039;&amp;#039; to the node. In the admin this will be displayed as select with &amp;quot;orange&amp;quot;, &amp;quot;lemon&amp;quot;, &amp;quot;grape&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 $this-&amp;gt;add(new atkMultiSelectAttribute(&amp;quot;fruit&amp;quot;, array(&amp;quot;orange&amp;quot;, &amp;quot;lemon&amp;quot;, &amp;quot;grape&amp;quot;), array(1,2,3), AF_LIST_OBLIGATORY_NULL_ITEM);&lt;br /&gt;
The same, but instead of save fruit names to database, it will save 1, 2 or 3. Also, there will be a default option that will save null to database.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[ATK_Attribute_Flags#atkListAttribute|atkListAttribute specific attribute flags]]&lt;br /&gt;
[[Category:Attributes]]&lt;/div&gt;</summary>
		<author><name>Bloodmusic</name></author>
	</entry>
</feed>