PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.3.8
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.3.8
2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 2.1.3 2.1.4 All 55 releases
easy-invoice / includes / Controllers / BaseController.php

BaseController.php in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.3.8, at includes/Controllers/BaseController.php

39 lines 953 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Base Controller Class
4 *
5 * @package Easy_Invoice
6 * @subpackage Controllers
7 */
8
9 namespace EasyInvoice\Controllers;
10
11 use EasyInvoice\Traits\SecurityTrait;
12 use EasyInvoice\Traits\TemplateTrait;
13 use EasyInvoice\Traits\CurrencyTrait;
14 use EasyInvoice\Traits\InvoiceTrait;
15
16 /**
17 * BaseController provides common functionality for all controllers
18 */
19 abstract class BaseController {
20 // Include all the traits
21 use SecurityTrait;
22 use TemplateTrait;
23 use CurrencyTrait;
24 use InvoiceTrait;
25
26 /**
27 * Initialize the controller
28 * This method should be implemented by all child controllers
29 */
30 abstract public function init();
31
32 /**
33 * Display method to be implemented by child classes
34 * This ensures all controllers have a standardized way to display content
35 *
36 * @param array $args Optional arguments for the display
37 */
38 abstract public function display(array $args = []);
39 }