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.general.sgml between version 1.47 and 1.48

version 1.47, 2004/12/08 16:21:17 version 1.48, 2004/12/13 21:12:54
Line 1 
Line 1 
 <!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.46 2004/11/20 02:24:34 nepto Exp $ -->  <!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.47 2004/12/08 16:21:17 nepto Exp $ -->
   
 <sect1 id="configuration.mysql-options">  <sect1 id="configuration.mysql-options">
 <title id="configuration.mysql-options.title">Database connection</title>  <title id="configuration.mysql-options.title">Database connection</title>
Line 521  and without the need to enter them manua
Line 521  and without the need to enter them manua
 <bridgehead>Triggers overview</bridgehead>  <bridgehead>Triggers overview</bridgehead>
 <para>  <para>
   
 Triggers are files that are included via <function>include()</function>  Triggers provide advanced users with the ability to write their own PHP
 statement. SQL triggers are included before or after insert, update, or delete of  scripts for such things as validating user input, and to have their code
 record. FORM triggers are included before displaying the form that will allow  executed at the appropriate time. Triggers are files that are included via
 the corresponding operation, or after the user canceled this form.  an&nbsp;<function>include()</function> statement and conditionally executed by
   <filename>phpMyEdit.class.php</filename>. SQL triggers are included before or
   after insert, update, or delete of record. FORM triggers are included before
   displaying the form that will allow the corresponding operation, or after the
   user canceled this form.
   
 </para>  </para>
 <para>  <para>
   
 <itemizedlist spacing="compact">  <itemizedlist spacing="compact">
 <listitem><simpara>View form is related to 'select' operation.</simpara></listitem>  <listitem><simpara>View form is related to the 'select' operation.</simpara></listitem>
 <listitem><simpara>Add and Copy forms are related to 'insert' operation</simpara></listitem>  <listitem><simpara>Add and Copy forms are related to the 'insert' operation</simpara></listitem>
 <listitem><simpara>Edit form is related to 'update' operation.</simpara></listitem>  <listitem><simpara>Edit form is related to the 'update' operation.</simpara></listitem>
 <listitem><simpara>Delete form is related to 'delete' operation.</simpara></listitem>  <listitem><simpara>Delete form is related to the 'delete' operation.</simpara></listitem>
 </itemizedlist>  </itemizedlist>
   
 </para>  </para>
Line 679  operation described. All involved trigge
Line 683  operation described. All involved trigge
 <listitem><simpara>user starts from the list page</simpara></listitem>  <listitem><simpara>user starts from the list page</simpara></listitem>
 <listitem><simpara>user asks to view a record</simpara></listitem>  <listitem><simpara>user asks to view a record</simpara></listitem>
 <listitem><simpara><varname>['select']['pre']</varname> trigger is included (if defined)</simpara></listitem>  <listitem><simpara><varname>['select']['pre']</varname> trigger is included (if defined)</simpara></listitem>
 <listitem><simpara>if <constant>true</constant> is returned than continue, else go back to list page</simpara></listitem>  <listitem><simpara>if <constant>true</constant> is returned then continue, else go back to list page</simpara></listitem>
   
 <listitem><simpara>user is now in the view page</simpara></listitem>  <listitem><simpara>user is now in the view page</simpara></listitem>
 <listitem><simpara>user asks to edit the record</simpara></listitem>  <listitem><simpara>user asks to edit the record</simpara></listitem>
 <listitem><simpara><varname>['update']['pre']</varname> trigger is included (if defined)</simpara></listitem>  <listitem><simpara><varname>['update']['pre']</varname> trigger is included (if defined)</simpara></listitem>
 <listitem><simpara>if <constant>true</constant> is returned than continue, else go back to view page</simpara></listitem>  <listitem><simpara>if <constant>true</constant> is returned then continue, else go back to view page</simpara></listitem>
   
 <listitem><simpara>user is now in the edit page</simpara></listitem>  <listitem><simpara>user is now in the edit page</simpara></listitem>
 <listitem><simpara>user makes some changes and asks to apply (save and continue)</simpara></listitem>  <listitem><simpara>user makes some changes and asks to apply (save and continue)</simpara></listitem>
 <listitem><simpara><varname>['update']['before']</varname> trigger is included (if defined)</simpara></listitem>  <listitem><simpara><varname>['update']['before']</varname> trigger is included (if defined)</simpara></listitem>
 <listitem><simpara>if <constant>true</constant> is returned than continue, else, back to list without updating</simpara></listitem>  <listitem><simpara>if <constant>true</constant> is returned then continue, else, back to list without updating</simpara></listitem>
 <listitem><simpara>record is updated in the database</simpara></listitem>  <listitem><simpara>record is updated in the database</simpara></listitem>
 <listitem><simpara><varname>['update']['after']</varname> trigger is included (if defined)</simpara></listitem>  <listitem><simpara><varname>['update']['after']</varname> trigger is included (if defined)</simpara></listitem>
 <listitem><simpara><varname>['update']['pre']</varname> trigger is included (if defined)</simpara></listitem>  <listitem><simpara><varname>['update']['pre']</varname> trigger is included (if defined)</simpara></listitem>
 <listitem><simpara>if <constant>true</constant> is returned than continue, else go back to view page</simpara></listitem>  <listitem><simpara>if <constant>true</constant> is returned then continue, else go back to view page</simpara></listitem>
   
 <listitem><simpara>user is now back to the edit page</simpara></listitem>  <listitem><simpara>user is now back to the edit page</simpara></listitem>
 <listitem><simpara>user makes some other changes but asks to cancel them</simpara></listitem>  <listitem><simpara>user makes some other changes but asks to cancel them</simpara></listitem>
Line 731  them affect only a particular action.
Line 735  them affect only a particular action.
 </simplelist>  </simplelist>
   
 There are also other variables available. For example every class property can  There are also other variables available. For example every class property can
 be accessed using <varname>$this</> object reference. All variables occurs in  be accessed using <varname>$this</> object reference. All variables occur in
 'before' triggers as well as in 'after' triggers.  'before' triggers as well as in 'after' triggers.
 Only class properties occurs in 'pre' and 'cancel' triggers currently.  Only class properties occurs in 'pre' and 'cancel' triggers currently.
   

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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