Share more code between ManifestGenerator and /api/triggerables
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Mar 2017 20:56:36 +0000 (20:56 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Mar 2017 20:56:36 +0000 (20:56 +0000)
commit34f55005e8564fd9b4934ef7265b302b6497b4a8
tree356cabdf9d35362e21531d060c9aeebb838ed11a
parentb9ddd3fe7750053c780b6c6474604ee46a9bf72d
Share more code between ManifestGenerator and /api/triggerables
https://bugs.webkit.org/show_bug.cgi?id=169993

Reviewed by Chris Dumez.

Shared the code to fetch the list of triggerables from the database between ManifestGenerator
and /api/triggerables.

* public/api/triggerables.php:
(main):
* public/include/manifest-generator.php:
(ManifestGenerator::fetch_triggerables): Extracted as a static function. Also include the ID
in the triggerable data.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@214315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/api/triggerables.php
Websites/perf.webkit.org/public/include/manifest-generator.php