<?php

namespace FOP;

class LogFop_exceptions {
  
  

  
  

    // --- Statische Methoden ---
  
  public static function create($data) { 
    
    
    // --- BLOCK: main ---
    
        \FOP\Database::query('INSERT INTO fop_exceptions(timestamp, namespace, class, method, param1, param1value, param2, param2value, param3, param3value, param4, param4value, description, itemid, '.qi('user').') VALUES (
		  ' . time() . ',
        ' . (isset($data['namespace']) ? \FOP\Database::quote($data['namespace']) : 'NULL') . ',
        ' . (isset($data['class']) ? \FOP\Database::quote($data['class']) : 'NULL') . ',
        ' . (isset($data['method']) ? \FOP\Database::quote($data['method']) : 'NULL') . ',
        ' . (isset($data['param1']) ? \FOP\Database::quote($data['param1']) : 'NULL') . (isset($data['param1value']) ? ', ' . \FOP\Database::quote($data['param1value']) : ', NULL') . ',
        ' . (isset($data['param2']) ? \FOP\Database::quote($data['param2']) : 'NULL') . (isset($data['param2value']) ? ', ' . \FOP\Database::quote($data['param2value']) : ', NULL') . ',
        ' . (isset($data['param3']) ? \FOP\Database::quote($data['param3']) : 'NULL') . (isset($data['param3value']) ? ', ' . \FOP\Database::quote($data['param3value']) : ', NULL') . ',
        ' . (isset($data['param4']) ? \FOP\Database::quote($data['param4']) : 'NULL') . (isset($data['param4value']) ? ', ' . \FOP\Database::quote($data['param4value']) : ', NULL') . ',
        ' . (isset($data['description']) ? \FOP\Database::quote($data['description']) : 'NULL') . ',
        ' . (isset($data['itemid']) ? \FOP\Database::quote($data['itemid']) : 'NULL')
         . ', '. \FOP\Database::quote($data['user']) . ')');
    
    
  }


  
  

  
  
}



