| version 1.11, 2002/12/31 00:12:24 |
version 1.12, 2003/01/01 13:44:27 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.10 2002/12/14 04:37:56 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.11 2002/12/31 00:12:24 nepto Exp $ --> |
| |
|
| <!-- Categories: |
<!-- Categories: |
| |
|
| Line 377 values using <varname>['filters']</>, an |
|
| Line 377 values using <varname>['filters']</>, an |
|
| |
|
| Additional values to table lookup could be stored in |
Additional values to table lookup could be stored in |
| <varname>['values2']</varname> array. The main difference between simple |
<varname>['values2']</varname> array. The main difference between simple |
| <varname>['values']</varname> usage is, that array keys will be stored into DB |
<varname>['values']</varname> usage is, that array keys will be stored into |
| and array values will be printed out in input section boxes. This is especially |
database and array values will be printed out in input section boxes. This is |
| useful for MySQL enumerations when you do not want to print out enumeration |
especially useful for MySQL enumerations when you do not want to print out |
| keys, but rather some more user-friendly texts. See example: |
enumeration keys, but rather some more user-friendly texts. See example: |
| |
|
| <example><title>Input restriction using additional values</title> |
<example><title>Input restriction using additional values</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| $opts['fdd']['col_name']['values2'] = array( |
$opts['fdd']['col_name']['values2'] = array( |
| 'hidden' => 'Hidden Article', |
'displayed' => 'Displayed Article', |
| 'showed' => 'Showed Article', |
'hidden' => 'Hidden Article', |
| 'disabled' => 'Disabled Article', |
'disabled' => 'Disabled Article', |
| 'deleted' => 'Deleted Article' |
'deleted' => 'Deleted Article' |
| ); |
); |
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| Line 396 $opts['fdd']['col_name']['values2'] = ar |
|
| Line 396 $opts['fdd']['col_name']['values2'] = ar |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| In the example above, keywords 'hidden', 'showed', 'disabled' and 'deleted' will be |
In the example above, keywords 'displayed', 'hidden', 'disabled' and 'deleted' |
| stored in database, but user-friendly expressions will be showed in select box |
will be stored in database, but user-friendly expressions will appear in |
| for user. Usage of <varname>['values2']</> can be combined with |
select box for user. Usage of <varname>['values2']</> can be combined with |
| <varname>['values']</> usage. |
<varname>['values']</> usage. |
| |
|
| </para> |
</para> |