/**
  * Returns a unique incremented number formatted with $format for $type
  * $format has supported replacements: [NUMBER:n], [YEAR], [YEARSHORT], [MONTH], [DAY], [SITENAME], [SITEURL], [UNIQ_ID] and all $extraStrings and $user_id normal CB replacement strings [cb_fieldname]
  * 
  * @param  string  $type          Type of number ('proformainvoice', 'invoice', later: 'quote')
  * @param  string  $format        Format of number ( e.g. '[NUMBER:1]' )
  * @param  int     $user_id       User id
  * @param  array   $extraStrings  Extra strings
  * @param  int     $increment     Increment for next invoice
  * @return string                 Formatted number (or NULL if it failed for some reason)
  */
 public static function generateUniqueNumber($type, $format, $user_id, $extraStrings, $increment = 1)
 {
     $curNum = new self();
     $numberFormat = $curNum->_internal_generateUniqueNumber($type, $format, $increment);
     return self::replaceCbVars($numberFormat, $user_id, $extraStrings);
 }