| version 1.44, 2004/02/09 12:29:59 |
version 1.45, 2004/04/01 10:40:00 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.43 2004/01/21 16:26:56 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.44 2004/02/09 12:29:59 nepto Exp $ --> |
| |
|
| <!-- Categories: |
<!-- Categories: |
| |
|
| Line 471 select box for user. Usage of <varname>[ |
|
| Line 471 select box for user. Usage of <varname>[ |
|
| <varname>['values']</> usage. |
<varname>['values']</> usage. |
| |
|
| </para> |
</para> |
| |
<bridgehead>Advanced joining</bridgehead> |
| |
<para> |
| |
|
| |
Sometimes you want to restrict table joining on the output. This is important |
| |
in case where <varname>['values']['column']</varname> is not unique in |
| |
<varname>['values']['table']</varname>. For this purpose, you can use |
| |
<varname>$opts['fdd']['col_name']['values']['join']</> option. |
| |
|
| |
</para> |
| |
<para> |
| |
|
| |
These variables are available in this option. |
| |
|
| |
<simplelist type="horiz" columns="2"> |
| |
<member> <varname>$main_table</varname></member> |
| |
<member> -- alias of the main table</member> |
| |
<member> <varname>$main_column</varname></member> |
| |
<member> -- join column in the main table</member> |
| |
<member> <varname>$join_table</varname></member> |
| |
<member> -- alias of the values table</member> |
| |
<member> <varname>$join_column</varname></member> |
| |
<member> -- join column in the values table</member> |
| |
<member> <varname>$join_description</varname></member> |
| |
<member> -- description column in the values table</member> |
| |
</simplelist> |
| |
|
| |
</para> |
| |
<para> |
| |
|
| |
&name; will create by default |
| |
<varname>$main_table.$main_column = $join_table.$join_column</varname> |
| |
join, what is sufficient the most cases. However you may extend it with |
| |
additional conditions as well. |
| |
|
| |
<example><title>Table lookup with advanced joining</title> |
| |
<programlisting><![CDATA[ |
| |
$opts['fdd']['col_name']['values']['join'] |
| |
= '$main_table.$main_column = $join_table.$join_column AND ' |
| |
. '$main_table.another_col = $join_table.another_col' |
| |
]]></programlisting> |
| |
</example> |
| |
</para> |
| </sect1> |
</sect1> |
| |
|
| <sect1 id="configuration.output-control"> |
<sect1 id="configuration.output-control"> |