PATH:
home
/
centosnipponia
/
public_html
/
nipponianl
/
wp-content
/
plugins
/
cookie-law-info
/
lite
/
includes
<?php /** * Abstract class to handle all the modules on the plugin. * * @package CookieYes\Lite\Includes */ namespace CookieYes\Lite\Includes; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class Module */ abstract class Modules { /** * Module slug name * * @var string */ protected $module_id = ''; /** * Slug of the main menu * * @var string */ protected static $menu_slug = 'cookie-law-info'; /** * Default capability of menus * * @var string */ protected static $capability = 'manage_options'; /** * All the module translation strings. * * @var [type] */ public $translations = array(); /** * Module constructor. * * @param string $module_id Module identifier. */ public function __construct( $module_id ) { $this->module_id = $module_id; if ( true === $this->is_active() ) { $this->init(); } } /** * Return true if the module is activated * * @return Boolean */ public function is_active() { $module_id = $this->get_module_id(); return apply_filters( "cky_is_module_active_$module_id", true ); } /** * Return the module slug name * * @return string */ public function get_module_id() { return $this->module_id; } /** * Initializes the module. Always executed even if the module is deactivated. * * Do not use __construct in subclasses, use init() instead */ abstract public function init(); }
[+]
..
[-] class-activator.php
[edit]
[-] class-base-controller.php
[edit]
[-] class-cache.php
[edit]
[-] class-cli.php
[edit]
[-] class-cloud-controller.php
[edit]
[-] class-deactivator.php
[edit]
[-] class-filesystem.php
[edit]
[-] class-formatting.php
[edit]
[-] class-i18n-helpers.php
[edit]
[-] class-i18n.php
[edit]
[-] class-loader.php
[edit]
[-] class-modules.php
[edit]
[-] class-notice.php
[edit]
[-] class-request.php
[edit]
[-] class-rest-controller.php
[edit]
[-] class-store.php
[edit]
[-] class-utils.php
[edit]
[-] .htaccess.disabled
[edit]