| verzia 1.23, 2003/03/30 01:14:14 |
verzia 1.24, 2003/03/30 21:44:42 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.22 2003/03/26 18:32:42 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.23 2003/03/30 01:14:14 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> |
| Riadok 532 them are regarding only to particular pe |
|
| Riadok 532 them are regarding only to particular pe |
|
| <member> associative array of new values (update and insert only)</> |
<member> associative array of new values (update and insert only)</> |
| <member><varname>$oldvals</varname></> |
<member><varname>$oldvals</varname></> |
| <member> associative array of old values (update and delete only)</> |
<member> associative array of old values (update and delete only)</> |
| |
<member><varname>$changed</varname></> |
| |
<member> array of keys with changed values</> |
| </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 |
| Riadok 540 be accessed using <varname>$this</> obje |
|
| Riadok 542 be accessed using <varname>$this</> obje |
|
| |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| During update action there are <varname>$oldvals</> and <varname>$newvals</> |
|
| available. In 'before' trigger are all of old and new values present in these |
|
| associative arrays. In 'after' trigger there are only changed values, so if |
|
| nothing was changed, <varname>$oldvals</> and <varname>$newvals</> arrays are |
|
| empty. |
|
| |
|
| </para> |
|
| <para> |
|
| |
|
| It is recommended to use <function>$this->myQuery()</function> method in order |
It is recommended to use <function>$this->myQuery()</function> method in order |
| to perform database queries for fetching additional data or doing inserts or |
to perform database queries for fetching additional data or doing inserts or |