| version 1.58, 2006/09/04 13:42:49 |
version 1.59, 2006/09/04 16:05:27 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.57 2006-01-24 15:49:19 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.58 2006-09-04 13:42:49 michal Exp $ --> |
| |
|
| <sect1 id="configuration.fields-overview"> |
<sect1 id="configuration.fields-overview"> |
| <title id="configuration.fields-overview.title">Definition overview</title> |
<title id="configuration.fields-overview.title">Definition overview</title> |
| Line 964 $opts['fdd']['col_name']['sqlw'] = 'IF(c |
|
| Line 964 $opts['fdd']['col_name']['sqlw'] = 'IF(c |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| |
</sect1> |
| |
<sect1 id="configuration.fields.php"> |
| <title id="configuration.fields.php.title">PHP expressions</title> |
<title id="configuration.fields.php.title">PHP expressions</title> |
| <para> |
<para> |
| PHP feature allows user to display any html code in place of a value. Behavior |
|
| is the same as in triggers. If php is set, a file of that name is included |
PHP feature allows user to display any HTML code in place of a value. Behavior |
| (and executed). All variables avaliable in the core class are available in the |
is the same as in triggers. |
| php file. |
|
| |
</para> |
| |
<para> |
| |
|
| |
If PHP option is set, a file of that name is included (and executed). All |
| |
variables avaliable in the core class are available in the included PHP file. |
| |
|
| <example> |
<example> |
| <title>php execution file</title> |
<title>PHP execution file</title> |
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| <?php |
<?php |
| if($this->operation == $this->labels['Add']) return 'add mode selected'; |
if ($this->operation == $this->labels['Add']) { |
| else return '<img source="tt.png"/>'; |
return 'add mode selected'; |
| |
} else { |
| |
return '<img src="tt.png" alt="TT">'; |
| |
} |
| ?> |
?> |
| ]]></programlisting> |
]]></programlisting> |
| </example> |
</example> |
| This option is indended for advanced usage. Together with pre and before |
|
| triggers, it allows tweaking the core class without the need to hack it. To |
This option is indended for advanced usage. Together with pre and before <link |
| change input, use before triggers or sqlw option. |
linkend="configuration.triggers">triggers</link>, it allows tweaking the |
| |
core class without the need to hack it. To change input, use before triggers |
| |
or <varname>['sqlw']</varname> option. |
| |
|
| </para> |
</para> |
| </sect1> |
</sect1> |
| <sect1 id="configuration.tabs-feature"> |
<sect1 id="configuration.tabs-feature"> |