* @copyright Copyright (c) 2013 - 2019, TechFuze. (http://techfuze.net) */ abstract class View { /** * @var Plugins */ public $plugins; /** * @var Libraries */ public $libraries; /** * @var Helpers */ public $helpers; /** * @var Config */ public $config; /** * The controller associated with this view * * @var Controller */ protected $controller; /** * Provide the View with its associated Controller * * @param Controller $controller */ public function setController(Controller $controller) { $this->controller = $controller; } public function __construct() { $this->plugins = Factory::getInstance()->plugins; $this->libraries = Factory::getInstance()->libraries; $this->helpers = Factory::getInstance()->helpers; $this->config = Factory::getInstance()->config; } }