Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for phpMyEdit/doc/sgml/configuration.fields.sgml between version 1.58 and 1.59

version 1.58, 2006/09/04 13:42:49 version 1.59, 2006/09/04 16:05:27
Line 1 
Line 1 
 <!-- $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">

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top