Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pc = ProductsController::getInstance();
- $pc->forceCleanUpHolds(PARSEDATEINSECONDS);
- GIVES ERROR!
- class ProductsController {
- static private $db;
- static private $instance = null;
- private function __construct() {
- $this->db = Dbo::getInstance();
- }
- static public function getInstance() {
- if(self::$instance == null){
- self::$instance = new self;
- }
- return self::$instance;
- }
Add Comment
Please, Sign In to add comment