I’ve finished porting the wp-utils
package to PHP 5.2
and added the tad_Plugin
class while at it.
I’ve not done much more than refactoring previously posted and shared functions (check if a plugin is installed, generate a plugin activation link and generate a plugin installation link) in a class to allow for a more object-oriented approach to it.
$helloDolly = new tad_Plugin('Hello Dolly', 'hello-dolly.php', 'hello-dolly');
if ($helloDolly->isNotInstalled()){
$helloDolly->theInstallationLink();
} else if ($helloDolly->isInstalled()){
$helloDolly->theActivationLink();
}