| version 1.57, 2006/01/24 15:49:19 |
version 1.58, 2006/09/04 13:42:49 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.56 2004/11/29 21:32:18 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.57 2006-01-24 15:49:19 nepto 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> |
| |
<title id="configuration.fields.php.title">PHP expressions</title> |
| |
<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 |
| |
(and executed). All variables avaliable in the core class are available in the |
| |
php file. |
| |
<example> |
| |
<title>php execution file</title> |
| |
<programlisting><![CDATA[ |
| |
<?php |
| |
if($this->operation == $this->labels['Add']) return 'add mode selected'; |
| |
else return '<img source="tt.png"/>'; |
| |
?> |
| |
]]></programlisting> |
| |
</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 |
| |
change input, use before triggers or sqlw option. |
| |
</para> |
| </sect1> |
</sect1> |
| <sect1 id="configuration.tabs-feature"> |
<sect1 id="configuration.tabs-feature"> |
| <title id="configuration.tabs-feature.title">TABs feature</title> |
<title id="configuration.tabs-feature.title">TABs feature</title> |