\TransvisionBugzilla

Bugzilla class

This class is for all the methods we need to work with Bugzilla

Summary

Methods
Properties
Constants
getURLencodedBugzillaLocale()
reportErrorLink()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$URLencodedBugzillaLocale
N/A

Properties

$URLencodedBugzillaLocale

$URLencodedBugzillaLocale : array

Store in this variable the URL encoded values for this locale

Type

array

Methods

getURLencodedBugzillaLocale()

getURLencodedBugzillaLocale(string  $locale,   $type) : string

Return URL encoded component name.

Parameters

string $locale

Locale code for the wrong translation such as zh-TW

$type

Returns

string —

Encoded URL for the component name

reportErrorLink()

reportErrorLink(string  $locale, string  $entity, string  $source_string, string  $target_string, string  $repo, string  $entity_link) : string

Generate a prefilled url with the right GET parameters to report a string error for a locale in Bugzilla

Parameters

string $locale

Locale code for the wrong translation such as zh-TW

string $entity

Entity reference in Transvision to the string

string $source_string

Text of the original string

string $target_string

Text of the translation

string $repo

Repository where the string is located

string $entity_link

Transvision link for the entity

Returns

string —

URL to use in a link that will prefill the report