As part of the work to implement chart displays for slog ( admin ) and wp-top12 ( front end using pompey-chart or similar ) we need to refactor the class-*.php files as shared libraries.
Requirements
slog and wp-top12 to use the same logic to display charts
some functionality moved from wp-top12 to slog
some functionality and the working directory forked from wp-top12 to a new repository - wp-top12-bloat
File
Converted?
class-csv-merger.php
downloads, merger, vt-stats, vt-top12
class-group-summary.php
vt-top12
class-IP-to-host.php
not used?
class-object-grouper.php
downloads, vt-stats, vt-top12
class-object-sorter-natural.php
not used?
class-object-sorter.php
downloads, vt-stats, vt-top12
class-object.php
downloads, vt-stats, vt-top12
class-plugin-extractor.php
scrape-blocks - Don't change?
class-vt-row-basic.php
vt-stats
class-vt-row.php
vt-top12
class-vt-stats-top12.php
vt-top12
class-vt-stats.php
vt-stats vt-top12
class-wp-org-downloads.php
downloads, myplugins
class-wp-org-plugins.php
wp-top12 - Don't change
class-wp-org-v12-downloads.php
blocker & wp-top12 - Don't change
Solution
[x] Some of the files may not need to be converted to shared files.
[x] A number of the routines will have to be updated to reflect this change.
[ ] I don't think it's necessary to add deprecation logic
[x] Initially change the logic to load the files from the libs folder
[ ] Then use oik_require_lib() to load the shared libraries regardless of the plugin.
As part of the work to implement chart displays for slog ( admin ) and wp-top12 ( front end using pompey-chart or similar ) we need to refactor the class-*.php files as shared libraries.
Requirements
Solution
libs
folderoik_require_lib()
to load the shared libraries regardless of the plugin.