public static function getIns(){ if(self::$ins instanceof self){ return self::$ins; }else{ self::$ins=new self(); return self::$ins; } }