Anonymous
public php v1 · immutable 1 <?php 2 class testHelper { 3 var $instance = null; 4 5 private function __construct() { 6 } 7 8 function getInstance() { 9 if (!$this->instance) { 10 $this->instance = new testHelper(); 11 } 12 13 return $this->instance; 14 } 15 16 function nabCounters() { 17 return RobDB::getInstance()->queryCol('SELECT CID FROM Counter'); 18 } 19 } 20 ?>