Gpf_Log_Logger::isLoggerInsert PHP Méthode

isLoggerInsert() public static méthode

public static isLoggerInsert ( $sqlString )
        public static function isLoggerInsert($sqlString)
        {
            return strpos($sqlString, 'INSERT INTO ' . Gpf_Db_Table_Logs::getName()) !== false;
        }

Usage Example

 function __construct($sqlString, $message, $code)
 {
     $this->isLoggerException = Gpf_Log_Logger::isLoggerInsert($sqlString);
     $this->_code = $code;
     parent::__construct("ERROR: " . $message);
 }