public static function getConnect() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$connect; }
/** * the getInstance() method returns a single instance of the object */ public static function getInstance() { if (!isset(self::$instance)) { $object = __CLASS__; self::$instance = new $object(); } return self::$instance; }