Sindbad~EG File Manager

Current Path : /var/www/html/sumar.com.py/wp-content/plugins/wp-statistics/src/Abstracts/
Upload File :
Current File : /var/www/html/sumar.com.py/wp-content/plugins/wp-statistics/src/Abstracts/UnlockedTabView.php

<?php
namespace WP_Statistics\Abstracts;

abstract class UnlockedTabView
{
    protected $tab;
    protected $page;

    public function __construct()
    {
        add_filter("wp_statistics_{$this->page}_{$this->tab}_locked", '__return_false');
        add_filter("wp_statistics_{$this->page}_{$this->tab}_tooltip", [$this, 'getTooltip']);
        add_action("wp_statistics_{$this->page}_{$this->tab}_template", [$this, 'view']);
        add_action("wp_statistics_{$this->page}_{$this->tab}_data", [$this, 'getData']);
    }

    /**
     * Returns the tooltip for the unlocked tab
     * @return string
     */
    abstract public function getTooltip();

    /**
     * Returns the data for the unlocked tab
     * @return array
     */
    public function getData()
    {
        return [];
    }

    /**
     * Render the view
     * @param mixed $args
     * @return void
     */
    abstract public function view($args);
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists