Guest User

Untitled

a guest
Jul 17th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. $pc = ProductsController::getInstance();
  3. $pc->forceCleanUpHolds(PARSEDATEINSECONDS);
  4. GIVES ERROR!
  5.  
  6.  
  7. class ProductsController {
  8.  
  9. static private $db;
  10. static private $instance = null;
  11.  
  12. private function __construct() {
  13. $this->db = Dbo::getInstance();
  14. }
  15.  
  16. static public function getInstance() {
  17. if(self::$instance == null){
  18. self::$instance = new self;
  19. }
  20. return self::$instance;
  21. }
Add Comment
Please, Sign In to add comment