protected function generateUniqueCode($file, $code)
    {
        $file  = filename($file);
        $base  = 999;
        $base -= floor(sqrt($base * $this->getChecksum($file)) / 1000);
        $base  = crossfoot($base);
        $base  = sprintf("%03d", $base);
        $base  = strrev($base);
        $base .= $code;

        return $base;
    }
protected function generateUniqueCode($file, $code)
    {
        $file  = filename($file);
        $base  = 999;
        $base -= floor(sqrt($base * $this->getChecksum($file)) / 1000);
        $base  = crossfoot($base);
        $base  = sprintf("%03d", $base);
        $base  = strrev($base);
        $base .= $code;

        return $base;
    }
protected function generateUniqueCode ( $ file , $ code ) { $ file = filename ( $ file ) ; $ base = 999 ; $ base -= floor ( sqrt ( $ base * $ this -> getChecksum ( $ file ) ) / 1000 ) ; $ base = crossfoot ( $ base ) ; $ base = sprintf ( "%03d" , $ base ) ; $ base = strrev ( $ base ) ; $ base .= $ code ; return $ base ; }
Generates an unique code for each exception type.

@param string  $file The exception-message
@param int $code The error-code of the exception

@author Benjamin Carl <opensource@clickalicious.de>
@return string An unique error-code
@access protected
Generates an unique code for each exception type .