/** * Get singleton instance * * @return MPP_DB_Logger */ public static function get_instance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * * @return MPP_Logger */ function mpp_get_logger() { if (!class_exists('MPP_DB_Logger')) { mediapress()->load_logger(); } return MPP_DB_Logger::get_instance(); }