Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (46 sloc) 1.04 KB
<?php
/**
* Module Class for the WordPress plugin WordPress HTTPS.
*
* Each Module in the project will extend this base Module class.
* Modules can be treated as an independent plugins. Think of them as sub-plugins.
*
* If you need to unload a module, just place something like this:
* $wordpress_https->unloadModule('Hooks');
* In wordpress-https.php, immediately after:
* $wordpress_https->loadModules();
*
* @author Mike Ems
* @package WordPressHTTPS
*
*/
class WordPressHTTPS_Module {
/**
* Plugin object that this module extends
*
* @var WordPressHTTPS
*/
protected $_plugin;
/**
* Set Plugin
*
* @param WordPressHTTPS_Plugin $plugin
* @return object $this
*/
public function setPlugin( WordPressHTTPS_Plugin $plugin ) {
$this->_plugin = $plugin;
return $this;
}
/**
* Get Plugin
*
* @param none
* @return WordPressHTTPS_Plugin
*/
public function getPlugin() {
if ( ! isset($this->_plugin) ) {
die('Module ' . __CLASS__ . ' missing Plugin dependency.');
}
return $this->_plugin;
}
}
Something went wrong with that request. Please try again.