HEX
Server: Apache/2.4.57 (Unix) OpenSSL/1.1.1k
System: Linux tam.zee-supreme-vps.net 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64
User: adltc (1070)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/adltc/public_html/wp-content/plugins/jet-engine/includes/base/base-external-module.php
<?php
/**
 * Base class for module
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

if ( ! class_exists( 'Jet_Engine_External_Module_Base' ) ) {

	/**
	 * Define Jet_Engine_Module_Base class
	 */
	abstract class Jet_Engine_External_Module_Base extends Jet_Engine_Module_Base {

		/**
		 * Returns module external slug which should be the same as module ID
		 *
		 * @return [type] [description]
		 */
		public function external_slug() {
			return $this->module_id();
		}

		/**
		 * Returns detailed info about module
		 *
		 * @return [type] [description]
		 */
		public function get_module_details() {
			$data = $this->get_related_plugin_data();
			return '<h3>' . __( 'Related plugin:', 'jet-engine' ) . ' ' . $data['name'] . '</h3>' . $this->get_module_description();
		}

		/**
		 * Returns text description for the module
		 *
		 * @return [type] [description]
		 */
		public function get_module_description() {
			return '';
		}

		/**
		 * Check if related external plugin is already active
		 *
		 * @return boolean [description]
		 */
		public function is_related_plugin_active() {
			return false;
		}

		/**
		 * Returns information about the related plugin for current module
		 *
		 * @return [type] [description]
		 */
		public function get_related_plugin_data() {
			return array(
				'file' => '',
				'name' => '',
			);
		}

		/**
		 * Returns actions allowed after plugin installation
		 *
		 * @return [type] [description]
		 */
		public function get_installed_actions() {
			return array();
		}

		/**
		 * Returns custom message about successfull module installation
		 *
		 * @return [type] [description]
		 */
		public function get_installed_message() {
			return false;
		}

	}

}