GFPDFHelperHelper_Abstract_Model

A simple abstract class controlers can extent to share similar variables.

Defined (1)

The class is defined in the following location(s).

/src/helper/abstract/Helper_Abstract_Model.php  
  1. abstract class Helper_Abstract_Model { 
  2.  
  3. /** 
  4. * Classes will store a controler object to allow user access 
  5. * @var object 
  6. * @since 4.0 
  7. */ 
  8. private $controller = null; 
  9.  
  10. /** 
  11. * Add a controller setter function with type hinting to ensure compatiiblity 
  12. * @param \GFPDF\Helper\Helper_Abstract_Controller $class The controller class 
  13. * @since 4.0 
  14. */ 
  15. final public function setController( Helper_Abstract_Controller $class ) { 
  16. $this->controller = $class; 
  17.  
  18. /** 
  19. * Get the controller 
  20. * @since 4.0 
  21. * @return \GFPDF\Helper\Helper_Abstract_Controller 
  22. */ 
  23. final public function getController() { 
  24. return $this->controller;