Subversion Repositories phpLibraryV2

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php
2
   require_once( "DBQuery.class.php" );
3
 
4
   class DBAudit {
5
      public $databaseTableName;
6
      public $databaseColumnField;
7
 
8
      public function __construct( $databaseTableName = '' ) {
9
         $this->databaseTableName = $databaseTableName;
10
      }
11
 
12
      public function log( $string ) {
13
         if ( $databaseTableName ) {
14
            $q = new DBQuery( "insert into $databaseTableName ( $databaseColumnField ) values (" . new DBColumn( 'dummy' )->makeSafeSQLValue( $string ) , ')')->run();
15
         }
16
      }
17
   }
18
?>