public static function getCoon() { static $conn = NULL; if ($conn == NULL) { $conn = new DBConnect(); } return $conn->getCoon(); }