api/Foundation/Fids/FidHelper.php
public static function expandFid($compressedFid)
  {
    // replace `:` with `-`
    $fid = str_replace('-', ':', $compressedFid);
    // add 2010 from timestamp
    $fid = preg_replace_callback(
      '/:([0-9a-z]{5,6}):/',
      function ($v) {
        return ':' . base_convert($v[1], 36, 10) . ':';
      },
      $fid
    );
    // add FID: prefix
    return 'FID:' . $fid;
  }
public static function expandFid($compressedFid)
  {
    // replace `:` with `-`
    $fid = str_replace('-', ':', $compressedFid);
    // add 2010 from timestamp
    $fid = preg_replace_callback(
      '/:([0-9a-z]{5,6}):/',
      function ($v) {
        return ':' . base_convert($v[1], 36, 10) . ':';
      },
      $fid
    );
    // add FID: prefix
    return 'FID:' . $fid;
  }
public static function expandFid ( $ compressedFid ) { // replace `:` with `-` $ fid = str_replace ( '-' , ':' , $ compressedFid ) ; // add 2010 from timestamp $ fid = preg_replace_callback ( '/:([0-9a-z]{5,6}):/' , function ( $ v ) { return ':' . base_convert ( $ v [ 1 ] , 36 , 10 ) . ':' ; } , $ fid ) ; // add FID: prefix return 'FID:' . $ fid ; }
Decompress a compressed fid into its full version

@param $compressedFid

@return string
Decompress a compressed fid into its full version