| verzia 1.8, 2002/12/12 21:47:25 |
verzia 1.9, 2002/12/13 02:55:15 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.7 2002/12/12 14:27:54 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.8 2002/12/12 21:47:25 nepto Exp $ --> |
| |
|
| <!-- Categories: |
<!-- Categories: |
| |
|
| Riadok 42 $opts['fdd']['topic'] = array( |
|
| Riadok 42 $opts['fdd']['topic'] = array( |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| |
<para> |
| |
|
| |
Because so many questions related to <acronym>PHP</> programming language |
| |
semantics and basis are often asked, please point on the following explanation |
| |
of "two" ways of possible field options initialization. If you are enough |
| |
experienced and familiar with <acronym>PHP</>, feel free to skip to the next |
| |
section. |
| |
|
| |
</para> |
| |
<para> |
| |
|
| |
As it was mentioned, there are two ways how to initialize array in |
| |
<acronym>PHP</>. |
| |
|
| |
<!-- |
| |
Well, I should find more clever way how to highlight code below |
| |
not using <varname> for whole code blocks. Norman will surely kick me, |
| |
if he would see this. :P |
| |
--> |
| |
|
| |
<orderedlist spacing=compact> |
| |
<listitem><simpara>Direct one using |
| |
<varname>$opts['fdd']['col_name'] = array('option' => 'value')</> |
| |
which is showed above.</></> |
| |
<listitem><simpara>Postinitialization one using |
| |
<varname>$opts['fdd']['col_name']['option'] = 'value'</> |
| |
which is used in many examples in this documentation.</></> |
| |
</orderedlist> |
| |
|
| |
</para> |
| |
<para> |
| |
|
| |
You may realize, that it is the same if you will change or add option into basic |
| |
field definition (see example <function>array()</> and notes in first point |
| |
above) or you will add separated option initialization after this field |
| |
definition as it is described in second case. |
| |
|
| |
</para> |
| |
|
| <!-- DEPRECATED |
<!-- DEPRECATED |
| |
|