<?php
class OverviewWpf extends ModuleWpf {
	public function init() {
		if ( is_admin() ) {
			add_action( 'admin_notices', array( $this, 'showAdminInfo' ) );
		}
		DispatcherWpf::addFilter('mainAdminTabs', array($this, 'addAdminTab'));
	}
	public function addAdminTab( $tabs ) {
		$tabs['overview'] = array(
			'label' => esc_html__('Overview', 'woo-product-filter'), 'callback' => array($this, 'getOverviewTabContent'), 'fa_icon' => 'fa-info-circle', 'sort_order' => 5, 'is_main' => true,
		);
		return $tabs;
	}
	public function getOverviewTabContent() {
		return $this->getView()->getOverviewTabContent();
	}
	public function showAdminInfo() {
		return $this->getView()->showAdminInfo();
	}
}
