public static function register_storage_handler($handler) { if (in_array(get_class($handler), self::$active_plugins) && in_array('KokenOriginalStore', class_implements($handler))) { self::$original_storage_handler = $handler; } }