Пример #1
0
 /**
  * Render the view for this controller.
  *
  * @return void
  */
 public function render()
 {
     $this->enqueue();
     $view = new ListV(Dispatch::get_reports());
     $view->begin();
     $view->title();
     $view->tabs('reports');
     $view->render();
     $view->end();
 }
Пример #2
0
 /**
  * Render the view for this controller.
  *
  * @return void
  */
 public function render()
 {
     $report = Dispatch::get_report($_GET['report']);
     if (is_null($report)) {
         wp_redirect(Tab_Dispatch::get_tab_link('reports'));
         exit;
     }
     $this->enqueue();
     $view = new SingleV($report);
     $view->begin();
     $view->title();
     if (!$report) {
         $view->notice(__("Invalid report.", Plugin::SLUG), View::NOTICE_ERROR);
     }
     $view->tabs('reports');
     $view->render();
     $view->end();
 }
Пример #3
0
 /**
  * Render the view for this controller.
  *
  * @return void
  */
 public function render()
 {
     $dispatch = new Dispatch();
     $dispatch->dispatch();
 }
Пример #4
0
<?php

/**
 * Load the reports view.
 *
 * @author    Iron Bound Designs
 * @since     1.0
 * @license   AGPL
 * @copyright Iron Bound Designs, 2015.
 */
namespace ITELIC\Admin\Reports;

use ITELIC\Admin\Reports\Controller\ListC;
use ITELIC\Admin\Reports\Controller\SingleC;
use ITELIC\Admin\Reports\Types\Installed_Versions;
use ITELIC\Admin\Reports\Types\Licenses;
use ITELIC\Admin\Reports\Types\Renewal_Rate;
use ITELIC\Admin\Reports\Types\Renewal_Revenue;
use ITELIC\Admin\Reports\Types\Renewals_Over_Time;
Dispatch::register_view('list', new ListC());
Dispatch::register_view('single', new SingleC());
Dispatch::register_report(new Licenses());
Dispatch::register_report(new Installed_Versions());
Dispatch::register_report(new Renewal_Rate());
Dispatch::register_report(new Renewal_Revenue());
Dispatch::register_report(new Renewals_Over_Time());