/** * Main WebMan Amplifier Instance * * Please load it only one time. * * Insures that only one instance of WebMan Amplifier exists in memory * at any one time. * Also prevents needing to define globals all over the place. * * @since 1.0 * @version 1.0.9.15 * @access public * * @return The one true WebMan Amplifier */ public static function instance() { //Store the instance locally to avoid private static replication static $instance = null; //Only run these methods if they haven't been ran previously if (null === $instance) { $instance = new WM_Amplifier(); $instance->setup_actions(); $instance->setup_features(); } //Always return the instance return $instance; }