public static function getInstance() { if (!self::$myInstance) { self::$myInstance = new thumbParamsPeer(); } if (!self::$instance || !self::$instance instanceof thumbParamsPeer) { self::$instance = self::$myInstance; } return self::$myInstance; }