Closed Bug 394923 Opened 18 years ago Closed 18 years ago

Bugzilla.pm should be subclassable

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

Plugins really need to do things like: package Testopia; use base qw(Bugzilla); But in order to do this, we have to remember to always use $class->method() inside of Bugzilla.pm when calling methods, instead of just doing method().
Attached patch v1Splinter Review
Here, this should do it. I tested this briefly, but it probably needs either a careful code review or a lot of testing to make sure I didn't typo anywhere.
Assignee: general → mkanat
Status: NEW → ASSIGNED
Attachment #279651 - Flags: review?(ghendricks)
Comment on attachment 279651 [details] [diff] [review] v1 Nit: It would be good to include some documentation on examples of how to extend Bugzilla. That can be its own bug though.
Attachment #279651 - Flags: review?(ghendricks) → review+
Flags: approval+
Checking in Bugzilla.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v <-- Bugzilla.pm new revision: 1.60; previous revision: 1.59 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Blocks: 396376
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: