ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:structure:addindexitemobject

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
v5:dictionary:structure:addindexitemobject [2016/04/09 19:04] – created mnewnhamv5:dictionary:structure:addindexitemobject [2016/04/09 19:07] mnewnham
Line 21: Line 21:
 ==== $columnName ==== ==== $columnName ====
 The column name must be the name of a previously defined [[v5:dictionary:structure:addcolumnobject|column]] object. The column name must be the name of a previously defined [[v5:dictionary:structure:addcolumnobject|column]] object.
-==== Platform ==== +==== $platform ==== 
-The platform parameter can be any parameter recognized by the [[v5:dictionary:structure:platform|Platform]] keyword.+The platform parameter can be any parameter recognized by the [[v5:dictionary:structure:platform|Platform]] keyword. If provided, the column would not be added to any platform that did not match the value provided.
  
 ===== Usage ===== ===== Usage =====
-In the following example, a table **//employees//** is to be created. The table has 2 columns, COL1 and COL2 and an index COL1-IDX will be created, holding COL1.+In the following example, a table **//employees//** is to be created. The table has 2 columns, COL1 and COL2 and an index COL1-IDX will be created, holding COL1 and COL2.
  
 <code php> <code php>
Line 36: Line 36:
  
 $i->addIndexItemObject('COL1-IDX','COL1') $i->addIndexItemObject('COL1-IDX','COL1')
 +$i->addIndexItemObject('COL1-IDX','COL2')
 </code> </code>
v5/dictionary/structure/addindexitemobject.txt · Last modified: 2016/04/09 19:15 by mnewnham