| verzia 1.18, 2003/02/07 12:36:25 |
verzia 1.19, 2003/03/17 19:24:05 |
|
|
| <!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.17 2003/02/06 00:09:22 nepto Exp $ --> |
<!-- $Platon: phpMyEdit/doc/sgml/configuration.general.sgml,v 1.18 2003/02/07 12:36:25 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 437 $opts['filters'] = 'Table0.sessions_coun |
|
| Riadok 437 $opts['filters'] = 'Table0.sessions_coun |
|
| <title id="configuration.triggers.title">Triggers</title> |
<title id="configuration.triggers.title">Triggers</title> |
| <para> |
<para> |
| |
|
| Triggers are files that are included (via require) that perform |
Triggers are files that are included via <function>include()</function> |
| actions (before or after) X (inserts, updates, or deletes). |
statement that perform actions before or after insert, update, or delete of |
| |
record. |
| |
|
| </para> |
</para> |
| <para> |
<para> |
| Riadok 487 or scope of the &name; class. |
|
| Riadok 488 or scope of the &name; class. |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| They _must_ return true or false to indicate success or failure. |
Triggers must return true or false to indicate success or failure. |
| |
|
| </para> |
</para> |
| <para> |
<para> |
| Riadok 504 $opts['triggers']['delete']['after'] = |
|
| Riadok 505 $opts['triggers']['delete']['after'] = |
|
| </example> |
</example> |
| |
|
| </para> |
</para> |
| |
<para> |
| |
|
| |
In every trigger file you have available following usable variables. Some from |
| |
them are regarding only to particular performed action. |
| |
|
| |
<simplelist type=horiz columns=2> |
| |
<member><varname>$this</varname></> |
| |
<member> object reference</> |
| |
<member><varname>$this->dbh</varname></> |
| |
<member> initialized MySQL database handle</> |
| |
<member><varname>$vals</varname></> |
| |
<member> associative array of inserted values (insert only; CURENTLY UNIMPLEMENTED)</> |
| |
<member><varname>$this->key</varname></> |
| |
<member> primary key name (update and delete only)</> |
| |
<member><varname>$this->key_type</varname></> |
| |
<member> primary key type (update and delete only)</> |
| |
<member><varname>$this->key_delim</varname></> |
| |
<member> primary key deliminator (update and delete only)</> |
| |
<member><varname>$this->rec</varname></> |
| |
<member> primary key value (update and delete only)</> |
| |
</simplelist> |
| |
|
| |
It is recommended to use <function>$this->myQuery()</function> method in order |
| |
to perform database queries for fetching additional data or doing inserts or |
| |
updates to database tables. |
| |
|
| |
</para> |
| </sect1> |
</sect1> |
| |
|
| <sect1 id="configuration.logging"> |
<sect1 id="configuration.logging"> |
| Riadok 665 it. You will surely do not need it. |
|
| Riadok 693 it. You will surely do not need it. |
|
| |
|
| </para> |
</para> |
| </sect1> |
</sect1> |
| |
|
| |
<sect1 id="configuration.css-classes-policy"> |
| |
<title id="configuration.css-classes-policy.title">CSS classes policy</title> |
| |
<para> |
| |
|
| |
<simplelist type=horiz columns=2> |
| |
<member><varname>$opts['css']['prefix']</></> |
| |
<member> prefix of every &name; CSS class ("pme" by default)</> |
| |
<member><varname>$opts['css']['separator']</></> |
| |
<member> separator between CSS class name elements ("-" (dash) by default)</> |
| |
<member><varname>$opts['css']['separator']</></> |
| |
<member> separator between CSS class name elements ("-" (dash) by default)</> |
| |
<member><varname>$opts['css']['separator']</></> |
| |
<member> how many list table rows should have own number before |
| |
starting counting again from 0 (by default 2; value of -1 means every row has |
| |
its own number)</> |
| |
</simplelist> |
| |
|
| |
</para> |
| |
</sect1> |
| |
|
| <!-- |
<!-- |
| |
|