00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 class GauffrLazyLogConfiguration implements ezcBaseConfigurationInitializer
00020 {
00021
00022
00023
00024
00025
00026 public static function configureObject( $log )
00027 {
00028 $db = ezcDbInstance::get(Gauffr::GAUFFR_DB_INSTANCE);
00029 $gauffr = Gauffr::getInstance();
00030 $writer = new ezcLogDatabaseWriter( $db, $gauffr->gauffrTables['GauffrLog'] );
00031 $log->getMapper()->appendRule( new ezcLogFilterRule( new ezcLogFilter, $writer, true ) );
00032 }
00033
00034 }
00035
00036 ?>