public static function getFilename($bucket, $object) {
    if (self::validateBucketName($bucket) === false) {
      throw new \InvalidArgumentException(
          sprintf('Invalid cloud storage bucket name \'%s\'',
                  htmlspecialchars($bucket)));
    }

    if (self::validateObjectName($object) === false) {
      throw new \InvalidArgumentException(
          sprintf('Invalid cloud storage object name \'%s\'',
                  htmlspecialchars($object)));
    }

    return sprintf(self::GS_FILENAME_FORMAT, $bucket, $object);
  }
public static function getFilename($bucket, $object) {
    if (self::validateBucketName($bucket) === false) {
      throw new \InvalidArgumentException(
          sprintf('Invalid cloud storage bucket name \'%s\'',
                  htmlspecialchars($bucket)));
    }

    if (self::validateObjectName($object) === false) {
      throw new \InvalidArgumentException(
          sprintf('Invalid cloud storage object name \'%s\'',
                  htmlspecialchars($object)));
    }

    return sprintf(self::GS_FILENAME_FORMAT, $bucket, $object);
  }
public static function getFilename ( $ bucket , $ object ) { if ( self :: validateBucketName ( $ bucket ) === false ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid cloud storage bucket name \'%s\'' , htmlspecialchars ( $ bucket ) ) ) ; } if ( self :: validateObjectName ( $ object ) === false ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid cloud storage object name \'%s\'' , htmlspecialchars ( $ object ) ) ) ; } return sprintf ( self :: GS_FILENAME_FORMAT , $ bucket , $ object ) ; }
Get the filename of a Google Cloud Storage object.

@param string $bucket The Google Cloud Storage bucket name.
@param string $object The Google Cloud Stroage object name.

@return string The filename in the format gs://bucket_name/object_name.

@throws \InvalidArgumentException if bucket or object name is invalid.
Get the filename of a Google Cloud Storage object .