This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyPlugin{ | |
const | |
OPTION_NAME = 'my_plugin_options', | |
VERSION = '1.0'; | |
protected | |
$options = null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Autoloads the requested class. PSR-0 compliant | |
* | |
* @since 1.0 | |
* @param string $classname The name of the class | |
*/ | |
public static function autoload( $classname ) { | |
$filename = dirname( __FILE__ ) . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |