public function getInstance() { if (self::$instance == NULL) { // If instance is not created yet, will create it. self::$instance = new PbController(); } return self::$instance; }